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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
call fcn.0047f0fc
mov ebp, dword [esi + 0x54]
mov edx, dword [esi + 0x50]
imul ebp, ebp, 0xe10
add ebp, edx
add esp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov edi, dword [0x4d8c2c]
sub ebp, eax
test edi, edi
jne 0x4185da
xor eax, eax
jmp 0x4185f3
mov ecx, dword [0x4d8c30]
sub ecx, edi
mov eax, 0x3531dec1
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jge 0x4187f3
mov eax, dword [esp + 0x14]
lea ebx, [eax + edi]
cmp dword [ebx], 0xffffffff
mov dword [esp + 0x18], ebx
je 0x4187d8
mov ecx, 0x4d8fdc
call fcn.004368d0
push 0xb1
mov ecx, 0x4d8fdc
call fcn.00436910
push ebp
mov ecx, 0x4d8fdc
call fcn.00436940
mov ecx, dword [esi + 0x28]
push ecx
mov ecx, 0x4d8fdc
call fcn.00436940
mov eax, dword [esi + 0x24]
mov edi, dword [eax]
cmp edi, eax
je 0x418665
lea esp, [esp]
mov edx, dword [edi + 8]
push edx
mov ecx, 0x4d8fdc
call fcn.00436940
mov edi, dword [edi]
cmp edi, dword [esi + 0x24]
jne 0x418650
mov eax, dword [esi + 0x5c]
push eax
mov ecx, 0x4d8fdc
call fcn.00436940
mov ecx, dword [esi + 0x34]
push ecx
mov ecx, 0x4d8fdc
call fcn.00436940
mov eax, dword [esi + 0x30]
mov edi, dword [eax]
cmp edi, eax
je 0x4186a5
lea ebx, [ebx]
mov edx, dword [edi + 8]
push edx
mov ecx, 0x4d8fdc
call fcn.00436940
mov edi, dword [edi]
cmp edi, dword [esi + 0x30]
jne 0x418690
mov eax, dword [esi + 0x60]
push eax
mov ecx, 0x4d8fdc
call fcn.00436940
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, 0x4d8fdc
call fcn.00436940
mov edx, dword [esi + 0x68]
push edx
mov ecx, 0x4d8fdc
call fcn.00436940
mov eax, dword [esi + 0x6c]
push eax
mov ecx, 0x4d8fdc
call fcn.00436940
mov ecx, dword [esi + 0x70]
push ecx
mov ecx, 0x4d8fdc
call fcn.00436940
mov edx, dword [esi + 0x74]
push edx
mov ecx, 0x4d8fdc
call fcn.00436940
mov eax, dword [esi + 0x78]
push eax
mov ecx, 0x4d8fdc
call fcn.00436940
mov ecx, dword [esi + 0x7c]
push ecx
mov ecx, 0x4d8fdc
call fcn.00436940
mov edx, dword [esi + 0x80]
push edx
mov ecx, 0x4d8fdc
call fcn.00436940
mov eax, dword [esi + 0x84]
push eax
mov ecx, 0x4d8fdc
call fcn.00436940
mov ecx, dword [esi + 0x40]
push ecx
mov ecx, 0x4d8fdc
call fcn.00436940
mov eax, dword [esi + 0x3c]
mov edi, dword [eax]
cmp edi, eax
je 0x41878b
mov edi, edi
push 4
lea ebx, [edi + 8]
push ebx
mov ecx, 0x4d8fdc
call fcn.00436c50
push 1
lea edx, [ebx + 4]
push edx
mov ecx, 0x4d8fdc
call fcn.00436c50
push 4
add ebx, 0xc
push ebx
mov ecx, 0x4d8fdc
call fcn.00436c50
mov edi, dword [edi]
cmp edi, dword [esi + 0x3c]
jne 0x418750
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x4c]
push eax
mov ecx, 0x4d8fdc
call fcn.00436940
mov eax, dword [esi + 0x48]
mov edi, dword [eax]
cmp edi, eax
je 0x4187c5
mov ecx, dword [edi + 8]
push ecx
mov ecx, 0x4d8fdc
call fcn.00436940
mov edx, dword [edi + 0xc]
push edx
mov ecx, 0x4d8fdc
call fcn.00436940
mov edi, dword [edi]
cmp edi, dword [esi + 0x48]
jne 0x4187a2
mov eax, dword [ebx]
push eax
mov ecx, 0x4d8ea0
call fcn.00435110
mov edi, dword [0x4d8c2c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ecx
add eax, 0x134
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4185d2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret