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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 0xa0]
add edi, 0x9c
xor eax, eax
test ecx, ecx
jbe 0x4ea433
mov esi, dword [edi + 8]
mov edx, esi
cmp dword [edx], 0
jne 0x4ea4d4
inc eax
add edx, 4
cmp eax, ecx
jb 0x4ea422
xor eax, eax
test eax, eax
mov esi, eax
je 0x4ea485
jmp 0x4ea440
mov bl, byte [esi + 4]
mov ebp, dword [esi + 8]
mov esi, dword [esi]
test esi, esi
jne 0x4ea472
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 4]
mov edx, dword [edi + 4]
inc eax
cmp eax, edx
jae 0x4ea470
mov ecx, dword [edi + 8]
lea ecx, [ecx + eax*4]
mov esi, dword [ecx]
test esi, esi
jne 0x4ea472
inc eax
add ecx, 4
cmp eax, edx
jb 0x4ea462
xor esi, esi
mov eax, dword [ebp]
movzx edx, bl
push edx
call fcn.00513770
add esp, 4
test esi, esi
jne 0x4ea440
mov dword [esp + 0x1c], 0
mov ebp, 0x7d4168
mov eax, 0x770f10
jmp 0x4ea4a0
mov dword [esp + 0x18], 0
mov ebx, eax
lea ebx, [ebx]
mov al, byte [ebx]
cmp al, 0x10
jle 0x4ea5b5
cmp al, 0x12
je 0x4ea5b5
movsx eax, al
add eax, 0xffffffee
cmp eax, 9
ja case.0x4ea4cd.18
jmp dword [eax*4 + 0x4ea710]
mov eax, dword [esi + eax*4]
jmp 0x4ea435
mov dword [esp + 0x14], 0x3e8
jmp 0x4ea4f8
mov dword [esp + 0x14], 0xfa
jmp 0x4ea4f8
mov dword [esp + 0x14], 0x1f4
fild dword [esp + 0x14]
movsx eax, word [ebp]
mov esi, dword [0x72ed78]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x28]
push 0x24
fild dword [esp + 0x18]
fstp dword [esp + 0x28]
fild dword [esp + 0x1c]
fstp dword [esp + 0x24]
fild dword [esp + 0x20]
fstp dword [esp + 0x18]
call fcn.005354b8
xor ecx, ecx
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
add esi, 0xbc
mov dword [edi + 0xc], edx
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 4]
mov dword [eax + 8], edi
mov dword [eax], 0
mov ecx, dword [esi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ea5ac
mov dword [ecx], eax
jmp 0x4ea5af
mov dword [esi + 4], eax
mov dword [esi + 8], eax
inc dword [esi + 0xc]
mov eax, dword [esp + 0x18]
add ebp, 2
add eax, 0x3e8
inc ebx
cmp eax, 0x47888
mov dword [esp + 0x18], eax
jl 0x4ea4b0
mov edx, dword [esp + 0x1c]
add edx, 0x3e8
cmp ebx, 0x791fd6
mov eax, ebx
mov dword [esp + 0x1c], edx
jl 0x4ea4a0
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x58]
xor ebp, ebp
xor ebx, ebx
cmp eax, ebp
jle 0x4ea6bd
mov dword [esp + 0x1c], ebp
jmp 0x4ea610
mov esi, dword [ecx + 4]
add esi, dword [esp + 0x1c]
je 0x4ea69d
mov edx, dword [ecx + 8]
fld dword [edx + ebp + 0x2c8]
fstp dword [esp + 0x14]
fld dword [esi + 0x98]
fdiv dword [esi + 0x90]
fmul dword [esp + 0x14]
fld qword [0x7155b8]
call sub.MSVCR71.dll__CIfmod
fstp dword [esi + 0x98]
fld dword [esi + 0x9c]
mov eax, dword [esp + 0x14]
fdiv dword [esi + 0x94]
mov dword [esi + 0x90], eax
fmul dword [esp + 0x14]
fld qword [0x7155b8]
call sub.MSVCR71.dll__CIfmod
mov ecx, dword [esp + 0x14]
fstp dword [esi + 0x9c]
mov dword [esi + 0x94], ecx
mov byte [esi + 0xa4], 0
call fcn.004ec240
mov edi, esi
call fcn.005136f0
call fcn.004ee030
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [ecx + 0x58]
inc ebx
add esi, 0x124
add ebp, 0x2cc
cmp ebx, eax
mov dword [esp + 0x1c], esi
jl 0x4ea610
mov esi, dword [ecx + 0x88]
mov eax, dword [esi + 0x80]
mov bl, 1
xor edi, edi
test eax, eax
mov byte [esi + 0xcd], bl
jbe 0x4ea6f7
mov edx, dword [esi + 0x78]
mov eax, dword [edx + edi*4]
test eax, eax
je 0x4ea6ec
push eax
push esi
call fcn.00518640
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 0x80]
inc edi
cmp edi, eax
jb 0x4ea6d7
pop edi
pop esi
pop ebp
mov byte [ecx + 0x80], bl
mov dword [ecx + 0x5c], 0xa
pop ebx
add esp, 0x28
ret 4