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

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], 0x7f7fffff
mov eax, dword [esi + 0x10]
test eax, eax
je 0x402252
mov ecx, dword [esi + 8]
push eax
call fcn.0052bc30
fstp dword [esp + 4]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x128]
fcomp dword [0x61b59c]
fnstsw ax
test ah, 0x41
je 0x402278
fld dword [esp + 4]
fsub dword [0x61b588]
fstp dword [esp + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x78]
push ecx
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x8c]
call fcn.005ec820
test eax, eax
je 0x4022ef
cmp dword [eax + 0xf4], 1
jne 0x4022ef
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4022ef
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 8]
push edx
mov edx, dword [ecx + 4]
mov ecx, eax
push edx
call fcn.0046c940
test eax, eax
jne 0x4022ef
fld dword [esp + 4]
fcomp dword [esi + 0x4c]
fnstsw ax
test ah, 0x41
je 0x4022e3
fld dword [esp + 4]
fcomp dword [esi + 0x50]
fnstsw ax
test ah, 1
je 0x4022ef
fld dword [esi + 0x50]
fcomp dword [0x61b59c]
fnstsw ax
test ah, 0x41
jne 0x4022ef
mov eax, 2
pop esi
add esp, 8
ret 4
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x40247e
mov eax, dword [esi + 0x20]
mov dword [esp + 8], eax
fld dword [esp + 8]
fcomp dword [0x61b5a8]
fnstsw ax
test ah, 0x40
jne 0x402320
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov eax, dword [esp + 8]
push ecx
push edx
jmp 0x402344
fld dword [esi + 0x5c]
fst dword [esp + 8]
fcomp dword [0x61b5a8]
fnstsw ax
test ah, 0x40
jne 0x402782
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x60]
mov eax, dword [esp + 8]
push ecx
push edx
mov ecx, dword [esi + 8]
push eax
call fcn.0052bce0
fst dword [esp + 4]
fcomp dword [esi + 0x50]
fnstsw ax
test ah, 1
je 0x4023ca
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
mov al, byte [esi + 0x3c]
test al, al
jne 0x402387
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
push 0x1fe
push eax
push eax
call dword [edx + 0x170]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x118]
fcomp dword [0x61b584]
fnstsw ax
test ah, 0x40
jne 0x402782
mov ecx, dword [esi + 8]
call fcn.0052c570
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc8]
test eax, eax
je 0x402782
xor eax, eax
pop esi
add esp, 8
ret 4
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x4c]
mov dword [esp + 8], eax
mov edx, dword [ecx]
call dword [edx + 0x128]
fcomp dword [0x61b59c]
fld dword [esp + 8]
fnstsw ax
test ah, 0x41
je 0x4023f3
fadd dword [0x61b588]
fld dword [esp + 4]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x4027ff
mov eax, dword [esp + 0x10]
mov dword [eax], 2
mov al, byte [esi + 0x3c]
test al, al
jne 0x402432
mov ecx, dword [esi + 8]
push 0
push 0
push 0
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
push 0x1fd
push eax
push eax
call dword [edx + 0x170]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x118]
fcomp dword [0x61b584]
fnstsw ax
test ah, 0x40
jne 0x40250a
mov ecx, dword [esi + 8]
call fcn.0052c570
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc8]
test eax, eax
je 0x40250a
mov edx, dword [esi]
push 4
mov ecx, esi
call dword [edx + 0x5c]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 0x9c]
test edx, edx
jle 0x40251c
mov eax, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [eax + 0xc]
push eax
call dword [edx + 0xfc]
test al, al
je 0x4024b3
cmp al, 0x80
jne 0x40251c
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 8]
mov al, byte [edx + 0x6d]
test al, al
jne 0x40251c
mov ecx, dword [esi + 8]
call fcn.0052c570
mov cl, byte [eax + 0x169]
test cl, cl
jne 0x40250a
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x118]
fcomp dword [0x61b584]
fnstsw ax
test ah, 0x41
jne 0x40250a
mov ecx, dword [esi + 8]
call fcn.0052c570
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc8]
cmp eax, 1
jne 0x40250a
mov edx, dword [esi]
push 5
mov ecx, esi
call dword [edx + 0x5c]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, dword [esi]
push 0xd
mov ecx, esi
call dword [eax + 0x5c]
xor eax, eax
pop esi
add esp, 8
ret 4
mov ecx, dword [esi + 0x10]
fld dword [ecx + 0x38]
fcomp dword [esi + 0x20]
fnstsw ax
test ah, 0x40
je 0x40254a
fld dword [ecx + 0x3c]
fcomp dword [esi + 0x24]
fnstsw ax
test ah, 0x40
je 0x40254a
fld dword [ecx + 0x40]
fcomp dword [esi + 0x28]
fnstsw ax
test ah, 0x40
jne 0x4027ff
fld dword [ecx + 0x38]
fsub dword [esi + 0x20]
fld dword [ecx + 0x3c]
fsub dword [esi + 0x24]
fstp dword [esp + 8]
fld dword [ecx + 0x40]
fsub dword [esi + 0x28]
fstp dword [esp + 4]
fcom dword [0x61b588]
fnstsw ax
test ah, 0x41
je 0x4025c8
fcomp dword [0x61b5a4]
fnstsw ax
test ah, 1
jne 0x4025ca
fld dword [esp + 8]
fcomp dword [0x61b588]
fnstsw ax
test ah, 0x41
je 0x4025ca
fld dword [esp + 8]
fcomp dword [0x61b5a4]
fnstsw ax
test ah, 1
jne 0x4025ca
fld dword [esp + 4]
fcomp dword [0x61b588]
fnstsw ax
test ah, 0x41
je 0x4025ca
fld dword [esp + 4]
fcomp dword [0x61b5a4]
fnstsw ax
test ah, 1
je 0x4027ff
jmp 0x4025ca
fstp st(0)
push ecx
mov ecx, dword [esi + 8]
call fcn.0052bc30
fst dword [esp + 4]
fcomp dword [esi + 0x50]
fnstsw ax
test ah, 1
je 0x402650
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
mov al, byte [esi + 0x3c]
test al, al
jne 0x40260d
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
push 0x1fe
push eax
push eax
call dword [edx + 0x170]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x118]
fcomp dword [0x61b584]
fnstsw ax
test ah, 0x40
jne 0x402782
mov ecx, dword [esi + 8]
call fcn.0052c570
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc8]
test eax, eax
je 0x402782
xor eax, eax
pop esi
add esp, 8
ret 4
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x4c]
mov dword [esp + 8], eax
mov edx, dword [ecx]
call dword [edx + 0x128]
fcomp dword [0x61b59c]
fnstsw ax
test ah, 0x41
je 0x40267d
fld dword [esp + 8]
fadd dword [0x61b588]
fstp dword [esp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
cmp word [ecx + 0x16], 0x27
jne 0x4026d6
push ebp
push edi
xor ebp, ebp
mov ecx, dword [esi + 0x10]
mov edx, dword [0x6633d4]
push ebp
mov eax, dword [ecx]
mov edi, dword [edx + 0x420]
call dword [eax + 0x2e4]
push eax
mov ecx, edi
call fcn.005ebae0
test eax, eax
je 0x4026ce
mov ecx, dword [esi + 8]
push eax
call fcn.0052bc30
fcom dword [esp + 0xc]
fnstsw ax
test ah, 1
je 0x4026cc
fstp dword [esp + 0xc]
jmp 0x4026ce
fstp st(0)
inc ebp
cmp ebp, 2
jl 0x40268e
pop edi
pop ebp
fld dword [esp + 4]
fcomp dword [esp + 8]
fnstsw ax
test ah, 0x41
jne 0x4027ea
mov ecx, dword [esp + 0x10]
mov dword [ecx], 2
mov al, byte [esi + 0x3c]
test al, al
jne 0x402715
mov ecx, dword [esi + 8]
push 0
push 0
push 0
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
push 0x1fd
push eax
push eax
call dword [edx + 0x170]
mov ecx, dword [esi + 8]
call fcn.0052c570
cmp byte [eax + 0x169], 1
jne 0x402794
mov ecx, dword [esi + 8]
call fcn.0052c570
mov ecx, dword [esi + 0x10]
fld dword [eax + 0x16c]
fsubr dword [ecx + 0x38]
mov ecx, dword [esi + 8]
fstp dword [esp + 0x10]
call fcn.0052c570
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 8]
fld dword [eax + 0x170]
fsubr dword [edx + 0x3c]
mov eax, dword [ecx]
fld st(0)
fmulp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fsqrt
fstp dword [esp + 0x10]
call dword [eax + 0x128]
fadd dword [0x61b5a0]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x402794
mov edx, dword [esi]
push 0xd
mov ecx, esi
call dword [edx + 0x5c]
xor eax, eax
pop esi
add esp, 8
ret 4
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x118]
fcomp dword [0x61b584]
fnstsw ax
test ah, 0x40
jne 0x4027d8
mov ecx, dword [esi + 8]
call fcn.0052c570
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc8]
test eax, eax
je 0x4027d8
mov edx, dword [esi]
push 4
mov ecx, esi
call dword [edx + 0x5c]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, dword [esi]
push 0xd
mov ecx, esi
call dword [eax + 0x5c]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [esi + 0x20], ecx
mov edx, dword [eax + 0x3c]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x40]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], 1
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 8]
push eax
mov eax, dword [esi + 0x20]
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [edx + 0x2f0]
test al, al
jne 0x40282d
xor eax, eax
pop esi
add esp, 8
ret 4
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
call dword [edx + 0x84]
neg al
sbb eax, eax
pop esi
neg eax
add esp, 8
ret 4