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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x7724db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x608
mov eax, dword [0x7f3d40]
test eax, eax
push ebx
push esi
push edi
je 0x490d3f
cmp dword [ebp + 0x1c], 2
jne 0x49093f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
fld dword [ecx + 0x509c]
fld dword [0x7f39a8]
fsub dword [0x7f39a4]
fmul st(1)
fadd dword [0x7f39a4]
fstp dword [0x7f39a0]
fstp st(0)
mov ebx, dword [ebp + 0xc]
test ebx, ebx
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x40]
je 0x490d3f
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x490d3f
test esi, esi
je 0x490d3f
fld dword [ebp + 0x20]
movsx eax, byte [ebx + 0x2c]
fcomp dword [0x7d7d3c]
movsx ecx, byte [ebx + 0x2d]
mov dword [esp + 0x64], eax
mov dword [esp + 0xcc], ecx
fnstsw ax
test ah, 0x44
jnp 0x490991
mov edx, dword [ebp + 0x20]
mov dword [ebx + 0x1c], edx
jmp 0x490aae
cmp dword [ebx + 0x1c], 0x4479c000
je 0x4909a4
cmp dword [ebp + 0x18], 1
jne 0x490aae
lea ecx, [esp + 0x2f8]
call fcn.005e08b0
fld dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
fld dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
fmul dword [edi + 0x10]
lea eax, [esp + 0x40]
fld st(1)
push eax
fmul dword [edi + 0x20]
lea ecx, [esp + 0x2fc]
mov dword [esp + 0x620], 0
faddp st(1)
fld dword [esp + 0x44]
fmul dword [edi]
faddp st(1)
fadd dword [edi + 0x30]
fld dword [esp + 0x44]
fmul dword [edi + 4]
fld dword [esp + 0x30]
fmul dword [edi + 0x14]
faddp st(1)
fld st(2)
fmul dword [edi + 0x24]
faddp st(1)
fadd dword [edi + 0x34]
fld dword [esp + 0x44]
fmul dword [edi + 8]
fld dword [esp + 0x30]
fmul dword [edi + 0x18]
faddp st(1)
fxch st(3)
fmul dword [edi + 0x28]
faddp st(3)
fxch st(2)
fadd dword [edi + 0x38]
fstp dword [esp + 0xbc]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x4c], edx
fstp dword [esp + 0x44]
fstp dword [esp + 0x48]
call fcn.00486e60
test al, al
jne 0x490a53
mov dword [ebx + 0x1c], 0x461c3c00
jmp 0x490a97
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x308]
call fcn.005e7be0
fst dword [ebx + 0x1c]
fld st(0)
fsub dword [ebx + 0x18]
fabs
fcomp dword [0x7844f4]
fnstsw ax
test ah, 5
jp 0x490a8a
mov dword [ebx + 0x1c], 0x461c3c00
jmp 0x490a95
fld dword [esp + 0x48]
fsub st(1)
fsubr st(1)
fstp dword [ebx + 0x1c]
fstp st(0)
lea ecx, [esp + 0x2f8]
mov dword [esp + 0x61c], 0xffffffff
call fcn.005e0960
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
add ebx, 0x10
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x27c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.00487200
mov eax, dword [ebp + 0x1c]
cmp eax, 2
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
jne 0x490c76
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x1c]
cmp eax, 0x4479c000
je 0x490d3f
cmp eax, 0x461c3c00
je 0x490d3f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x28c]
call fcn.004871a0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00486fd0
mov edx, dword [ebx + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax + 8], edx
lea eax, [esp + 0xa0]
mov dword [esp + 0x88], esp
push eax
lea ecx, [esp + 0x7c]
call fcn.00487010
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0xd8]
push eax
call fcn.0043d5b0
mov ecx, dword [0x7f39a0]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0xe8]
push ecx
call fcn.0043d680
mov edi, dword [ebp + 8]
add esp, 0x1c
push 0
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0xd8]
push eax
mov ecx, edi
call fcn.005bc010
test eax, eax
je 0x490d3f
add ebx, 0x20
push ebx
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x38]
call fcn.004870b0
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x38]
call fcn.0048b780
mov ecx, eax
call fcn.004872b0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x44]
call fcn.00487010
jmp 0x490e9b
cmp eax, 1
jne 0x490d56
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x28c]
call fcn.004871a0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00486fd0
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0xd8]
push ecx
call fcn.0043d5b0
mov edx, dword [0x7f3d4c]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0xe8]
push edx
call fcn.0043d680
add esp, 0x1c
push 0
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0xd8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.005bc010
test eax, eax
jne 0x490e98
xor eax, eax
mov ecx, dword [esp + 0x614]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
je 0x490d64
cmp eax, 4
jne 0x490e09
mov ecx, dword [esp + 0x64]
cmp ecx, 0xd
je 0x490e09
cmp ecx, 0xe
je 0x490e09
cmp eax, 3
mov ecx, 0x89e7a0
jne 0x490d88
push 0
jmp 0x490d8a
push 1
call fcn.005ed700
mov ecx, dword [0x890080]
push eax
call fcn.005f0bb0
mov edi, eax
lea edx, [edi + 0x60]
push edx
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.00401280
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0043cf80
fld dword [esp + 0x4c]
fmul dword [edi + 0x94]
add esp, 8
fld dword [esp + 0x48]
fmul dword [edi + 0x98]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [edi + 0x90]
faddp st(1)
fcom dword [0x803a70]
fnstsw ax
test ah, 1
jne 0x490f75
fsub dword [0x803a70]
fld dword [0x784250]
fsub dword [0x803a70]
fdivp st(1)
fstp dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x28c]
call fcn.004871a0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00486fd0
mov ecx, dword [ebp + 8]
push 0
lea edx, [esp + 0x6c]
push edx
call fcn.005bc160
test eax, eax
je 0x490d3f
mov eax, dword [ebp + 0xc]
add eax, 0x20
push eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x38]
call fcn.004870b0
mov edi, dword [ebp + 8]
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x80], edx
sub esp, 0x10
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x7c]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x80]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x84]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x94]
call fcn.00486f80
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x54]
call fcn.0048b740
fld dword [0x78d798]
mov eax, dword [ebp + 0x1c]
fld dword [0x78d79c]
dec eax
mov dword [esp + 0xc8], 0x3f800000
je 0x490f53
dec eax
jne 0x490f63
fstp st(0)
fstp st(0)
fld dword [0x78d7a0]
fld dword [0x78d7a4]
jmp 0x490f63
fstp st(0)
fstp st(0)
fld dword [0x78d7a8]
fld dword [0x78d7ac]
fld dword [esp + 0x80]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x490f8e
fstp st(0)
fstp st(0)
xor eax, eax
mov ecx, dword [esp + 0x614]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [esp + 0x80]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x490fbc
fld dword [esp + 0x80]
fsub st(2)
fxch st(1)
fsub st(2)
fdivp st(1)
fsubr dword [0x784250]
fstp dword [esp + 0xc8]
jmp 0x490fbe
fstp st(0)
lea ecx, [esp + 0x90]
fstp st(0)
push ecx
lea ecx, [esp + 0x44]
call fcn.00487040
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x54]
mov dword [edx + 0xc], eax
call fcn.00486fd0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x28c]
call fcn.00487120
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x98]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x54]
call fcn.0048b740
test byte [esp + 0xcc], 1
je 0x4910af
fld dword [esp + 0x80]
mov eax, dword [esp + 0x34]
fabs
sub esp, 0x10
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xa0]
push ecx
jmp 0x4910f3
fld dword [esp + 0x80]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 5
jp 0x4910ff
mov ecx, dword [esp + 0x34]
sub esp, 0x10
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x40]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x94]
call fcn.004870f0
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x130], eax
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x134], ecx
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0x28]
push esi
lea ecx, [esp + 0x2bc]
mov dword [esp + 0x13c], edx
call fcn.00487200
fld dword [edi + 0xc]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x84]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0xc0]
fstp dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x2cc]
call fcn.004871a0
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0xb4]
call fcn.0048b780
fld dword [eax + 8]
mov edx, dword [esp + 0x68]
fdiv dword [esp + 0x7c]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x140], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x160], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x148], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x164], eax
lea eax, [edx*8 + 0x7f3cc8]
mov dword [esp + 0x168], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x7c], 2
fstp dword [esp + 0x2c]
nop
mov ecx, dword [esp + 0x64]
mov esi, dword [ecx]
test esi, esi
je 0x4917e9
cmp dword [ebp + 0x1c], 2
jne 0x491239
push 0
push 0
push 0x3394fe62
call fcn.00490160
add esp, 0xc
mov ebx, eax
jmp 0x491243
mov edx, dword [esi + 0x28]
mov ebx, dword [edx*4 + 0x82cc10]
test ebx, ebx
je 0x4917e9
mov eax, dword [ebp + 0x14]
mov dword [0x82d528], eax
test byte [esp + 0xcc], 4
je 0x49128c
fld dword [esp + 0x80]
fld dword [esi + 0x18]
call fcn.0075c6d0
fmul dword [ebp + 0x14]
fst dword [0x82d528]
fcomp dword [0x784250]
fnstsw ax
test ah, 0x41
jne 0x49128c
mov dword [0x82d528], 0x3f800000
fld dword [esi + 4]
fsub dword [esi]
fmul dword [0x82d528]
fadd dword [esi]
fst dword [esp + 0xa8]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jnp 0x4917e9
mov ecx, dword [esi + 0x1c]
push ecx
lea edx, [esp + 0x164]
push edx
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0043d130
fld dword [esp + 0x3c]
fcomp dword [esi + 0x20]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x4912e7
mov edx, dword [esi + 0x20]
mov dword [esp + 0x2c], edx
fld dword [esp + 0x2c]
fcomp dword [esi + 0x24]
fnstsw ax
test ah, 0x41
jne 0x4912fc
mov eax, dword [esi + 0x24]
mov dword [esp + 0x2c], eax
fld dword [esp + 0xa8]
lea ecx, [esp + 0x180]
fmul dword [esp + 0x2c]
fstp dword [esp + 0xa8]
call fcn.005baef0
fld dword [0x82d528]
fmul dword [esi + 8]
fstp dword [esp + 0x78]
fld dword [0x82d528]
fmul dword [esi + 0xc]
fstp dword [esp + 0xec]
fld dword [0x82d528]
fmul dword [esi + 0x10]
fstp dword [esp + 0xe8]
fld dword [0x82d528]
fmul dword [esi + 0x14]
fmul dword [esp + 0xc8]
fadd st(0), st(0)
fst dword [esp + 0xac]
fcomp dword [0x784544]
fnstsw ax
test ah, 0x41
jne 0x491378
mov dword [esp + 0xac], 0x437f0000
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x49153f
lea ecx, [esp + 0x130]
push ecx
lea edx, [esp + 0x134]
push edx
call fcn.0043cf80
add esp, 8
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x244]
push ecx
mov ecx, edi
call fcn.005bc1b0
mov ecx, edi
call fcn.005b9d80
mov dword [esp + 0xe4], eax
fild dword [esp + 0xe4]
fdivr dword [esp + 0x240]
fmul dword [0x7f3d50]
fstp dword [0x82db00]
mov edx, dword [0x82db00]
push edx
call fcn.00401020
lea ecx, [esp + 0xf4]
push eax
lea eax, [esp + 0x138]
push eax
push ecx
call fcn.005ba5e0
fld dword [esp + 0x120]
fmul dword [esp + 0x28]
add esp, 0x10
fld dword [esp + 0x100]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0xf0]
fmul dword [esp + 0x10]
faddp st(1)
fadd dword [esp + 0x120]
fld dword [esp + 0x114]
fmul dword [esp + 0x18]
fld dword [esp + 0x104]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0xf4]
fmul dword [esp + 0x10]
faddp st(1)
fadd dword [esp + 0x124]
fld dword [esp + 0x118]
fmul dword [esp + 0x18]
fld dword [esp + 0x108]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0xf8]
fmul dword [esp + 0x10]
faddp st(1)
fadd dword [esp + 0x128]
fstp dword [esp + 0x268]
mov edx, dword [esp + 0x268]
fxch st(1)
mov dword [esp + 0x18], edx
fstp dword [esp + 0x10]
fstp dword [esp + 0x14]
fld dword [esp + 0x110]
fmul dword [esp + 0x58]
fld dword [esp + 0x100]
fmul dword [esp + 0x54]
faddp st(1)
fld dword [esp + 0xf0]
fmul dword [esp + 0x50]
faddp st(1)
fadd dword [esp + 0x120]
fld dword [esp + 0x114]
fmul dword [esp + 0x58]
fld dword [esp + 0x104]
fmul dword [esp + 0x54]
faddp st(1)
fld dword [esp + 0xf4]
fmul dword [esp + 0x50]
faddp st(1)
fadd dword [esp + 0x124]
fld dword [esp + 0x118]
fmul dword [esp + 0x58]
fld dword [esp + 0x108]
fmul dword [esp + 0x54]
faddp st(1)
fld dword [esp + 0xf8]
fmul dword [esp + 0x50]
faddp st(1)
fadd dword [esp + 0x128]
fstp dword [esp + 0x238]
mov eax, dword [esp + 0x238]
fxch st(1)
mov dword [esp + 0x58], eax
fstp dword [esp + 0x50]
fstp dword [esp + 0x54]
mov esi, dword [esp + 0xa8]
push esi
lea ecx, [esp + 0x14]
call fcn.0042fb30
push esi
lea ecx, [esp + 0x54]
call fcn.0042fb30
cmp dword [ebp + 0x1c], 2
jne 0x4915af
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x18]
fsub dword [eax + 0x1c]
fcomp dword [0x78d7b0]
fnstsw ax
test ah, 5
jp 0x491597
fld dword [0x7f39a0]
push ecx
fmul dword [0x784260]
lea ecx, [esp + 0x54]
fstp dword [esp]
call fcn.0042fb30
fld dword [0x784544]
jmp 0x4915b6
mov ecx, dword [0x7f39a0]
push ecx
lea ecx, [esp + 0x54]
call fcn.0042fb30
fld dword [0x784544]
jmp 0x4915b6
fld dword [esp + 0xac]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4915cc
call fcn.0075bc00
mov esi, eax
mov eax, dword [ebp + 0x24]
shl esi, 0x18
jmp 0x491601
call fcn.0075bc00
fld dword [esp + 0xe8]
mov esi, eax
shl esi, 8
call fcn.0075bc00
fld dword [esp + 0xec]
or esi, eax
shl esi, 8
call fcn.0075bc00
fld dword [esp + 0x78]
or esi, eax
shl esi, 8
call fcn.0075bc00
fld dword [esp + 0x10]
or esi, eax
fchs
mov dword [esp + 0x1e0], esi
fst dword [esp + 0x210]
mov dword [esp + 0x1e4], esi
fld dword [esp + 0x14]
mov dword [esp + 0x1e8], esi
fchs
mov dword [esp + 0x1ec], esi
fld st(0)
fld dword [esp + 0x18]
fchs
fst dword [esp + 0x78]
fld dword [esp + 0x210]
fsub dword [esp + 0x50]
fstp dword [esp + 0x40]
fxch st(1)
fsub dword [esp + 0x54]
fstp dword [esp + 0x44]
fsub dword [esp + 0x58]
fld dword [esp + 0x40]
fadd dword [esp + 0x30]
fld dword [esp + 0x44]
fadd dword [esp + 0x34]
fxch st(2)
fadd dword [esp + 0x38]
fstp dword [esp + 0x258]
mov edx, dword [esp + 0x258]
fstp dword [esp + 0x180]
mov dword [esp + 0x188], edx
fstp dword [esp + 0x184]
fld dword [esp + 0x10]
fsub dword [esp + 0x50]
fld dword [esp + 0x14]
fsub dword [esp + 0x54]
fstp dword [esp + 0x154]
fld dword [esp + 0x18]
fsub dword [esp + 0x58]
fstp dword [esp + 0x158]
fadd dword [esp + 0x30]
fld dword [esp + 0x154]
fadd dword [esp + 0x34]
fld dword [esp + 0x158]
fadd dword [esp + 0x38]
fstp dword [esp + 0x228]
fxch st(1)
mov eax, dword [esp + 0x228]
fstp dword [esp + 0x190]
mov dword [esp + 0x198], eax
fstp dword [esp + 0x194]
fld dword [esp + 0x50]
fadd dword [esp + 0x10]
fld dword [esp + 0x54]
fadd dword [esp + 0x14]
fstp dword [esp + 0xd4]
fld dword [esp + 0x58]
fadd dword [esp + 0x18]
fstp dword [esp + 0xd8]
fadd dword [esp + 0x30]
fld dword [esp + 0xd4]
fadd dword [esp + 0x34]
fld dword [esp + 0xd8]
fadd dword [esp + 0x38]
fstp dword [esp + 0x208]
fxch st(1)
mov ecx, dword [esp + 0x208]
fstp dword [esp + 0x1a0]
push 0
push 0
fstp dword [esp + 0x1ac]
push 0x872e90
fxch st(1)
push ebx
fstp dword [esp + 0x180]
lea eax, [esp + 0x190]
fld dword [esp + 0x88]
mov dword [esp + 0x1b8], ecx
fld dword [esp + 0x180]
push eax
fadd dword [esp + 0x64]
mov ecx, edi
fstp dword [esp + 0xc4]
fxch st(1)
fadd dword [esp + 0x68]
fstp dword [esp + 0xc8]
fadd dword [esp + 0x6c]
fld dword [esp + 0xc4]
fadd dword [esp + 0x44]
fld dword [esp + 0xc8]
fadd dword [esp + 0x48]
fxch st(2)
fadd dword [esp + 0x4c]
fstp dword [esp + 0xac]
mov edx, dword [esp + 0xac]
fstp dword [esp + 0x1c4]
mov dword [esp + 0x1cc], edx
fstp dword [esp + 0x1c8]
call fcn.005c7b50
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x7c]
add ecx, 4
dec eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x7c], eax
jne 0x491210
mov ecx, dword [esp + 0x614]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret