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

Disassembly:
push edi
push esi
push ebp
push ebx
mov ebp, dword [esp + 0x50]
mov edi, 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 + 0x28], edx
mov edx, dword [esp + 0xa0]
mov esi, 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 + 0x34], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x54]
call fcn.004aff20
xor ebx, ebx
mov esi, dword [esp + 0x84]
test esi, esi
jle 0x495cfe
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov esi, dword [eax + ebx*4]
cmp esi, edx
jle 0x495c72
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], eax
add ecx, esi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], edx
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ecx
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
call fcn.004aff20
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
add eax, edx
cmp esi, eax
jle 0x495c6e
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
add eax, esi
mov ecx, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call fcn.004aff20
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x90]
cmp eax, edx
jne 0x495c8b
test ebp, ebp
je 0x495d06
jmp 0x495c93
test ebp, ebp
je 0x495d3c
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], edi
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.00495a40
mov eax, dword [esp + 0xb0]
add ebp, eax
mov eax, dword [esp + 0x7c]
inc ebx
add edi, eax
mov eax, dword [esp + 0x84]
cmp ebx, eax
jl 0x495bbf
add esp, 0x5c
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esp + 0x38]
mov ecx, eax
mov esi, dword [esp + 0x9c]
mov dword [esp], edi
imul edx, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], edx
movzx esi, word [esi + ebx*2]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 8], esi
call fcn.004afcf0
jmp 0x495ce8
mov ecx, eax
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], esi
movzx edx, word [edx + ebx*2]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edx
call fcn.004b0070
jmp 0x495ce8