Function at 0x4961f0
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.004b0190
xor ebx, ebx
mov edi, dword [esp + 0x84]
test edi, edi
jle 0x4963e4
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov edi, dword [eax + ebx*4]
cmp edi, edx
jle 0x496357
lea eax, [edi + edi]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], 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.004b0190
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
add eax, edx
cmp edi, eax
jle 0x496353
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], edx
lea eax, [eax + edi*2]
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.004b0190
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x90]
cmp eax, edx
jne 0x496370
test ebp, ebp
je 0x4963ec
jmp 0x496378
test ebp, ebp
je 0x496422
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
movzx eax, word [eax + ebx*2]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
call fcn.00496020
mov eax, dword [esp + 0xb0]
add ebp, eax
mov eax, dword [esp + 0x7c]
inc ebx
mov edx, dword [esp + 0x84]
lea esi, [esi + eax*2]
cmp ebx, edx
jl 0x49629f
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
movzx edi, word [edi + ebx*2]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 8], edi
call fcn.004afe50
jmp 0x4963cd
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
movzx edx, word [edx + ebx*2]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edx
call fcn.004b02e0
jmp 0x4963cd