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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x776918
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push esi
mov esi, ecx
mov al, byte [esi + 0x259]
test al, al
jne 0x50fffc
cmp byte [esi + 0x260], al
je 0x50f8ed
call fcn.0057e1f0
test al, al
je 0x50f8e6
mov byte [esi + 0x260], 1
pop esi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
add esp, 0x88
ret 8
mov byte [esi + 0x260], 0
mov eax, dword [0x1b0242c]
fld dword [eax + 0xc4]
push ebx
fld dword [eax + 0xc8]
mov ebx, dword [0x7943c4]
fcompp
push ebp
mov ebp, dword [0x7943a4]
push edi
fnstsw ax
test ah, 5
jp 0x50fae3
mov byte [esp + 0x13], 1
call fcn.004089d0
test byte [0xab32e8], 1
mov edi, eax
jne 0x50f947
or dword [0xab32e8], 1
push 0x40
push 0
push 0xab32a8
call fcn.0074d440
add esp, 0xc
test edi, edi
je 0x50fae8
fldz
push 0xab32a8
push ecx
fstp dword [esp]
mov ecx, edi
call fcn.004da0f0
test al, al
je 0x50fae8
push 0x1700
call ebx
call dword [0x7943b0]
fld dword [0xab32ac]
fstp dword [esp + 0x28]
lea eax, [esp + 0x28]
fld dword [0xab32bc]
push eax
fstp dword [esp + 0x30]
fld dword [0xab32cc]
fstp dword [esp + 0x34]
call dword [0x97e20c]
fld dword [0xab32b4]
mov ecx, dword [0x1b0242c]
fstp dword [esp + 0x38]
add esp, 4
fld dword [0xab32c4]
fstp dword [esp + 0x38]
fld dword [0xab32d4]
fstp dword [esp + 0x3c]
fld dword [esp + 0x28]
fchs
fstp dword [esp + 0x14]
fld dword [esp + 0x2c]
fchs
fstp dword [esp + 0x1c]
fld dword [esp + 0x30]
fchs
fstp dword [esp + 0x20]
fld dword [esp + 0x14]
fstp dword [esp + 0x40]
fld dword [esp + 0x1c]
fstp dword [esp + 0x44]
fld dword [esp + 0x20]
fstp dword [esp + 0x48]
call fcn.004e3400
fstp dword [esp + 0x20]
lea ecx, [esp + 0x40]
fld dword [esp + 0x20]
push ecx
fld st(0)
lea edx, [esp + 0x38]
fmul dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x54]
fstp dword [esp + 0x28]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x24]
fmul dword [esp + 0x38]
fstp dword [esp + 0x1c]
fld dword [esp + 0x28]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x28]
fld dword [esp + 0x40]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x44]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x28]
fstp dword [esp + 0x3c]
fld dword [esp + 0x24]
fstp dword [esp + 0x40]
fld dword [esp + 0x1c]
fstp dword [esp + 0x44]
call fcn.00405130
fld dword [esp + 0x4c]
lea eax, [esp + 0x4c]
fstp qword [esp + 0x6c]
push eax
fld dword [esp + 0x54]
fstp qword [esp + 0x78]
fld dword [esp + 0x58]
fstp qword [esp + 0x80]
fld dword [esp + 0x5c]
fstp qword [esp + 0x88]
call fcn.0050efe0
add esp, 4
lea ecx, [esp + 0x6c]
push ecx
push 0x3001
call dword [0x794300]
push 0x3001
call dword [0x794420]
push 0x1700
call ebx
call ebp
mov edi, dword [esp + 0x9c]
lea edx, [edi + 0x180]
push edx
call fcn.00537f10
add esp, 4
jmp 0x50faef
mov byte [esp + 0x13], 0
mov edi, dword [esp + 0x9c]
mov eax, dword [esi + 0x2dc]
mov ecx, dword [0x1b01cc4]
push eax
call fcn.0057cfa0
test al, al
je 0x50fff9
xor eax, eax
cmp dword [esi + 0x32c], eax
je 0x50fb6b
call fcn.00664ce0
mov ecx, eax
sub ecx, dword [esi + 0x330]
test ecx, ecx
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
jge 0x50fb32
fadd dword [0x7bb540]
fmul qword [0x7c0c30]
mov dword [esi + 0x330], eax
mov eax, dword [esi + 0x2dc]
mov byte [eax + 0xe8], 1
mov edx, dword [esi + 0x32c]
fstp dword [esp + 0x20]
mov ecx, dword [esi + 0x2dc]
fld dword [esp + 0x20]
push edx
push ecx
fstp dword [esp]
call fcn.004f0e50
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
call fcn.00538190
add esp, 4
push 0x1701
call ebx
call ebp
push esi
mov ecx, edi
call fcn.00586910
push 0x1700
call ebx
call ebp
push esi
mov ecx, edi
call fcn.00585d10
mov edx, dword [esi]
mov eax, dword [edx + 0xd0]
push 0
mov ecx, esi
call eax
fld dword [esi + 0x168]
fsub dword [esi + 0x15c]
add edi, 4
push edi
lea ecx, [esp + 0x44]
fstp dword [esp + 0x24]
push ecx
fld dword [esp + 0x28]
lea ecx, [esi + 0x218]
fld dword [esi + 0x164]
fsub dword [esi + 0x158]
fstp dword [esp + 0x28]
fadd dword [esp + 0x28]
fld dword [esi + 0x16c]
fsub dword [esi + 0x160]
fstp dword [esp + 0x28]
fadd dword [esp + 0x28]
fdiv qword [0x795860]
fstp dword [esp + 0x2c]
call fcn.00437a30
fld dword [eax]
fsub dword [edi]
fstp dword [esp + 0x1c]
fld dword [eax + 4]
fsub dword [edi + 4]
fstp dword [esp + 0x20]
fld dword [eax + 8]
fsub dword [edi + 8]
fstp dword [esp + 0x18]
fld dword [esp + 0x20]
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
call fcn.0074c5a0
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 0x14]
fldz
fld dword [esp + 0x14]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x50fcb1
fld dword [esp + 0x24]
sub esp, 8
fstp dword [esp + 4]
fstp dword [esp]
call fcn.005381d0
fdiv qword [0x7c2208]
add esp, 8
fstp dword [esp + 0x24]
fld dword [0x7c2200]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x50fcb3
push 1
call fcn.00437ae0
add esp, 4
jmp 0x50fcb3
fstp st(0)
push 0x1700
call ebx
call ebp
lea ebp, [esi + 0xcc]
push ebp
call fcn.00537f40
fld dword [esi + 0x154]
fstp dword [esp]
sub esp, 8
fld dword [esi + 0x150]
fstp dword [esp + 4]
fld dword [esi + 0x14c]
fstp dword [esp]
call dword [0x7942b0]
mov al, byte [0xab763c]
test al, al
je 0x50fd16
cmp byte [0xab77dd], 0
je 0x50fd16
movzx edx, al
push edx
call fcn.005381f0
mov eax, dword [0x97b1ec]
push eax
call fcn.00538220
add esp, 8
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0xa0]
call fcn.00437db0
mov ecx, dword [esi + 0x2dc]
push eax
mov dword [esp + 0x98], 0
call fcn.0043faa0
lea ecx, [esp + 0x24]
mov dword [esp + 0x94], 0xffffffff
call fcn.004350c0
fld1
push ecx
fstp dword [esp]
mov ecx, dword [esi + 0x2dc]
push 1
call fcn.0043fb30
fld1
push ecx
fstp dword [esp]
mov ecx, dword [esi + 0x2dc]
call fcn.00437d50
fld dword [ebp + 0xc]
fstp dword [esp + 0x28]
fld dword [ebp + 0x1c]
fstp dword [esp + 0x2c]
fld dword [ebp + 0x2c]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
fsub dword [edi]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fsub dword [edi + 4]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fsub dword [edi + 8]
fstp dword [esp + 0x30]
fld dword [esp + 0x2c]
fld dword [esp + 0x28]
fld dword [esp + 0x30]
fld st(2)
fmulp st(3)
fld st(1)
fmulp st(2)
fxch st(2)
faddp st(1)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
call fcn.0074c5a0
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
mov ecx, dword [esp + 0x9c]
fstp dword [esp + 0x14]
sub esp, 8
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.00585dc0
fstp dword [esp + 0x24]
fld1
fcomp dword [esi + 0x334]
fnstsw ax
test ah, 0x44
jp 0x50fe39
mov edx, dword [esp + 0xa0]
cmp byte [edx + 8], 1
jne 0x50fe29
mov byte [0xab28a5], 1
jmp 0x50fe40
mov byte [0xab28a5], 0
mov byte [0xab28a4], 1
jmp 0x50fe47
mov byte [0xab28a5], 0
mov byte [0xab28a4], 0
mov ecx, dword [esi + 0x2dc]
call fcn.00502ce0
cmp byte [0xab77da], 0
je 0x50fe6d
mov eax, dword [esi + 0x25c]
push eax
push 0x8914
call dword [0x98de08]
fld dword [esi + 0x2a8]
fstp dword [0xab2954]
fld dword [esi + 0x334]
mov byte [0x9797a8], 0
fstp dword [0x9797a4]
call fcn.0057c790
mov ecx, dword [esi + 0x2dc]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0
call eax
call fcn.0057c890
fld1
cmp byte [0xab77da], 0
fst dword [0x9797a4]
fstp dword [0xab2954]
mov byte [0x9797a8], 1
je 0x50fefb
push 0x8914
call dword [0x98de0c]
mov edx, dword [esi + 0x25c]
lea ecx, [esp + 0x18]
push ecx
push 0x8866
push edx
mov dword [esp + 0x24], 0
call dword [0x98de18]
cmp dword [esp + 0x18], 0
sete al
mov byte [esi + 0x260], al
cmp byte [0xab763c], 0
je 0x50ff17
cmp byte [0xab77dd], 0
je 0x50ff17
push 0
call fcn.005381f0
add esp, 4
push 0x1700
call ebx
mov edi, dword [0x7943b0]
call edi
cmp byte [esi + 0x2e5], 0
je 0x50ff4d
fld dword [esp + 0x24]
mov edx, dword [esi]
mov eax, dword [edx + 0xe4]
sub esp, 8
fstp dword [esp + 4]
mov ecx, esi
fld dword [esp + 0x1c]
fstp dword [esp]
call eax
cmp byte [0x992082], 0
mov byte [0xab28a5], 0
mov byte [0xab28a4], 0
je 0x50ff6f
push 0x1ab9950
call dword [0x794290]
cmp byte [0x992082], 0
mov byte [0x1ab9908], 0
je 0x50ff8a
push 0x1ab9950
call dword [0x79428c]
push 0x1700
call ebx
call edi
push 0x1701
call ebx
call edi
push 0x1700
call ebx
lea ecx, [esp + 0x5c]
push ecx
call fcn.005380f0
mov edx, dword [esi]
mov eax, dword [edx + 0xd4]
add esp, 4
mov ecx, esi
call eax
call fcn.00535ba0
cmp byte [esp + 0x13], 0
je 0x50ffd3
push 0x3001
call dword [0x794410]
cmp byte [esi + 0x33c], 0
je 0x50fff9
cmp byte [esi + 0x33d], 0
je 0x50fff9
mov byte [esi + 0x33c], 0
mov ecx, dword [0x9922cc]
mov byte [ecx + 0x52c], 0
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
pop esi
mov dword fs:[0], ecx
add esp, 0x88
ret 8