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

Disassembly:
push edi
push esi
push ebp
push ebx
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x18]
sub esp, 0x5c
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [eax]
mov dword [esp], edx
dec eax
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0xa0]
mov edi, dword [esp + 0x98]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x88]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x54]
call fcn.00496810
xor ebx, ebx
mov edi, dword [esp + 0x84]
test edi, edi
jle 0x496c93
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov edi, dword [eax + ebx*4]
cmp edi, edx
jle 0x496c07
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x34]
shl eax, 2
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
lea eax, [eax + edi*4]
add eax, edx
mov edx, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
call fcn.00496810
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
add eax, edx
cmp edi, eax
jle 0x496c03
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], edx
lea eax, [eax + edi*4]
mov edx, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
call fcn.00496810
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x90]
cmp eax, edx
jne 0x496c20
test ebp, ebp
je 0x496c9b
jmp 0x496c28
test ebp, ebp
je 0x496cd0
mov eax, edx
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 8], edx
mov dword [esp], esi
mov dword [esp + 4], ecx
mov eax, dword [eax + ebx*4]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
call fcn.00496980
mov eax, dword [esp + 0xb0]
add ebp, eax
mov eax, dword [esp + 0x7c]
inc ebx
mov edx, dword [esp + 0x84]
lea esi, [esi + eax*4]
cmp ebx, edx
jl 0x496b4f
add esp, 0x5c
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esp + 0x38]
mov ecx, eax
mov edi, dword [esp + 0x9c]
mov dword [esp], esi
imul edx, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], edx
mov edi, dword [edi + ebx*4]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
call fcn.00496500
jmp 0x496c7c
mov ecx, eax
mov edi, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 8], ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov edx, dword [edx + ebx*4]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call fcn.004968a0
jmp 0x496c7c