Function at 0x4022b0
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 0x4022d2
mov ecx, dword [esi + 8]
push eax
call fcn.00539280
fstp dword [esp + 4]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x128]
fcomp dword [0x6345ac]
fnstsw ax
test ah, 0x41
je 0x4022f8
fld dword [esp + 4]
fsub dword [0x634598]
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.00604cb0
test eax, eax
je 0x40236f
cmp dword [eax + 0xf4], 1
jne 0x40236f
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40236f
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 8]
push edx
mov edx, dword [ecx + 4]
mov ecx, eax
push edx
call fcn.00472db0
test eax, eax
jne 0x40236f
fld dword [esp + 4]
fcomp dword [esi + 0x4c]
fnstsw ax
test ah, 0x41
je 0x402363
fld dword [esp + 4]
fcomp dword [esi + 0x50]
fnstsw ax
test ah, 1
je 0x40236f
fld dword [esi + 0x50]
fcomp dword [0x6345ac]
fnstsw ax
test ah, 0x41
jne 0x40236f
mov eax, 2
pop esi
add esp, 8
ret 4
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x4024fe
mov eax, dword [esi + 0x20]
mov dword [esp + 8], eax
fld dword [esp + 8]
fcomp dword [0x6345b8]
fnstsw ax
test ah, 0x40
jne 0x4023a0
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov eax, dword [esp + 8]
push ecx
push edx
jmp 0x4023c4
fld dword [esi + 0x5c]
fst dword [esp + 8]
fcomp dword [0x6345b8]
fnstsw ax
test ah, 0x40
jne 0x402802
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.00539330
fst dword [esp + 4]
fcomp dword [esi + 0x50]
fnstsw ax
test ah, 1
je 0x40244a
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
mov al, byte [esi + 0x3c]
test al, al
jne 0x402407
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 [0x634594]
fnstsw ax
test ah, 0x40
jne 0x402802
mov ecx, dword [esi + 8]
call fcn.00539bc0
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xcc]
test eax, eax
je 0x402802
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 [0x6345ac]
fld dword [esp + 8]
fnstsw ax
test ah, 0x41
je 0x402473
fadd dword [0x634598]
fld dword [esp + 4]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x40287f
mov eax, dword [esp + 0x10]
mov dword [eax], 2
mov al, byte [esi + 0x3c]
test al, al
jne 0x4024b2
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 [0x634594]
fnstsw ax
test ah, 0x40
jne 0x40258a
mov ecx, dword [esi + 8]
call fcn.00539bc0
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xcc]
test eax, eax
je 0x40258a
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 0x40259c
mov eax, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [eax + 0xc]
push eax
call dword [edx + 0xfc]
test al, al
je 0x402533
cmp al, 0x80
jne 0x40259c
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 8]
mov al, byte [edx + 0x6d]
test al, al
jne 0x40259c
mov ecx, dword [esi + 8]
call fcn.00539bc0
mov cl, byte [eax + 0x169]
test cl, cl
jne 0x40258a
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x118]
fcomp dword [0x634594]
fnstsw ax
test ah, 0x41
jne 0x40258a
mov ecx, dword [esi + 8]
call fcn.00539bc0
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xcc]
cmp eax, 1
jne 0x40258a
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 0x4025ca
fld dword [ecx + 0x3c]
fcomp dword [esi + 0x24]
fnstsw ax
test ah, 0x40
je 0x4025ca
fld dword [ecx + 0x40]
fcomp dword [esi + 0x28]
fnstsw ax
test ah, 0x40
jne 0x40287f
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 [0x634598]
fnstsw ax
test ah, 0x41
je 0x402648
fcomp dword [0x6345b4]
fnstsw ax
test ah, 1
jne 0x40264a
fld dword [esp + 8]
fcomp dword [0x634598]
fnstsw ax
test ah, 0x41
je 0x40264a
fld dword [esp + 8]
fcomp dword [0x6345b4]
fnstsw ax
test ah, 1
jne 0x40264a
fld dword [esp + 4]
fcomp dword [0x634598]
fnstsw ax
test ah, 0x41
je 0x40264a
fld dword [esp + 4]
fcomp dword [0x6345b4]
fnstsw ax
test ah, 1
je 0x40287f
jmp 0x40264a
fstp st(0)
push ecx
mov ecx, dword [esi + 8]
call fcn.00539280
fst dword [esp + 4]
fcomp dword [esi + 0x50]
fnstsw ax
test ah, 1
je 0x4026d0
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
mov al, byte [esi + 0x3c]
test al, al
jne 0x40268d
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 [0x634594]
fnstsw ax
test ah, 0x40
jne 0x402802
mov ecx, dword [esi + 8]
call fcn.00539bc0
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xcc]
test eax, eax
je 0x402802
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 [0x6345ac]
fnstsw ax
test ah, 0x41
je 0x4026fd
fld dword [esp + 8]
fadd dword [0x634598]
fstp dword [esp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
cmp word [ecx + 0x16], 0x27
jne 0x402756
push ebp
push edi
xor ebp, ebp
mov ecx, dword [esi + 0x10]
mov edx, dword [0x6833d0]
push ebp
mov eax, dword [ecx]
mov edi, dword [edx + 0x424]
call dword [eax + 0x2e4]
push eax
mov ecx, edi
call fcn.00603f70
test eax, eax
je 0x40274e
mov ecx, dword [esi + 8]
push eax
call fcn.00539280
fcom dword [esp + 0xc]
fnstsw ax
test ah, 1
je 0x40274c
fstp dword [esp + 0xc]
jmp 0x40274e
fstp st(0)
inc ebp
cmp ebp, 2
jl 0x40270e
pop edi
pop ebp
fld dword [esp + 4]
fcomp dword [esp + 8]
fnstsw ax
test ah, 0x41
jne 0x40286a
mov ecx, dword [esp + 0x10]
mov dword [ecx], 2
mov al, byte [esi + 0x3c]
test al, al
jne 0x402795
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.00539bc0
cmp byte [eax + 0x169], 1
jne 0x402814
mov ecx, dword [esi + 8]
call fcn.00539bc0
mov ecx, dword [esi + 0x10]
fld dword [eax + 0x16c]
fsubr dword [ecx + 0x38]
mov ecx, dword [esi + 8]
fstp dword [esp + 0x10]
call fcn.00539bc0
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 [0x6345b0]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x402814
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 [0x634594]
fnstsw ax
test ah, 0x40
jne 0x402858
mov ecx, dword [esi + 8]
call fcn.00539bc0
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xcc]
test eax, eax
je 0x402858
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 + 0x300]
test al, al
jne 0x4028ad
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