Function at 0x512c5c
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x66093e
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push esi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x70a5c0]
lea eax, [esp + 0x40]
push eax
call fcn.00553280
mov eax, dword [esi + 0x50c]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov dword [esp + 8], edx
mov ecx, eax
shr ecx, 8
fild dword [esp + 8]
movzx edx, cl
fld qword [0x686d80]
fmul st(1), st(0)
mov dword [esp + 8], edx
fxch st(1)
movzx ecx, al
fstp dword [esp + 0x2c]
fild dword [esp + 8]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
shr eax, 0x18
fmul st(1)
mov dword [esp + 0x40], edx
fstp dword [esp + 0x30]
fild dword [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], eax
fmul st(1)
lea eax, [esp + 0x40]
push eax
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
fild dword [esp + 0xc]
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x70a5c0]
fmulp st(1)
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x50], edx
call fcn.00553250
mov ecx, dword [0x70a5c0]
push 1
push 0x16
call fcn.005539f0
mov eax, dword [esi + 0x4c0]
cmp eax, 3
ja case.default.0x512986
jmp dword [eax*4 + 0x512d90]
mov ecx, esi
call fcn.00512140
mov ecx, esi
call fcn.005afc07
mov ecx, esi
call fcn.005121c0
mov ecx, esi
call fcn.005121d0
mov ecx, esi
call fcn.005afc4f
mov ecx, esi
call fcn.00512240
jmp case.default.0x512986
fld1
fcomp dword [esi + 0x4d4]
fnstsw ax
test ah, 0x44
jnp case.0x512986.0
fldz
fcomp dword [esi + 0x4d4]
fnstsw ax
test ah, 5
jp case.default.0x512986
mov ecx, esi
call fcn.00512270
mov ecx, esi
call fcn.005afc07
mov ecx, esi
call fcn.005afc4f
mov ecx, esi
call fcn.005123a0
jmp case.default.0x512986
mov ecx, esi
call fcn.005123d0
mov ecx, esi
call fcn.005afc07
mov ecx, esi
call fcn.005afc4f
mov ecx, esi
call fcn.00512620
jmp case.default.0x512986
mov ecx, esi
call fcn.00512650
mov ecx, esi
call fcn.005afc07
mov ecx, esi
call fcn.005afc4f
mov ecx, esi
call fcn.00512620
mov ecx, dword [0x70a5c0]
push 0x16
call fcn.00553a10
fld1
fst dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
fst dword [esp + 0x30]
mov edx, dword [esp + 0x30]
fst dword [esp + 0x34]
mov eax, dword [esp + 0x34]
fstp dword [esp + 0x38]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x70a5c0]
push edx
mov dword [esp + 0x4c], eax
call fcn.00553250
cmp byte [0x713778], 0
je 0x512d77
fld dword [esi + 0x460]
mov ecx, esi
fstp dword [esp + 8]
fld dword [esi + 0x464]
fstp dword [esp + 0x24]
fld dword [esi + 0x468]
fstp dword [esp + 0x28]
fldz
fst dword [esp + 0x18]
fld dword [0x673380]
fstp dword [esp + 0x1c]
fstp dword [esp + 0x20]
call fcn.005114c0
fmul qword [0x673388]
push ecx
lea eax, [esp + 0x88]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp]
push eax
call fcn.005d93d8
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, edx
push eax
call fcn.005d82bf
fld dword [esp + 0x18]
fld qword [0x678ff0]
mov ecx, esi
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x1c]
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 8]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x24]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x28]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fldz
fst dword [esp + 0xc]
fld dword [0x673380]
fstp dword [esp + 0x10]
fstp dword [esp + 0x14]
call fcn.005114e0
fmul qword [0x673388]
push ecx
lea ecx, [esp + 0xc8]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp]
push ecx
call fcn.005d93d8
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push ecx
call fcn.005d82bf
fld dword [esp + 0xc]
fld qword [0x678ff0]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0xc]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x10]
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 8]
fadd dword [esp + 0xc]
test byte [0x713780], 1
fstp dword [esp + 0xc]
fld dword [esp + 0x24]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x28]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
jne 0x512c14
or dword [0x713780], 1
mov ecx, 0x71377c
mov dword [esp + 0x10c], 0
call fcn.00554a30
push 0x671460
call fcn.00610c09
add esp, 4
mov dword [esp + 0x10c], 0xffffffff
mov ecx, dword [0x70a5c0]
push 0
push 2
push 0
call fcn.00553a30
mov ecx, dword [0x70a5c0]
push 2
push 1
push 0
call fcn.00553a30
mov ecx, dword [0x70a5c0]
push 1
push 4
push 0
call fcn.00553a30
mov ecx, dword [0x70a5c0]
push 0
push 7
call fcn.005539f0
mov ecx, dword [0x70a5c0]
push 0
push 0x89
call fcn.005532b0
fld1
sub esp, 0x10
fst dword [esp + 0xc]
fldz
mov ecx, 0x71377c
fstp dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
call fcn.00554870
fld dword [esp + 0x14]
sub esp, 0x18
fstp dword [esp + 0x14]
mov ecx, 0x71377c
fld dword [esp + 0x28]
fstp dword [esp + 0x10]
fld dword [esp + 0x24]
fstp dword [esp + 0xc]
fld dword [esp + 0x40]
fstp dword [esp + 8]
fld dword [esp + 0x3c]
fstp dword [esp + 4]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.00554af0
fld1
sub esp, 0x10
fst dword [esp + 0xc]
mov ecx, 0x71377c
fst dword [esp + 8]
fstp dword [esp + 4]
fldz
fstp dword [esp]
call fcn.00554870
fld dword [esp + 0x20]
sub esp, 0x18
fstp dword [esp + 0x14]
fld dword [esp + 0x34]
mov ecx, 0x71377c
fstp dword [esp + 0x10]
fld dword [esp + 0x30]
fstp dword [esp + 0xc]
fld dword [esp + 0x40]
fstp dword [esp + 8]
fld dword [esp + 0x3c]
fstp dword [esp + 4]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.00554af0
mov ecx, dword [0x70a5c0]
push 1
push 0x89
call fcn.005532b0
mov ecx, dword [0x70a5c0]
push 7
call fcn.00553a10
mov ecx, dword [0x70a5c0]
push 2
push 0
call fcn.00553a60
mov ecx, dword [0x70a5c0]
push 1
push 0
call fcn.00553a60
mov ecx, dword [0x70a5c0]
push 4
push 0
call fcn.00553a60
mov ecx, dword [0x70a5c0]
call fcn.00553ab0
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x108
ret