Function at 0x4e6050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
mov ebx, edx
mov dword [esp + 0x40], ebx
mov edi, ecx
mov dword [esp + 0x18], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov esi, dword [edi + 8]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, dword [edx]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x3c], eax
mov al, byte [ecx]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x1c]
add eax, 8
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], eax
test edx, edx
je 0x4e619c
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x70]
mov ecx, dword [esi + 0x74]
mov eax, dword [eax + 0xc]
cmp dword [esi + 0x78], ecx
jg 0x4e60e1
push 0
push edx
push eax
mov edx, 0xc
mov ecx, esi
call fcn.00497c60
add esp, 0xc
jmp 0x4e6119
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
mov dword [eax + ecx*4], 0xc
mov edi, dword [esi + 0xc]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e613a
push 0
push dword [esp + 0x34]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.00497c60
add esp, 0xc
jmp 0x4e616c
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ecx + 0x3c]
not edx
add eax, dword [ecx + 0x38]
jns 0x4e618c
push edx
mov edx, esi
call fcn.00498480
add esp, 4
jmp 0x4e6195
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 0x10]
mov ebx, dword [esp + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x13]
cmp al, 9
je 0x4e62dd
cmp al, 0xd
je 0x4e62dd
cmp al, 0xa
je 0x4e6287
mov cl, byte [edi + 0x13]
lea edx, [edi + 0x2c]
mov dword [esp + 0x34], edx
test cl, cl
jne 0x4e61d7
mov eax, dword [edx]
inc eax
mov dword [edx], eax
jmp 0x4e61e6
dec cl
movzx eax, cl
mov byte [edi + 0x13], cl
mov eax, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x13]
cmp al, 0xc
je 0x4e6259
cmp al, 0xe
je 0x4e6259
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
cmp eax, 1
jne 0x4e6223
test cl, cl
jne 0x4e620f
inc dword [edx]
mov ebx, dword [edx]
jmp 0x4e62f9
dec cl
movzx eax, cl
mov byte [edi + 0x13], cl
mov ebx, dword [edi + eax*4 + 0x98]
jmp 0x4e62f9
mov ebx, dword [edi + 0x20]
mov ecx, eax
mov dword [esp + 0x28], ebx
cmp ecx, dword [edi + 0x1c]
jg 0x4e6243
sub dword [edi + 0x1c], ecx
lea eax, [ebx + ecx]
mov dword [edi + 0x20], eax
mov dword [esp + 0x34], edx
jmp 0x4e62fd
mov eax, dword [edx]
mov dword [esp + 0x34], edx
lea ebx, [eax + 1]
add eax, ecx
mov dword [esp + 0x28], ebx
mov dword [edx], eax
jmp 0x4e62fd
test cl, cl
jne 0x4e626e
inc dword [edx]
mov ebx, dword [edx]
mov dword [esp + 0x14], 0
jmp 0x4e62f5
dec cl
mov dword [esp + 0x14], 0
movzx eax, cl
mov byte [edi + 0x13], cl
mov ebx, dword [edi + eax*4 + 0x98]
jmp 0x4e62f5
cmp dword [ebx + 0xc], 0
je 0x4e62dd
mov edx, dword [ecx + 0xc]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e62ae
push 0
push edx
push 0
mov edx, 0x4a
mov ecx, esi
call fcn.00497c60
add esp, 0xc
jmp 0x4e62dd
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0x10]
lea edx, [edi + 0x2c]
mov dword [esp + 0x2c], 0
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
sub eax, dword [ecx + 4]
test byte [ecx + 0x20], 1
mov dword [esp + 0x4c], eax
je 0x4e6536
inc dword [edx]
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x24], eax
inc eax
cmp dword [ecx + 0x10], 0
mov dword [edi + 0x28], eax
je 0x4e638a
mov edx, dword [esi + 0x74]
mov dword [esp + 0x44], edx
cmp dword [esi + 0x78], edx
jg 0x4e6357
push 0
push 0
push 0
mov edx, 0x11
mov ecx, esi
call fcn.00497c60
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x4e638a
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x74]
inc edx
add edx, dword [esp + 0x4c]
cmp dword [esi + 0x78], ecx
jg 0x4e63b5
push edx
push dword [esp + 0x40]
mov edx, 0x78
mov ecx, esi
push dword [esp + 0x2c]
call fcn.00497c60
add esp, 0xc
jmp 0x4e63e8
mov edi, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x78
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4e6416
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
je 0x4e6402
mov eax, 0x5d4b70
jmp 0x4e6413
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x44], edx
cmp dword [esi + 0x78], edx
jg 0x4e6441
push 0
push dword [esp + 0x34]
mov edx, 0x24
mov ecx, esi
push dword [esp + 0x24]
call fcn.00497c60
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x4e6474
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x40]
mov edx, dword [edx + 0xc]
test edx, edx
jle 0x4e64d2
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e649f
push 1
push dword [esp + 0x3c]
mov ecx, esi
push edx
mov edx, 0x31
call fcn.00497c60
add esp, 0xc
jmp 0x4e64d2
mov ebx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e64fc
push dword [esp + 0x24]
mov edx, 0x84
mov ecx, esi
push dword [esp + 0x40]
push dword [esp + 0x24]
call fcn.00497c60
add esp, 0xc
xor ecx, ecx
jmp 0x4e65ff
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x84
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
xor ecx, ecx
jmp 0x4e65ff
mov edx, dword [esi + 0x74]
mov dword [esp + 0x44], edx
cmp dword [esi + 0x78], edx
jg 0x4e6561
push 0
push dword [esp + 0x34]
mov edx, 0x25
mov ecx, esi
push dword [esp + 0x24]
call fcn.00497c60
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x4e6594
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x40]
mov edx, dword [edx + 0xc]
test edx, edx
jle 0x4e65f2
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e65bf
push 1
push dword [esp + 0x3c]
mov ecx, esi
push edx
mov edx, 0x31
call fcn.00497c60
add esp, 0xc
jmp 0x4e65f2
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
add eax, ecx
mov dword [esp + 0x4c], eax
lea ecx, [eax - 1]
mov dword [esp + 0x3c], ecx
test edx, edx
jle 0x4e6650
mov edi, dword [esp + 0x50]
add edi, 0x10
nop dword [eax + eax]
cmp word [edi], 0
lea eax, [ecx + 1]
lea edi, [edi + 0x14]
cmovne eax, ecx
mov ecx, eax
sub edx, 1
jne 0x4e6630
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
lea eax, [edx - 1]
mov dword [esp + 0x44], eax
test eax, eax
js 0x4e66ff
mov edx, dword [esp + 0x50]
mov edi, eax
lea eax, [edi + ebx]
lea ebx, [edi + 1]
mov dword [esp + 0x44], eax
lea ebx, [edi + ebx*4]
lea ebx, [edx + ebx*4]
movzx eax, word [ebx]
test ax, ax
je 0x4e6682
lea edx, [eax - 1]
jmp 0x4e6689
mov edx, ecx
dec ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e66af
push dword [esp + 0x44]
mov ecx, esi
push edx
push dword [esp + 0x2c]
mov edx, 0x5d
call fcn.00497c60
mov edx, dword [esp + 0x50]
add esp, 0xc
jmp 0x4e66e2
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov esi, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x3c]
dec edx
sub ebx, 0x14
mov dword [esp + 0x44], edx
sub edi, 1
jns 0x4e6675
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff6
cmp eax, 5
ja case.0x4e670f.13
jmp dword [eax*4 + 0x4e6c78]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e6739
mov edx, dword [esp + 0x4c]
mov ecx, esi
push ebx
push edx
push dword [esp + 0x2c]
mov edx, 0x5d
call fcn.00497c60
add esp, 0xc
jmp 0x4e6768
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e678f
push 0
push dword [esp + 0x30]
mov edx, 0x7e
mov ecx, esi
push dword [esp + 0x28]
call fcn.00497c60
mov edx, dword [esp + 0x38]
add esp, 0xc
jmp 0x4e67c2
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e67e1
push edx
push ebx
push dword [esp + 0x28]
mov edx, 0x7f
mov ecx, esi
call fcn.00497c60
add esp, 0xc
jmp 0x4e6810
mov edi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x74]
test eax, eax
jle case.0x4e670f.10
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
jmp case.0x4e670f.10
mov eax, dword [ebp + 0x10]
mov ecx, esi
push edx
push dword [eax + 0x14]
push dword [esp + 0x34]
push edx
push ebx
mov edx, 0x60
call fcn.00498000
mov edx, dword [esi + 0x74]
add esp, 0x14
cmp dword [esi + 0x78], edx
jg 0x4e6870
push ebx
push dword [esp + 0x30]
mov edx, 0x89
mov ecx, esi
push dword [esp + 0x28]
call fcn.00497c60
add esp, 0xc
mov edx, eax
jmp 0x4e68a3
mov edi, dword [esp + 0x20]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne case.0x4e670f.10
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x14]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x4e6ae5
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov al, byte [edi + 0x13]
mov dword [esp + 0x4c], ecx
test al, al
jne 0x4e68e2
mov eax, dword [esp + 0x34]
inc dword [eax]
mov edx, dword [eax]
jmp 0x4e68f1
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov edx, dword [edi + eax*4 + 0x98]
mov eax, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x14]
shr eax, 0x1f
sub ecx, eax
add eax, ebx
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], eax
cmp dword [esi + 0x78], eax
jg 0x4e692d
push edx
push ecx
push dword [esp + 0x58]
mov edx, 0x60
mov ecx, esi
call fcn.00497c60
add esp, 0xc
jmp 0x4e6962
mov edi, dword [esp + 0x50]
inc eax
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x54]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x4c], 0
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
jge 0x4e69bc
cmp eax, edx
jg 0x4e6990
push ebx
push dword [esp + 0x38]
mov edx, 0x7f
mov ecx, esi
push dword [esp + 0x28]
call fcn.00497c60
add esp, 0xc
jmp case.0x4e670f.10
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
jmp 0x4e6ad9
cmp eax, edx
jg 0x4e69dc
push ebx
push dword [esp + 0x38]
mov edx, 0x89
mov ecx, esi
push dword [esp + 0x28]
call fcn.00497c60
add esp, 0xc
mov edx, eax
jmp 0x4e6a0f
mov edi, dword [esp + 0x20]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x34]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne case.0x4e670f.10
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x4c]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
jmp case.0x4e670f.10
cmp byte [esp + 0x13], 9
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
jne 0x4e6a8e
mov edi, dword [esp + 0x18]
cmp eax, ecx
jg 0x4e6a63
mov ecx, dword [ebp + 0x10]
push 0
push edx
mov edx, 0x53
mov eax, dword [ecx + 0xc]
mov ecx, esi
push eax
call fcn.00497c60
add esp, 0xc
jmp case.0x4e670f.10
mov ebx, dword [ebp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov edi, dword [ebx + 0xc]
mov ebx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x53
mov dword [eax + ecx*4 + 8], edx
jmp 0x4e6ad1
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 4]
cmp eax, ecx
jg 0x4e6aae
push 0
push 0
push edx
mov edx, 0xe
mov ecx, esi
call fcn.00497c60
add esp, 0xc
jmp case.0x4e670f.10
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov esi, dword [esp + 0x48]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4e6b32
cmp byte [esp + 0x13], 0xb
jne 0x4e6b06
cmp edx, 1
je 0x4e6b06
cmp edx, dword [edi + 0x1c]
jle 0x4e6b1e
mov dword [edi + 0x1c], edx
mov dword [edi + 0x20], ebx
jmp 0x4e6b1e
test ebx, ebx
je 0x4e6b1e
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4e6b1e
movzx eax, al
mov dword [edi + eax*4 + 0x98], ebx
inc byte [edi + 0x13]
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4e6b32
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x38]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4e6b50
push edx
mov edx, esi
call fcn.00498480
add esp, 4
jmp 0x4e6b59
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
test byte [ebx + 0x20], 1
je 0x4e6b9d
cmp eax, ecx
jg 0x4e6b88
mov edx, dword [esp + 0x40]
mov ecx, esi
push 0
push edx
push dword [esp + 0x24]
mov edx, 3
call fcn.00497c60
add esp, 0xc
jmp 0x4e6bf0
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 3
jmp 0x4e6bd0
cmp eax, ecx
jg 0x4e6bbd
mov edx, dword [esp + 0x40]
mov ecx, esi
push 0
push edx
push dword [esp + 0x24]
mov edx, 5
call fcn.00497c60
add esp, 0xc
jmp 0x4e6bf0
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 5
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x4e6c44
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e6c15
push 0
push 0
push edx
mov edx, 0x43
mov ecx, esi
call fcn.00497c60
add esp, 0xc
jmp 0x4e6c44
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4e6c67
push edx
mov edx, esi
call fcn.00498480
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
pop edi
pop esi
mov dword [ecx + edx*4], eax
pop ebx
mov esp, ebp
pop ebp
ret