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

Disassembly:
push edi
push esi
push ebp
push ebx
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x18]
sub esp, 0x84
mov eax, esi
shl eax, 2
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x60], edx
mov dword [esp + 0x48], ecx
mov ebx, dword [edx]
mov dword [esp + 0x30], eax
mov edx, 0xffffffff
add edx, ebx
lea ecx, [ecx + ebx*4]
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], ecx
sub ecx, eax
mov dword [esp], ecx
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0xd8]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x40], edi
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0xb4]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea eax, [esi + esi*2]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x38], eax
add eax, esi
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x7c]
call fcn.00499390
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call fcn.00499390
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov ecx, esi
shl ecx, 2
mov dword [esp + 4], edx
mov edx, dword [esp + 0x6c]
lea ecx, [ecx + ebx*4]
mov ebx, dword [esp + 0x3c]
add ecx, eax
mov eax, dword [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
call fcn.00499390
xor ebx, ebx
mov eax, dword [esp + 0xac]
test eax, eax
jle 0x499b1b
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov esi, dword [eax + ebx*4]
cmp esi, edx
jle 0x499a7c
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ecx, esi
shl ecx, 2
lea ecx, [ecx + eax*8]
mov eax, dword [esp + 0x64]
add ecx, edx
mov edx, dword [esp + 0x54]
mov dword [esp], ecx
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
call fcn.00499390
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x4c]
lea eax, [eax + edx*2]
cmp esi, eax
jl 0x4999cc
mov eax, edx
mov edx, dword [esp + 0x48]
shl eax, 2
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x18], ecx
lea eax, [eax + esi*4]
add eax, edx
mov edx, dword [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
call fcn.00499390
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x38]
add eax, edx
cmp esi, eax
jl 0x499a25
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x64], edx
lea eax, [eax + esi*4]
mov dword [esp + 0x5c], ecx
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
call fcn.00499390
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
add eax, edx
cmp esi, eax
jl 0x499a78
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
lea eax, [eax + esi*4]
mov dword [esp + 4], ecx
sub eax, edx
mov edx, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
call fcn.00499390
mov dword [esp + 0x68], esi
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0xb8]
cmp eax, edx
jne 0x499a95
test ebp, ebp
je 0x499b26
jmp 0x499a9d
test ebp, ebp
je 0x499b6b
mov eax, edx
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], edx
mov dword [esp], edi
mov dword [esp + 4], ecx
mov eax, dword [eax + ebx*4]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
call fcn.00499600
mov eax, dword [esp + 0xe0]
add ebp, eax
mov eax, dword [esp + 0xa4]
inc ebx
mov edx, dword [esp + 0xac]
lea edi, [edi + eax*4]
cmp ebx, edx
jl 0x4998ea
add esp, 0x84
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esp + 0x50]
mov ecx, eax
mov esi, dword [esp + 0xc4]
mov dword [esp], edi
imul edx, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov esi, dword [esi + ebx*4]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
call fcn.00498dc0
jmp 0x499b01
mov ecx, eax
mov esi, dword [esp + 0x50]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], esi
mov edx, dword [edx + ebx*4]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
call fcn.004994d0
jmp 0x499b01