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

Disassembly:
sub esp, 0x88
mov edx, dword [0x72d944]
lea eax, [esp + 0x18]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x2c]
lea edi, [esi + 0x24]
push eax
push ecx
mov ecx, dword [edx + 0x74]
push edi
call fcn.00492850
cmp al, 1
jne 0x5ef375
mov eax, dword [esp + 0x28]
xor ecx, ecx
xor edx, edx
push 1
mov cl, byte [eax + 0x11]
mov dx, word [edi + 6]
imul ecx, edx
xor edx, edx
mov dx, word [eax + 0x1a]
mov eax, dword [esp + 0x30]
add ecx, edx
push ecx
lea ecx, [eax + 0x28]
call fcn.005ec7f0
mov ecx, dword [esi + 0x1c]
push 1
push 2
add ecx, 0x10
call fcn.0042df50
mov ecx, dword [esi + 0x38]
xor ebp, ebp
push ebp
push ebp
call fcn.004e22a0
mov ecx, eax
call fcn.004565d0
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx + 4]
mov edi, dword [ecx + 4]
add eax, 0x40
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esi + 0x2c]
mov edx, dword [eax]
add edi, 0x20
mov dword [esp + 0x34], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call fcn.005ef140
fld dword [eax + 4]
fld st(0)
fmul dword [edi]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x60], esp
fadd dword [esp + 0x3c]
fst dword [esp + 0x3c]
fld st(1)
fmul dword [edi + 4]
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fxch st(1)
fmul dword [edi + 8]
mov edx, dword [esp + 0x40]
mov dword [eax + 4], edx
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
fstp dword [eax]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x2c]
call fcn.005ff590
mov edx, dword [esi + 0x2c]
mov eax, dword [edx + 0x74]
mov eax, dword [eax + 4]
cmp eax, ebp
mov dword [esp + 0x54], eax
je 0x5ef7ef
fld dword [esp + 0xb0]
fmul dword [esp + 0xb0]
fld dword [esp + 0xac]
fmul dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xb0]
push ecx
faddp st(1)
fld dword [esp + 0xac]
fmul dword [esp + 0xac]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x5ef4c5
fld dword [0x6d0348]
fdiv st(1)
fld dword [esp + 0xa8]
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0xac]
fmul st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0xb0]
fmul st(1)
fstp dword [esp + 0x50]
fstp st(0)
fstp dword [esp + 0x58]
jmp 0x5ef4cf
fstp st(0)
mov dword [esp + 0x58], 0
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x28], ebp
mov ecx, dword [eax + 0x84]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x78]
cmp ecx, ebp
jbe 0x5ef7ef
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x2c]
mov edi, dword [edx + 4]
lea eax, [esp + 0x74]
push eax
add edi, 0x10
call fcn.005ef140
mov ebx, eax
call fcn.00404010
and eax, 0xffff
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], eax
mov ecx, dword [esi + 0x1c]
fild qword [esp + 0x64]
fmul dword [0x6d21a8]
fsubr dword [0x6d0348]
fmul dword [ebx]
fld st(0)
fmul dword [edi]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld st(0)
fmul dword [edi + 4]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fmul dword [edi + 8]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
mov edi, dword [ecx + 4]
add edi, 0x20
call fcn.00404010
and eax, 0xffff
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], eax
mov ecx, dword [esi + 0x2c]
fild qword [esp + 0x5c]
lea edx, [esp + 0x80]
push edx
fmul dword [0x6d21a8]
fsubr dword [0x6d0348]
fstp dword [esp + 0x40]
call fcn.005ef140
fld dword [esp + 0x3c]
fmul dword [eax + 4]
mov eax, dword [esi + 0x1c]
fld st(0)
fmul dword [edi]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld st(0)
fmul dword [edi + 4]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fmul dword [edi + 8]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
mov edi, dword [eax + 4]
add edi, 0x30
call fcn.00404010
and eax, 0xffff
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x8c]
fild qword [esp + 0x6c]
push ecx
mov ecx, dword [esi + 0x2c]
fmul dword [0x6d21a8]
fsubr dword [0x6d0348]
fstp dword [esp + 0x40]
call fcn.005ef140
fld dword [esp + 0x3c]
fmul dword [eax + 8]
push ecx
fld st(0)
fmul dword [edi]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld st(0)
fmul dword [edi + 4]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fmul dword [edi + 8]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fsub dword [esp + 0xa0]
fstp dword [esp + 0x14]
fld dword [esp + 0x24]
fsub dword [esp + 0xa4]
fstp dword [esp + 0x18]
fld dword [esp + 0x28]
fsub dword [esp + 0xa8]
fst dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x5ef6c3
fld dword [0x6d0348]
fdiv st(1)
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fstp st(0)
fstp dword [esp + 0x44]
jmp 0x5ef6cd
fstp st(0)
mov dword [esp + 0x44], 0
mov eax, dword [esi + 0x2c]
push ecx
fld dword [eax + 0x7c]
fld dword [esp + 0x4c]
fmul st(1)
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x50]
fmul st(1)
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x54]
fmul st(1)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fstp st(0)
fld dword [eax + 0x80]
fld dword [0x72c608]
fmul st(1)
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [0x72c60c]
fmul st(1)
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fmul dword [0x72c610]
fadd dword [esp + 0x1c]
fst dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x5ef788
fdivr dword [0x6d0348]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fstp st(0)
fld dword [esp + 0x44]
fcomp dword [esp + 0x40]
mov dword [esp + 0x2c], 0
fnstsw ax
test ah, 5
jp 0x5ef7be
fld dword [esp + 0x40]
fsub dword [esp + 0x44]
mov edx, dword [esi + 0x2c]
fdiv dword [esp + 0x40]
fmul dword [edx + 0x88]
fmul dword [esp + 0x58]
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
push ebp
push esi
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x2c]
push edx
call dword [eax + 0x68]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esp + 0x28]
inc eax
mov edx, dword [ecx + 0x78]
mov dword [esp + 0x28], eax
cmp eax, edx
jb 0x5ef4eb
mov eax, dword [0x72d944]
mov edx, dword [esi + 0x34]
push edx
mov ecx, dword [eax + 0x58]
call fcn.00465880
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x18