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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ecx, ecx
mov dword [eax + 0x3c], ecx
fld dword [ebx + 8]
mov eax, dword [ebp + 0x10]
fadd dword [eax + 8]
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x34]
push ecx
fstp dword [esp + 0x44]
mov eax, esi
mov ecx, edi
call fcn.00456bb0
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
add esp, 8
fld dword [esp + 0x3c]
fcompp
fnstsw ax
test ah, 5
jnp 0x457547
mov edx, ebx
mov ebx, dword [ebp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, edi
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.00456bb0
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
add esp, 8
fld dword [esp + 0x3c]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x457545
fld dword [esp + 0x20]
fmul qword [0x499b58]
fadd qword [0x499b70]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 5
jp 0x457151
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x54], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x50], ecx
mov ecx, dword [edi]
mov dword [esp + 0x6c], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x68], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x74], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 0x38], 2
mov byte [esp + 0x1f], 1
jmp 0x4571a0
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x4c], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi]
mov dword [esp + 0x6c], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x74], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 0x38], 1
mov byte [esp + 0x1f], 0
push eax
mov eax, ecx
mov dword [esp + 0x24], ecx
push eax
lea esi, [esp + 0x70]
lea eax, [esp + 0x50]
mov ecx, ebx
lea edi, [esp + 0x90]
call fcn.00456e60
mov edi, dword [esp + 0x28]
mov edx, dword [ebx + edi*8 + 0x14]
xor ecx, ecx
add esp, 8
lea eax, [edi + 1]
cmp eax, dword [ebx + 0x94]
mov dword [esp + 0x28], edx
setge cl
sub ecx, 1
and eax, ecx
mov edx, dword [ebx + eax*8 + 0x14]
mov ecx, dword [ebx + edi*8 + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + eax*8 + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
lea eax, [esp + 0x34]
call fcn.00421e20
lea esi, [esp + 0x34]
call fcn.004499a0
fstp st(0)
fld dword [esp + 0x34]
sub esp, 8
fmul qword [0x499af0]
lea eax, [esp + 0x88]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
call fcn.004069b0
fld dword [esp + 0x24]
sub esp, 8
fadd dword [esp + 0x34]
lea eax, [esp + 0x68]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fld dword [esp + 0x30]
fadd dword [esp + 0x28]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.004069b0
fld dword [0x499a48]
push ecx
lea ecx, [esp + 0x64]
fstp dword [esp]
lea eax, [esp + 0x7c]
call fcn.00421e30
fld dword [esp + 0x58]
fld st(0)
fld dword [esp + 0x3c]
fld st(0)
fmulp st(2)
fld dword [esp + 0x54]
fld st(0)
fld dword [esp + 0x38]
fld st(0)
fmulp st(2)
fxch st(4)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
fxch st(3)
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fstp dword [esp + 0x14]
push ecx
fld dword [esp + 0x18]
lea eax, [esp + 0x3c]
fstp dword [esp]
call fcn.004069b0
fld dword [esp + 0x34]
sub esp, 8
fmul qword [0x499af0]
lea eax, [esp + 0x68]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
call fcn.004069b0
fld dword [esp + 0x54]
sub esp, 8
fld st(0)
lea eax, [esp + 0x48]
fld dword [esp + 0x34]
fld st(0)
fmulp st(2)
fld dword [esp + 0x58]
fld st(0)
fld dword [esp + 0x30]
fld st(0)
fmulp st(2)
fxch st(4)
faddp st(1)
fadd dword [esp + 0x54]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fxch st(3)
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fadd dword [esp + 0x50]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.004069b0
fld dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
fld st(0)
mov edx, dword [esp + 0x44]
fld dword [esp + 0x24]
sub esp, 8
fld st(0)
lea eax, [esp + 0x48]
fmulp st(2)
mov dword [esp + 0x30], ecx
fld dword [esp + 0x58]
mov dword [esp + 0x34], edx
fld st(0)
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(4)
faddp st(1)
fadd dword [esp + 0x54]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fxch st(3)
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fadd dword [esp + 0x50]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.004069b0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.00415b00
fstp dword [esp + 0x40]
lea eax, [esp + 0x28]
fld dword [esp + 0x3c]
lea ecx, [esp + 0x34]
fstp qword [esp + 0x10]
call fcn.00415b00
fsubr qword [esp + 0x10]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
fstp dword [esp + 0x10]
call fcn.00415b00
fadd dword [esp + 0x3c]
sub esp, 8
lea eax, [esp + 0x28]
fstp dword [esp + 0x30]
fld dword [esp + 0x40]
fchs
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fchs
fstp dword [esp]
call fcn.004069b0
fld dword [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x28]
fstp dword [esp]
push edx
lea eax, [esp + 0x54]
push eax
lea edi, [esp + 0x98]
call fcn.00456260
add esp, 0x10
cmp eax, 2
jl 0x457547
mov ecx, dword [esp + 0x30]
fld dword [esp + 0x28]
push ecx
push ecx
lea edx, [esp + 0x3c]
fstp dword [esp]
push edx
lea eax, [esp + 0x94]
push eax
lea edi, [esp + 0x58]
call fcn.00456260
add esp, 0x10
cmp eax, 2
jl 0x457547
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x78]
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov dword [esp + 0x20], 0
lea ebx, [esp + 0x88]
lea edi, [esi + 0x10]
mov dword [esp + 0x30], 2
mov eax, ebx
lea ecx, [esp + 0x60]
call fcn.00415b00
fsub dword [esp + 0x40]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld dword [esp + 0x3c]
fcompp
fnstsw ax
test ah, 1
jne 0x45752d
mov ecx, ebx
lea eax, [esp + 0x68]
lea esi, [esp + 0x78]
call fcn.00453080
cmp byte [esp + 0x1f], 0
mov edx, dword [eax]
mov dword [edi - 0x10], edx
mov eax, dword [eax + 4]
mov dword [edi - 0xc], eax
mov eax, dword [ebx + 8]
mov dword [edi], eax
je 0x457522
mov ecx, eax
mov edx, eax
shr ecx, 8
shr edx, 0x18
mov byte [edi + 1], al
shr eax, 0x10
mov byte [edi], cl
mov byte [edi + 2], dl
mov byte [edi + 3], al
add dword [esp + 0x20], 1
mov esi, dword [ebp + 8]
add edi, 0x14
add ebx, 0xc
sub dword [esp + 0x30], 1
jne 0x4574c0
mov eax, dword [esp + 0x20]
mov dword [esi + 0x3c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret