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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4090de
push 0xa
push 0xd
mov ecx, esi
call fcn.00549f70
inc eax
push eax
lea eax, [esp + 0x7c]
push str.SP_d__c_c
push eax
call fcn.00530115
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
mov ebx, dword [ebp + 0xc]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebx
call fcn.0053dff0
mov ecx, esi
call fcn.005655a0
test eax, eax
mov dword [esp + 0x44], eax
mov esi, 1
je 0x4090aa
jmp 0x408866
fstp st(0)
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
test eax, eax
je 0x4090aa
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.00565610
test eax, eax
mov dword [esp + 0x44], eax
je 0x40903c
mov eax, dword [eax]
mov dword [esp + 0x18], 0
fld qword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
fld qword [esp + 0x28]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
fcomp st(1)
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
fld qword [esp + 0x48]
mov dword [esp + 0x1c], 0
fnstsw ax
test ah, 0x40
jne 0x4088f8
fld st(0)
fsub qword [esp + 0x10]
fld qword [esp + 0x28]
fsub st(3)
fdivp st(1)
fstp qword [esp + 0x18]
fld st(0)
fsub qword [esp + 0x10]
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 0x40
je 0x4089ea
fstp st(0)
fld qword [ebp + 0x10]
fcomp qword [0x5e80d8]
fld qword [ebp + 0x10]
fnstsw ax
test ah, 1
jne 0x408933
fcomp qword [0x5e80b8]
fnstsw ax
test ah, 0x41
jne 0x408942
jmp 0x408955
fchs
fcomp qword [0x5e80b8]
fnstsw ax
test ah, 0x41
je 0x408955
fld qword [esp + 0x10]
fabs
fcomp qword [0x5e7fd0]
fnstsw ax
test ah, 1
jne 0x408967
fld qword [esp + 0x10]
fcomp qword [ebp + 0x10]
fnstsw ax
test ah, 1
jne 0x408864
fld qword [esp + 0x10]
fcomp qword [ebp + 0x18]
fnstsw ax
test ah, 0x41
je 0x408864
test esi, esi
jne 0x4089ab
fld qword [esp + 0x10]
fsub qword [ebp + 0x20]
push 0xa
push 0xd
call fcn.00530020
push eax
call fcn.00530020
push eax
lea eax, [esp + 0x80]
push str.PD_d__d__c_c
push eax
call fcn.00530115
add esp, 0x18
jmp 0x4089c8
cmp esi, 1
jne 0x4089c6
fld qword [esp + 0x10]
fsub qword [ebp + 0x20]
push 0xa
push 0xd
call fcn.00530020
push eax
jmp 0x408d6f
fstp st(0)
xor esi, esi
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, ebx
call fcn.0053dff0
jmp 0x408866
fld qword [ebp + 0x10]
fcom qword [0x5e80d8]
fnstsw ax
test ah, 1
jne 0x408a09
fcom qword [0x5e80b8]
fnstsw ax
test ah, 0x41
jne 0x408a1a
jmp 0x408a2d
fld st(0)
fchs
fcomp qword [0x5e80b8]
fnstsw ax
test ah, 0x41
je 0x408a2d
fld qword [esp + 0x10]
fabs
fcomp qword [0x5e7fd0]
fnstsw ax
test ah, 1
jne 0x408a3e
fld qword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x408d0f
fld qword [esp + 0x10]
fcomp qword [ebp + 0x18]
fnstsw ax
test ah, 0x41
je 0x408cfe
fld st(1)
fcomp qword [ebp + 0x18]
fnstsw ax
test ah, 0x41
je 0x408b72
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 1
je 0x408b12
fcom qword [0x5e80d8]
fnstsw ax
test ah, 1
jne 0x408aee
fcomp qword [0x5e80b8]
fnstsw ax
test ah, 0x41
jne 0x408afd
fstp st(0)
fld qword [esp + 0x18]
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 0x40
jne 0x408aad
fld qword [ebp + 0x10]
fsub qword [esp + 0x10]
fdiv qword [esp + 0x18]
fadd st(1)
fstp qword [esp + 0x68]
fcom qword [esp + 0x28]
fnstsw ax
test ah, 0x40
je 0x408abc
fst qword [esp + 0x68]
fld qword [esp + 0x10]
fsub qword [ebp + 0x20]
cmp esi, 1
push 0xa
push 0xd
jne 0x408c68
call fcn.00530020
push eax
call fcn.00530020
push eax
lea edx, [esp + 0x80]
push str.PU_d__d__c_c
push edx
jmp 0x408c81
fchs
fcomp qword [0x5e80b8]
fnstsw ax
test ah, 0x41
je 0x408a89
fabs
fcomp qword [0x5e7fd0]
fnstsw ax
test ah, 1
je 0x408a8b
jmp 0x408b16
fstp st(0)
fstp st(0)
fld qword [esp + 0x10]
fsub qword [ebp + 0x20]
cmp esi, 1
push 0xa
push 0xd
jne 0x408b4c
call fcn.00530020
push eax
call fcn.00530020
push eax
lea eax, [esp + 0x80]
push str.PU_d__d__c_c
push eax
call fcn.00530115
add esp, 0x18
jmp 0x4089c8
call fcn.00530020
push eax
call fcn.00530020
push eax
lea ecx, [esp + 0x80]
push str.PD_d__d__c_c
push ecx
call fcn.00530115
add esp, 0x18
jmp 0x4089ca
fstp st(0)
fstp st(0)
fld qword [esp + 0x18]
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 0x40
jne 0x408b98
fld qword [ebp + 0x18]
fsub qword [esp + 0x10]
fdiv qword [esp + 0x18]
fadd st(1)
fstp qword [esp + 0x50]
fcom qword [esp + 0x28]
fnstsw ax
test ah, 0x40
je 0x408ba7
fst qword [esp + 0x50]
fld qword [esp + 0x10]
fsub qword [ebp + 0x20]
cmp esi, 1
push 0xa
push 0xd
jne 0x408bd2
call fcn.00530020
push eax
call fcn.00530020
push eax
lea eax, [esp + 0x80]
push str.PU_d__d__c_c
push eax
jmp 0x408beb
call fcn.00530020
push eax
call fcn.00530020
push eax
lea ecx, [esp + 0x80]
push str.PD_d__d__c_c
push ecx
call fcn.00530115
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x70]
push ecx
push edx
mov ecx, ebx
call fcn.0053dff0
fld qword [ebp + 0x18]
fsub qword [ebp + 0x20]
push 0xa
push 0xd
call fcn.00530020
fld qword [esp + 0x58]
push eax
call fcn.00530020
push eax
lea eax, [esp + 0x80]
push str.PD_d__d__c_c
push eax
call fcn.00530115
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebx
call fcn.0053dff0
mov esi, 1
jmp 0x408866
call fcn.00530020
push eax
call fcn.00530020
push eax
lea eax, [esp + 0x80]
push str.PD_d__d__c_c
push eax
call fcn.00530115
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebx
call fcn.0053dff0
fld qword [ebp + 0x10]
fsub qword [ebp + 0x20]
push 0xa
push 0xd
call fcn.00530020
fld qword [esp + 0x70]
push eax
call fcn.00530020
push eax
lea edx, [esp + 0x80]
push str.PD_d__d__c_c
push edx
call fcn.00530115
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x70]
push ecx
push eax
mov ecx, ebx
call fcn.0053dff0
mov esi, 1
jmp 0x408866
fld qword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x408eb4
fld st(1)
fcomp st(1)
fstp st(0)
fnstsw ax
fcomp qword [ebp + 0x18]
test ah, 1
fnstsw ax
jne 0x408d8f
test ah, 0x41
je 0x408d98
fld qword [esp + 0x18]
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 0x40
jne 0x408d48
fld qword [ebp + 0x10]
fsub qword [esp + 0x10]
fdiv qword [esp + 0x18]
fadd st(1)
fstp qword [esp + 0x58]
fcom qword [esp + 0x28]
fnstsw ax
test ah, 0x40
je 0x408d59
fstp qword [esp + 0x58]
jmp 0x408d5b
fstp st(0)
fld qword [ebp + 0x10]
fsub qword [ebp + 0x20]
push 0xa
push 0xd
call fcn.00530020
fld qword [esp + 0x60]
push eax
call fcn.00530020
push eax
lea ecx, [esp + 0x80]
push str.PU_d__d__c_c
push ecx
call fcn.00530115
add esp, 0x18
jmp 0x4089c8
test ah, 0x41
jne 0x408864
fld qword [esp + 0x18]
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 0x40
jne 0x408dba
fld qword [ebp + 0x10]
fsub qword [esp + 0x10]
fdiv qword [esp + 0x18]
fadd st(1)
fstp qword [esp + 0x38]
fcom qword [esp + 0x28]
fnstsw ax
test ah, 0x40
je 0x408dcb
fstp qword [esp + 0x38]
jmp 0x408dcd
fstp st(0)
fld qword [ebp + 0x10]
fsub qword [ebp + 0x20]
push 0xa
push 0xd
call fcn.00530020
fld qword [esp + 0x40]
push eax
call fcn.00530020
push eax
lea eax, [esp + 0x80]
push str.PU_d__d__c_c
push eax
call fcn.00530115
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebx
call fcn.0053dff0
fld qword [esp + 0x18]
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 0x40
jne 0x408e3e
fld qword [ebp + 0x18]
fsub qword [esp + 0x10]
fdiv qword [esp + 0x18]
fadd qword [esp + 0x20]
fstp qword [esp + 0x38]
fld qword [esp + 0x20]
fcomp qword [esp + 0x28]
fnstsw ax
test ah, 0x40
je 0x408e5d
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
fld qword [ebp + 0x18]
fsub qword [ebp + 0x20]
push 0xa
push 0xd
call fcn.00530020
fld qword [esp + 0x40]
push eax
call fcn.00530020
push eax
lea ecx, [esp + 0x80]
push str.PD_d__d__c_c
push ecx
call fcn.00530115
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x70]
push ecx
push edx
mov ecx, ebx
call fcn.0053dff0
mov esi, 1
jmp 0x408866
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
jne 0x408f5c
fcomp qword [ebp + 0x18]
fnstsw ax
test ah, 0x41
je 0x408864
fld qword [esp + 0x18]
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 0x40
jne 0x408ef5
fld qword [ebp + 0x18]
fsub qword [esp + 0x10]
fdiv qword [esp + 0x18]
fadd st(1)
fstp qword [esp + 0x60]
fcom qword [esp + 0x28]
fnstsw ax
test ah, 0x40
je 0x408f06
fstp qword [esp + 0x60]
jmp 0x408f08
fstp st(0)
fld qword [ebp + 0x18]
fsub qword [ebp + 0x20]
push 0xa
push 0xd
call fcn.00530020
fld qword [esp + 0x68]
push eax
call fcn.00530020
push eax
lea eax, [esp + 0x80]
push str.PU_d__d__c_c
push eax
call fcn.00530115
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebx
call fcn.0053dff0
jmp 0x408866
fstp st(0)
fld qword [esp + 0x18]
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 0x40
jne 0x408f80
fld qword [ebp + 0x18]
fsub qword [esp + 0x10]
fdiv qword [esp + 0x18]
fadd st(1)
fstp qword [esp + 0x30]
fcom qword [esp + 0x28]
fnstsw ax
test ah, 0x40
je 0x408f91
fstp qword [esp + 0x30]
jmp 0x408f93
fstp st(0)
fld qword [ebp + 0x18]
fsub qword [ebp + 0x20]
push 0xa
push 0xd
call fcn.00530020
fld qword [esp + 0x38]
push eax
call fcn.00530020
push eax
lea edx, [esp + 0x80]
push str.PU_d__d__c_c
push edx
call fcn.00530115
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x70]
push ecx
push eax
mov ecx, ebx
call fcn.0053dff0
fld qword [esp + 0x18]
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 0x40
jne 0x409004
fld qword [ebp + 0x10]
fsub qword [esp + 0x10]
fdiv qword [esp + 0x18]
fadd qword [esp + 0x20]
fstp qword [esp + 0x30]
fld qword [esp + 0x20]
fcomp qword [esp + 0x28]
fnstsw ax
test ah, 0x40
je 0x409023
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
fld qword [ebp + 0x10]
fsub qword [ebp + 0x20]
push 0xa
push 0xd
call fcn.00530020
fld qword [esp + 0x38]
push eax
jmp 0x408c25
test esi, esi
jne 0x4090aa
fld qword [esp + 0x10]
fcomp qword [ebp + 0x10]
fnstsw ax
test ah, 1
jne 0x4090aa
fld qword [esp + 0x10]
fcomp qword [ebp + 0x18]
fnstsw ax
test ah, 0x41
je 0x4090aa
fld qword [esp + 0x10]
fsub qword [ebp + 0x20]
push 0xa
push 0xd
call fcn.00530020
fld qword [esp + 0x28]
push eax
call fcn.00530020
push eax
lea edx, [esp + 0x80]
push str.PD_d__d__c_c
push edx
call fcn.00530115
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x70]
push ecx
push eax
mov ecx, ebx
call fcn.0053dff0
push 0xa
push 0xd
lea ecx, [esp + 0x78]
push str.LT__c_c
push ecx
call fcn.00530115
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x70]
push ecx
push edx
mov ecx, ebx
call fcn.0053dff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret