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

Disassembly:
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xdc]
lea eax, [esp + 0x1c]
mov ebx, 6
push eax
mov ecx, edi
mov dword [esp + 0x20], 0x6f2c30
mov dword [esp + 0x24], ebx
call fcn.00498ae0
mov ecx, dword [0x68ba4c]
mov esi, eax
xor ebp, ebp
mov edx, ecx
cmp esi, ebp
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
je 0x4d8dd9
push ebp
mov ecx, esi
call fcn.00498400
fstp dword [esp + 0x38]
push 1
mov ecx, esi
call fcn.00498400
fstp dword [esp + 0x2c]
push 2
mov ecx, esi
call fcn.00498400
fstp dword [esp + 0x34]
push 3
mov ecx, esi
call fcn.00498400
fstp dword [esp + 0x30]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x90]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x24], 0x6e53f4
mov dword [esp + 0x28], ebx
call fcn.00498ba0
mov edx, dword [0x68ba50]
mov dword [esp + 0x74], 0
mov eax, edx
mov ecx, edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x84], ecx
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x7c], edx
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
call fcn.004abde0
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x7c]
call fcn.004abde0
lea edx, [esp + 0x78]
lea ecx, [esp + 0x60]
push edx
call fcn.004abea0
mov edi, dword [esp + 0xd4]
mov dword [esp + 0x28], ebp
mov esi, dword [edi + 8]
mov ebx, dword [edi + 4]
mov eax, dword [edi + 0x14]
cmp esi, ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x1c], eax
jle 0x4d9055
mov dword [esp + 0x18], ebp
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov edx, dword [esp + 0x18]
xor ebp, ebp
add eax, edx
mov dword [esp + 0x10], ebp
test ebx, ebx
jle 0x4d9036
fild dword [esp + 0x28]
mov dword [esp + 0x24], eax
fstp dword [esp + 0x40]
fild dword [esp + 0x10]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
fstp dword [esp + 0x14]
push edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], eax
call fcn.004abc70
fld dword [esp + 0x10]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 1
jne 0x4d901a
fld dword [esp + 0x10]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
je 0x4d901a
fld dword [esp + 0x14]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
jne 0x4d901a
fld dword [esp + 0x14]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
je 0x4d901a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xe4]
xor esi, esi
mov dword [esp + 0x5c], ecx
test eax, eax
jle 0x4d8fac
mov edi, dword [esp + 0xe0]
mov ebx, eax
lea edx, [esp + 0x3c]
lea eax, [esp + esi*4 + 0xa8]
push edx
push eax
lea ecx, [esp + 0x60]
push 2
push ecx
mov ecx, dword [edi]
call fcn.004f2cc0
mov edx, dword [esp + 0x3c]
add edi, 4
add esi, edx
dec ebx
jne 0x4d8f7a
mov edi, dword [esp + 0xd4]
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0xe8]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [edx + 4]
fld dword [esp + 0x54]
fmul dword [0x6860a4]
call fcn.004665dc
mov ecx, dword [esp + 0xec]
mov esi, eax
fld dword [esp + 0x50]
fmul dword [0x6860a4]
shl ecx, 8
or esi, ecx
shl esi, 8
call fcn.004665dc
fld dword [esp + 0x48]
fmul dword [0x6860a4]
or esi, eax
shl esi, 8
call fcn.004665dc
mov edx, dword [esp + 0x24]
or esi, eax
mov dword [edx], esi
mov ecx, dword [esp + 0x24]
inc ebp
add ecx, 4
cmp ebp, ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], ecx
jl 0x4d8ee5
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc eax
add edx, ecx
cmp eax, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
jl 0x4d8ebe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret