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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [ebp + 8]
push ebx
fld qword [0x56c264]
push esi
lea esi, [eax + 0x14]
mov eax, dword [ebp + 0x10]
push edi
fst qword [esp + 0x70]
xor ebx, ebx
mov ecx, 8
lea edi, [esp + 0x48]
mov dword [0x584b84], ebx
cmp eax, ebx
mov dword [esp + 0xc], ebx
rep movsd dword es:[edi], dword [esi]
je 0x458753
mov dword [esp + 0x40], ebx
jmp 0x45876c
mov ecx, dword [0x585050]
push ecx
fstp st(0)
call fcn.00417430
fld qword [esp + 0x74]
add esp, 4
mov dword [esp + 0x40], eax
fld st(0)
fmul qword [0x550f08]
fld st(0)
fcos
fstp qword [esp + 0x24]
fsin
fstp qword [esp + 0x2c]
fcom qword [0x550f20]
fnstsw ax
test ah, 1
je 0x4587a2
fadd qword [0x550f28]
fcom qword [0x550f20]
fnstsw ax
test ah, 1
jne 0x45878f
fcom qword [0x550f88]
fld qword [esp + 0x58]
fnstsw ax
test ah, 0x41
je 0x4587cc
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
fstp qword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jmp 0x45884f
fld st(1)
fcomp qword [0x550f10]
fnstsw ax
test ah, 0x41
je 0x4587f1
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
fstp qword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
jmp 0x45884f
fstp st(0)
fcom qword [0x555fe8]
fnstsw ax
test ah, 0x41
je 0x458822
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jmp 0x45884f
fcom qword [0x550f28]
fnstsw ax
test ah, 0x41
je 0x45884f
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
fmul qword [0x550f08]
mov eax, dword [0x56c260]
xor esi, esi
cmp eax, ebx
fld st(0)
fsin
fchs
fstp qword [esp + 0x88]
fcos
fstp qword [esp + 0x90]
jne 0x45888b
mov edx, dword [0x56c26c]
mov eax, dword [0x56c270]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
jmp 0x4588bd
fld qword [0x550fb0]
fsub qword [0x56c274]
fmul qword [0x56c26c]
fmul qword [0x551440]
fstp qword [esp + 0x68]
fld qword [0x56c274]
fmul qword [0x56c26c]
fmul qword [0x551440]
fstp qword [esp + 0x70]
mov eax, dword [0x56c260]
test eax, eax
je 0x4588dc
test esi, esi
jne 0x4588dc
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jmp 0x4588ec
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00418980
xor eax, eax
lea ecx, [esp + 0xa8]
test esi, esi
sete al
lea edx, [esp + 0x170]
mov dword [esp + 0x54], eax
push ecx
mov ecx, dword [ebp + 8]
push edx
lea eax, [esp + 0x2c]
push 0x32
push eax
push 0
push ecx
call fcn.00464e30
mov esi, eax
add esp, 0x28
cmp esi, 2
jge 0x458998
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x458bb4
fld qword [esp + 0x14]
fcom qword [esp + 0x48]
fnstsw ax
test ah, 1
jne 0x458bb2
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 0x41
je 0x458bb4
fld qword [esp + 0x1c]
fcom qword [esp + 0x50]
fnstsw ax
test ah, 1
jne 0x458bb2
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
je 0x458bb4
mov esi, dword [esp + 0x44]
jmp 0x4588bd
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4589d5
mov eax, esi
lea edx, [esp + esi*4 + 0x98]
shl eax, 4
push edx
mov edx, 0x32
lea ecx, [esp + eax + 0x164]
sub edx, esi
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push edi
call fcn.00464e30
mov edi, dword [edi + 0x34]
add esp, 0x18
add esi, eax
test edi, edi
jne 0x45899f
fld qword [esp + 0x48]
fsub qword [esp + 0x58]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub esp, 8
fadd qword [esp + 0x58]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
lea edx, [esp + 0x2c]
mov dword [esp + 0x80], ecx
fsub qword [esp + 0x68]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x80]
mov dword [esp + 0x8c], ecx
fadd st(0), st(0)
fstp qword [esp]
push edx
push eax
call fcn.00418980
lea eax, [esi - 1]
add esp, 0x10
xor ebx, ebx
mov dword [esp + 0x10], eax
test eax, eax
jle 0x458a86
lea edi, [esp + 0x160]
lea ecx, [esp + 0x78]
lea edx, [esp + 0x24]
push ecx
push edi
push esi
push edx
call fcn.004a1cd0
add esp, 0x10
cmp eax, 0xffffffff
je 0x458a82
test eax, eax
je 0x458a75
add eax, ebx
shl eax, 4
lea eax, [esp + eax + 0x160]
push eax
push edi
call fcn.00418b30
add esp, 8
mov eax, dword [esp + 0x10]
inc ebx
dec esi
add edi, 0x10
cmp ebx, eax
jl 0x458a42
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x34], 0
jle 0x458b5d
lea ebx, [esp + 0x160]
lea ecx, [ebx + 0x10]
push 0
push ecx
push ebx
call fcn.0043f9f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x458bc9
push 0xc0
push 1
call fcn.00547150
mov esi, eax
add esp, 8
test esi, esi
je 0x458bc9
push 0
push esi
push edi
call fcn.0043f8b0
push esi
call fcn.00441c50
mov eax, dword [esi]
mov edx, dword [ebp + 8]
or ah, 1
push 0
push 0
mov dword [esi], eax
mov eax, dword [edx + 0x38]
push 0
push 0
push 0
push eax
push esi
call fcn.00489220
push esi
call fcn.0048cbe0
add esp, 0x30
test eax, eax
jne 0x458b7a
call fcn.00458de0
test eax, eax
jne 0x458b7a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x458b3a
mov cx, word [esp + 0x40]
push 3
push esi
mov word [esi + 0x48], cx
call fcn.004ac0f0
lea edx, [esp + 0x14]
push esi
push edx
call fcn.004894b0
add esp, 0x10
jmp 0x458b43
push esi
call fcn.004888a0
add esp, 4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
add eax, 2
add ebx, 0x20
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x458a9d
push 0xbff00000
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00418af0
mov esi, dword [esp + 0x50]
add esp, 0xc
jmp 0x4588bd
push esi
call fcn.004888a0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004888e0
mov edx, dword [0x5832c8]
mov dword [esp + 0x14], 0
push edx
mov dword [0x584b84], 2
call fcn.0054715c
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x458bc9
push ecx
push 0x585050
call fcn.004894b0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret