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

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push 0x53e5d1
push eax
mov dword fs:[0], esp
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub esp, 0xcc
cmp eax, ecx
push ebx
push ebp
push esi
push edi
je 0x4eb4a2
add eax, 0x28
cmp eax, ecx
jne 0x4ead20
mov ecx, dword [esp + 0xfc]
mov al, byte [0x5491b1]
fld dword [0x5828cc]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0xec]
mov byte [esp + 0xc4], al
fmul dword [0x545330]
mov byte [esp + 0xb0], al
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x3c]
add eax, eax
add ecx, ecx
mov dword [esp + 0x78], eax
fstp dword [esp + 0x14]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0xf0]
lea eax, [esp + 0x80]
xor edx, edx
push eax
push ecx
mov byte [esp + 0xc0], 0
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edx
call fcn.004fe950
add esp, 8
lea edx, [esp + 0x80]
lea ecx, [esp + 0xcc]
push edx
call fcn.004da530
fld dword [esp + 0x14]
fmul dword [0x545330]
fst dword [esp + 0x18]
fadd dword [esp + 0xd8]
fdiv dword [esp + 0x14]
call sub.msvcrt.dll__ftol
fld dword [esp + 0x18]
fadd dword [esp + 0xd4]
mov esi, eax
fdiv dword [esp + 0x14]
call sub.msvcrt.dll__ftol
fld dword [esp + 0x18]
fadd dword [esp + 0xd0]
mov edi, eax
fdiv dword [esp + 0x14]
call sub.msvcrt.dll__ftol
fld dword [esp + 0x18]
fadd dword [esp + 0xcc]
mov ebp, eax
fdiv dword [esp + 0x14]
call sub.msvcrt.dll__ftol
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
call fcn.004f4170
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x74]
cmp eax, edx
jge 0x4eb002
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x78]
cmp ebp, ecx
jge 0x4eb002
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
cmp ecx, esi
jle 0x4eb002
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x70]
cmp ebx, edi
jle 0x4eb002
cmp eax, esi
mov ecx, 1
jge 0x4eae9a
mov dword [esp + 0x5c], esi
xor ecx, ecx
cmp ebp, edi
jge 0x4eaea6
mov ebp, edi
xor ecx, ecx
mov dword [esp + 0x60], ebp
cmp dword [esp + 0x64], edx
jle 0x4eaeb2
mov dword [esp + 0x64], edx
xor ecx, ecx
mov eax, dword [esp + 0x78]
cmp ebx, eax
jle 0x4eaffa
mov ebx, eax
mov dword [esp + 0x68], ebx
mov esi, ebp
cmp ebp, ebx
mov dword [esp + 0x54], esi
jge 0x4eb4a2
xor edi, edi
lea eax, [esp + 0x5b]
push edi
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0xec], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
call fcn.005124c0
mov edx, dword [esp + 0xf0]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x9c]
mov byte [esp + 0xe4], 2
push ecx
push edx
push eax
push esi
call fcn.004ea5a0
add esp, 0x10
cmp eax, edi
jle 0x4eb472
test al, 1
jne 0x4eb472
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x7c], eax
lea ebp, [eax + 4]
mov ebx, dword [eax]
mov ecx, dword [ebp]
cmp ebx, ecx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x10], ebx
jg 0x4eb452
fild dword [esp + 0x54]
fmul dword [esp + 0x14]
fadd dword [esp + 0x18]
fstp dword [esp + 0xa8]
fild dword [esp + 0x10]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xf4]
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x98], ecx
fmul dword [esp + 0x14]
push edx
lea ecx, [esp + 0x98]
push eax
push ecx
fadd dword [esp + 0x24]
fstp dword [esp + 0xa0]
call fcn.004ea380
fcom dword [0x545374]
add esp, 0xc
fnstsw ax
test ah, 1
jne 0x4eb43c
fdiv dword [0x5828cc]
mov eax, dword [esp + 0xf8]
mov esi, dword [eax]
mov ecx, dword [eax + 4]
cmp esi, ecx
fstp dword [esp + 0x10]
fld dword [0x545374]
je 0x4eb43c
fadd dword [esi + 0x1c]
fcom dword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x4eb009
add esi, 0x28
cmp esi, ecx
jne 0x4eafe0
jmp 0x4eb43c
test ecx, ecx
jge 0x4eaec4
xor al, al
jmp 0x4eb4a4
mov eax, dword [esi + 0x20]
test eax, eax
fstp st(0)
mov dword [esp + 0x10], eax
jle 0x4eb43e
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
lea edi, [esi + 4]
cmp edx, eax
je 0x4eb43e
fild dword [esp + 0x10]
mov eax, dword [0x57f180]
push eax
fld st(0)
fmul st(1)
mov ecx, dword [eax]
fdivr dword [0x54531c]
fstp dword [esp + 0x14]
fstp st(0)
call dword [ecx + 0x20]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], 0
fild qword [esp + 0xbc]
fmul qword [0x547968]
fld dword [esp + 0x10]
fmul dword [esi + 0x24]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x4eb43e
lea ecx, [esp + 0x1c]
call fcn.0051e380
push 1
mov ecx, edi
mov byte [esp + 0xe8], 3
call fcn.004f6e50
mov edi, dword [edi]
lea edx, [eax + eax*2]
lea ecx, [esp + 0x1c]
lea eax, [edi + edx*4]
cmp eax, ecx
je 0x4eb0be
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0x59]
push edx
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00406890
fld dword [esp + 0x94]
fstp dword [esp + 0x80]
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x1c]
fld dword [esp + 0x98]
mov dword [esp + 0x28], eax
mov eax, dword [0x548f20]
fstp dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x3c], eax
mov eax, dword [0x548f1c]
mov dword [esp + 0x88], 0
mov edx, dword [esp + 0x88]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x548f28]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov eax, dword [0x57f188]
xor ebp, ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], 0x3f800000
mov dword [esp + 0x44], ecx
mov byte [esp + 0x4c], 1
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0xc]
mov esi, eax
push edi
push esi
mov eax, dword [esi]
call dword [eax + 0x18]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x30]
fld dword [esp + 0x28]
fmul dword [0x5828c8]
fld dword [esp + 0x2c]
fmul dword [0x5828c4]
mov esi, eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul dword [0x5828c0]
fstp dword [esp + 0x30]
fadd dword [0x546c74]
call sub.msvcrt.dll__ftol
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fadd dword [0x546c74]
call sub.msvcrt.dll__ftol
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
fild dword [esp + 0x10]
push eax
push esi
fstp dword [esp + 0x34]
mov edx, dword [esi]
call dword [edx + 0x3c]
fld dword [esp + 0x28]
mov esi, eax
fsub dword [esi]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fsub dword [esi + 4]
fld dword [esp + 0x28]
fmul dword [0x546d70]
fstp dword [esp + 0x28]
fmul dword [0x546d70]
fld dword [esp + 0x30]
fmul dword [0x546d70]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
fadd dword [0x545330]
call sub.msvcrt.dll__ftol
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x28]
fadd dword [0x545330]
call sub.msvcrt.dll__ftol
mov dword [esp + 0x10], eax
push 0x42000000
fild dword [esp + 0x14]
lea ecx, [esp + 0x2c]
fstp dword [esp + 0x30]
call fcn.004eb4c0
fld dword [esp + 0x28]
fadd dword [esi]
cmp dword [esp + 0xfc], ebp
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fadd dword [esi + 4]
fstp dword [esp + 0x2c]
je 0x4eb3bd
lea ecx, [esp + 0xb0]
push ebp
push ecx
lea edx, [esp + 0x24]
push 1
lea eax, [esp + 0x78]
push edx
push eax
mov byte [esp + 0xcc], 0
call fcn.004feb70
add esp, 0x14
test al, al
je 0x4eb40e
mov ecx, dword [esp + 0x6c]
shl ecx, 5
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x4eb40e
mov edx, dword [esp + 0x70]
shl edx, 5
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
je 0x4eb40e
mov eax, dword [esp + 0x74]
shl eax, 5
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x4eb40e
mov ecx, dword [esp + 0x78]
shl ecx, 5
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4eb40e
lea edx, [esp + 0xc4]
push ebp
push edx
lea eax, [esp + 0x24]
push 1
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.004fa4d0
mov edx, dword [esp + 0x100]
add esp, 0x14
mov esi, dword [edx + 0x70]
mov eax, dword [edx + 0x74]
lea edi, [edx + 0x6c]
cmp esi, eax
je 0x4eb3aa
mov dword [esp + 0x10], esi
mov dword [esp + 0xac], esi
cmp esi, ebp
mov byte [esp + 0xe4], 4
je 0x4eb3a4
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0040ecd0
mov edx, dword [esp + 0x28]
lea ecx, [esi + 0xc]
add esi, 0x2c
mov dword [ecx], edx
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x34]
mov dword [esi - 0x14], eax
mov ecx, dword [esp + 0x38]
mov dword [esi - 0x10], ecx
mov edx, dword [esp + 0x3c]
mov dword [esi - 0xc], edx
mov eax, dword [esp + 0x40]
mov dword [esi - 8], eax
mov ecx, dword [esp + 0x44]
mov dword [esi - 4], ecx
mov edx, dword [esp + 0x48]
mov dword [esi], edx
mov eax, dword [esp + 0x4c]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x50]
mov dword [esi + 8], ecx
add dword [edi + 4], 0x38
jmp 0x4eb40e
push 1
lea edx, [esp + 0x5c]
push 1
lea eax, [esp + 0x24]
push edx
push eax
push esi
mov ecx, edi
jmp 0x4eb409
mov ecx, dword [esp + 0xec]
mov eax, dword [ecx + 0x74]
lea esi, [ecx + 0x6c]
mov ecx, dword [ecx + 0x70]
cmp ecx, eax
je 0x4eb3f8
mov dword [esp + 0xac], ecx
mov dword [esp + 0x10], ecx
cmp ecx, ebp
mov byte [esp + 0xe4], 5
je 0x4eb3f2
lea edx, [esp + 0x1c]
push edx
call fcn.004cb9f0
add dword [esi + 4], 0x38
jmp 0x4eb40e
push 1
lea eax, [esp + 0x5e]
push 1
lea edx, [esp + 0x24]
push eax
push edx
push ecx
mov ecx, esi
call fcn.004ce590
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
sub ecx, eax
mov byte [esp + 0xe4], 6
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004fdfd0
mov ebp, dword [esp + 0x90]
mov byte [esp + 0xe4], 2
jmp 0x4eb43e
fstp st(0)
mov eax, dword [ebp]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ebx
jle 0x4eaf6a
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0xa0]
add eax, 8
cmp eax, ecx
mov dword [esp + 0x7c], eax
je 0x4eb46c
add ebp, 8
jmp 0x4eaf3f
mov esi, dword [esp + 0x54]
xor edi, edi
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xe4], 0xffffffff
cmp eax, edi
je 0x4eb491
push eax
call fcn.005265a0
add esp, 4
mov eax, dword [esp + 0x68]
inc esi
cmp esi, eax
mov dword [esp + 0x54], esi
jl 0x4eaed2
mov al, 1
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret