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

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
call dword [sym.imp.libpcaewin.dll_CurOb_Application_Number]
test ebx, ebx
je 0x50916f
mov dword [ebx + 0x184], 0
fldz
lea edx, [eax - 0x72]
fst qword [ebx + 0x490]
mov dword [ebx + 0x180], 0
fst qword [ebx + 0x488]
mov dword [ebx + 0x17c], 0
fst qword [ebx + 0x508]
mov dword [ebx + 0x178], 0
fst qword [ebx + 0x500]
mov dword [ebx + 0x174], 0
fst qword [ebx + 0x4f8]
mov dword [ebx + 0x170], 0
fst qword [ebx + 0x4f0]
mov dword [ebx + 0x16c], 0
fst qword [ebx + 0x4e8]
fst qword [ebx + 0x4e0]
fst qword [ebx + 0x4d8]
fst qword [ebx + 0x4d0]
fst qword [ebx + 0x4c8]
fst qword [ebx + 0x528]
fst qword [ebx + 0x520]
fst qword [ebx + 0x518]
fstp qword [ebx + 0x510]
cmp edx, 1
jbe 0x509178
mov edx, eax
xor ecx, ecx
and edx, 0xffffffef
fldz
cmp edx, 0x69
mov dword [ebx + 4], 0
fst qword [ebx + 0x1c0]
sete dl
movzx edx, dl
add edx, edx
mov dword [ebx + 8], 1
fst qword [ebx + 0x1c8]
mov dword [ebx], edx
fst qword [ebx + 0x1d0]
fld dword [0x785614]
mov dword [ebx + 0xc], 0
fst qword [ebx + 0x190]
fxch st(1)
mov dword [ebx + 0x10], 1
fst qword [ebx + 0x1d8]
fld dword [0x785618]
mov dword [ebx + 0x14], 2
fst qword [ebx + 0x198]
fxch st(2)
mov dword [ebx + 0x18], 2
fstp qword [ebx + 0x1a0]
mov dword [ebx + 0x1c], 1
fst qword [ebx + 0x1b0]
fxch st(1)
mov dword [ebx + 0x20], 1
fstp qword [ebx + 0x1a8]
mov dword [ebx + 0x24], 0
fst qword [ebx + 0x1e0]
fld dword [0x7855ec]
mov dword [ebx + 0x28], 1
fst qword [ebx + 0x1b8]
fxch st(1)
mov dword [ebx + 0x2c], 1
fst qword [ebx + 0x1e8]
fld dword [0x78561c]
mov dword [ebx + 0x30], 0
fst qword [ebx + 0x1f0]
fxch st(1)
mov dword [ebx + 0x34], 1
fst qword [ebx + 0x200]
fst qword [ebx + 0x1f8]
fld dword [0x785620]
mov dword [ebx + 0x38], 1
fstp qword [ebx + 0x228]
fxch st(1)
fst qword [ebx + 0x218]
mov dword [ebx + 0x40], 1
fst qword [ebx + 0x208]
mov dword [ebx + 0x44], 0
fst qword [ebx + 0x220]
mov dword [ebx + 0x48], 2
fstp qword [ebx + 0x210]
mov dword [ebx + 0x4c], 1
fld1
mov dword [ebx + 0x3c], 1
fstp qword [ebx + 0x230]
fld dword [0x785624]
mov dword [ebx + 0x50], 8
mov dword [ebx + 0x54], 2
fstp qword [ebx + 0x238]
fld dword [0x785628]
mov dword [ebx + 0x58], 2
mov dword [ebx + 0x5c], 1
fstp qword [ebx + 0x570]
fld dword [0x7855c8]
mov dword [ebx + 0x250], 0x33333333
mov dword [ebx + 0x254], 0x3feb3333
fstp qword [ebx + 0x240]
fld dword [0x78562c]
fstp qword [ebx + 0x248]
fld dword [0x785630]
fstp qword [ebx + 0x258]
fld dword [0x785634]
fstp qword [ebx + 0x260]
fld dword [0x7855e0]
fstp qword [ebx + 0x268]
fld dword [0x785638]
mov dword [ebx + 0x2c8], 0x9999999a
mov dword [ebx + 0x2cc], 0x3fc99999
fst qword [ebx + 0x2a8]
mov dword [ebx + 0x60], 1
fstp qword [ebx + 0x288]
fld dword [0x78563c]
mov dword [ebx + 0x6c], 0
fst qword [ebx + 0x2b0]
fstp qword [ebx + 0x290]
fld dword [0x785640]
fst qword [ebx + 0x2b8]
fstp qword [ebx + 0x298]
fld dword [0x785644]
fst qword [ebx + 0x2c0]
fstp qword [ebx + 0x2a0]
cmp eax, 0x79
je 0x509190
fst qword [ebx + 0x280]
fld dword [0x785674]
mov dword [ebx + 0x144], 0
fstp qword [ebx + 0x270]
fst qword [ebx + 0x278]
mov dword [ebx + 0x530], 0
mov dword [ebx + 0x534], 1
test ecx, ecx
jne 0x5091d6
mov eax, 2
fld qword [0x785608]
fld dword [0x785610]
fxch st(3)
mov edx, eax
fst qword [ebx + 0x2d0]
fld1
mov dword [ebx + 0x64], edx
fst qword [ebx + 0x568]
fld dword [0x7855e0]
mov dword [ebx + 0x70], 0
fst qword [ebx + 0x2d8]
fld dword [0x785648]
mov dword [ebx + 0x74], 1
fstp qword [ebx + 0x2e0]
fxch st(1)
mov dword [ebx + 0x78], 0
fst qword [ebx + 0x2e8]
mov dword [ebx + 0x7c], 2
fldz
mov dword [ebx + 0x68], 0
fstp qword [ebx + 0x2f0]
fxch st(3)
mov dword [ebx + 0x14c], 0
fst qword [ebx + 0x320]
fld dword [0x78561c]
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
fst qword [ebx + 0x340]
mov dword [ebx + 0x88], 1
fst qword [ebx + 0x330]
mov dword [ebx + 0x8c], 1
fst qword [ebx + 0x348]
mov dword [ebx + 0x90], 0
fst qword [ebx + 0x338]
fxch st(4)
mov dword [ebx + 0x94], 2
mov dword [ebx + 0x2f8], 0xcccccccd
mov dword [ebx + 0x2fc], 0x4010cccc
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 1
mov dword [ebx + 0xc4], 0xffffffff
mov dword [ebx + 0x328], 0xcccccccd
fst qword [ebx + 0x478]
fxch st(6)
mov dword [ebx + 0x32c], 0x3fe4cccc
fst qword [ebx + 0x300]
fld dword [0x785624]
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xa8], 1
fstp qword [ebx + 0x308]
fld dword [0x785658]
mov dword [ebx + 0xac], 1
fstp qword [ebx + 0x310]
fld dword [0x78565c]
mov dword [ebx + 0xa0], 1
fstp qword [ebx + 0x318]
fld dword [0x785660]
mov dword [ebx + 0xb4], 0x1c
fstp qword [ebx + 0x350]
fxch st(1)
mov dword [ebx + 0xa4], 1
fst qword [ebx + 0x550]
mov dword [ebx + 0x578], 0x33333333
mov dword [ebx + 0x57c], 0x3fe33333
mov dword [ebx + 0x580], 0x9999999a
mov dword [ebx + 0x584], 0x3fe99999
mov dword [ebx + 0xbc], 1
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xc0], 1
mov dword [ebx + 0x540], 1
mov dword [ebx + 0x548], 1
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0x154], 0
mov dword [ebx + 0xcc], 8
mov dword [ebx + 0xd0], 2
mov dword [ebx + 0xd4], 2
mov dword [ebx + 0xd8], 1
fld dword [0x785628]
mov dword [ebx + 0x3e0], 0x9999999a
mov dword [ebx + 0x3e4], 0x3fc99999
fstp qword [ebx + 0x468]
fld dword [0x7855c8]
mov dword [ebx + 0xdc], 1
mov dword [ebx + 0xe4], 0
fstp qword [ebx + 0x358]
fld dword [0x78562c]
mov dword [ebx + 0x148], 0
fstp qword [ebx + 0x360]
fldz
fstp qword [ebx + 0x368]
fld dword [0x785630]
fstp qword [ebx + 0x370]
fld dword [0x785634]
fstp qword [ebx + 0x378]
fxch st(2)
fst qword [ebx + 0x380]
fld dword [0x785638]
fst qword [ebx + 0x3c0]
fstp qword [ebx + 0x3a0]
fld dword [0x78563c]
fst qword [ebx + 0x3c8]
fstp qword [ebx + 0x3a8]
fld dword [0x785640]
fst qword [ebx + 0x3d0]
fstp qword [ebx + 0x3b0]
fld dword [0x785644]
fst qword [ebx + 0x3d8]
fstp qword [ebx + 0x3b8]
fxch st(5)
fstp qword [ebx + 0x398]
fld dword [0x785664]
fst qword [ebx + 0x388]
fld qword [0x785668]
mov dword [ebx + 0xe0], eax
fst qword [ebx + 0x390]
fxch st(4)
fstp qword [ebx + 0x3e8]
fld dword [0x785648]
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 1
fstp qword [ebx + 0x3f8]
fxch st(6)
mov dword [ebx + 0xf0], 0
fst qword [ebx + 0x400]
mov dword [ebx + 0xf4], 2
mov dword [ebx + 0x150], 0
fldz
fstp qword [ebx + 0x408]
fxch st(5)
mov dword [ebx + 0xf8], 0
fstp qword [ebx + 0x3f0]
fxch st(1)
mov dword [ebx + 0x124], 0
fst qword [ebx + 0x430]
fxch st(3)
fst qword [ebx + 0x450]
mov dword [ebx + 0x128], 0
fst qword [ebx + 0x440]
mov dword [ebx + 0x12c], 1
fst qword [ebx + 0x458]
mov dword [ebx + 0x130], 1
fstp qword [ebx + 0x448]
fxch st(3)
mov dword [ebx + 0x134], 0
mov dword [ebx + 0x138], 2
mov dword [ebx + 0x460], 0xcccccccd
mov dword [ebx + 0x464], 0x4010cccc
mov dword [ebx + 0x13c], 0
mov dword [ebx + 0x538], 0
mov dword [ebx + 0x53c], 1
mov dword [ebx + 0xfc], 1
mov dword [ebx + 0x438], 0xcccccccd
fstp qword [ebx + 0x480]
fxch st(2)
mov dword [ebx + 0x43c], 0x3fe4cccc
fstp qword [ebx + 0x410]
fld dword [0x785624]
mov dword [ebx + 0x110], 0
mov dword [ebx + 0x108], 1
fstp qword [ebx + 0x418]
fld dword [0x785658]
mov dword [ebx + 0x10c], 1
fstp qword [ebx + 0x420]
fld dword [0x78565c]
mov dword [ebx + 0x11c], 0
fstp qword [ebx + 0x428]
mov dword [ebx + 0x100], 1
fstp qword [ebx + 0x558]
fld dword [0x785660]
mov dword [ebx + 0x118], 0x1c
mov dword [ebx + 0x104], 1
fstp qword [ebx + 0x470]
fld dword [0x785670]
mov dword [ebx + 0x588], 0x33333333
fstp qword [ebx + 0x498]
mov dword [ebx + 0x58c], 0x3fe33333
mov dword [ebx + 0x590], 0x9999999a
mov dword [ebx + 0x594], 0x3fe99999
mov dword [ebx + 0x120], 1
mov dword [ebx + 0x544], 1
mov dword [ebx + 0x54c], 1
mov dword [ebx + 0x114], 0
mov dword [ebx + 0x158], 0
mov dword [ebx + 0x140], 1
mov dword [ebx + 0x15c], 1
mov dword [ebx + 0x160], 1
fst qword [ebx + 0x4a0]
fxch st(1)
mov dword [ebx + 0x164], 1
fstp qword [esp + 8]
fstp qword [esp]
call fcn.005647d0
mov dword [ebx + 0x168], 1
fstp qword [ebx + 0x4a8]
mov dword [ebx + 0x4b8], 0x9999999a
fld1
fstp qword [ebx + 0x4b0]
mov dword [ebx + 0x4bc], 0x3fb99999
mov dword [ebx + 0x188], 0
fldz
fstp qword [ebx + 0x4c0]
mov dword [esp], ebx
call fcn.005079d0
add esp, 0x18
pop ebx
ret
sub eax, 0xa
mov ecx, 1
mov edx, eax
jmp 0x508949
fstp st(1)
fld dword [0x7855e8]
mov dword [ebx + 0x144], 0
mov dword [ebx + 0x530], 0
mov dword [ebx + 0x534], 1
fst qword [ebx + 0x280]
fld dword [0x785674]
fstp qword [ebx + 0x270]
fxch st(1)
fstp qword [ebx + 0x278]
fld st(0)
test ecx, ecx
je 0x5091f0
xor edx, edx
fld qword [0x7855f8]
xor eax, eax
fld qword [0x785600]
fxch st(3)
jmp 0x508bd1
mov eax, 1
jmp 0x508bc1