Function at 0x564470
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dc3f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea ecx, [esp + 0x88]
lea eax, [esi + 0x20]
push eax
call fcn.004b6cb0
lea eax, [esi + 0x40]
xor edi, edi
push eax
lea ecx, [esp + 0xcc]
mov dword [esp + 0xf4], edi
call fcn.004b6cb0
fld qword [esp + 0x88]
fsub qword [esp + 0xc8]
fld qword [ebx + 0x38]
fadd st(0), st(0)
lea ecx, [esp + 0x88]
mov byte [esp + 0xf0], 1
faddp st(1)
fstp qword [esp + 0x1c]
call fcn.004b71f0
fmul qword [0x5f0b18]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov eax, dword [ebx + 0x70]
cmp eax, edi
mov dword [esp + 0xc], edi
fstp qword [esp + 0x14]
jle 0x56466f
mov dword [esp + 0x10], edi
mov edi, dword [ebx + 0x6c]
mov ecx, dword [esp + 0x10]
add edi, ecx
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x34]
add ecx, eax
test ecx, ecx
jle 0x564650
fld qword [edi]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x564650
lea eax, [esi + 0x40]
lea ecx, [esp + 0xa8]
push eax
call fcn.004b6cb0
fld qword [esp + 0x88]
fadd qword [edi]
lea ecx, [esp + 0xa8]
mov byte [esp + 0xf0], 2
fstp qword [esp + 0xb8]
call fcn.004b71f0
lea ecx, [esp + 0x48]
fstp st(0)
call fcn.004b6ca0
lea ecx, [esp + 0x68]
mov byte [esp + 0xf0], 3
call fcn.004b6ca0
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0xa8]
push ecx
push edx
mov ecx, ebx
mov byte [esp + 0xf8], 4
call fcn.00564140
cmp eax, 2
jne 0x56461a
fld qword [edi + 0x18]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x5646b6
fld qword [esp + 0x38]
fadd qword [edi + 0x18]
fcom qword [esi + 0x10]
fnstsw ax
test ah, 0x41
jne 0x564618
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 4], eax
fstp qword [esi + 0x10]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], 1
mov dword [esi], 0x1e
jmp 0x56461a
fstp st(0)
lea ecx, [esp + 0x68]
mov byte [esp + 0xf0], 6
call fcn.0042bd50
lea ecx, [esp + 0x48]
mov byte [esp + 0xf0], 2
call fcn.0042bd50
lea ecx, [esp + 0xa8]
mov byte [esp + 0xf0], 1
call fcn.0042bd50
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x70]
inc eax
add edx, 0x60
cmp eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
jl 0x564515
mov esi, dword [esi + 0x18]
lea ecx, [esp + 0xc8]
mov byte [esp + 0xf0], 0
call fcn.0042bd50
lea ecx, [esp + 0x88]
mov dword [esp + 0xf0], 0xffffffff
call fcn.0042bd50
mov eax, esi
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 4], eax
fld qword [esp + 0x38]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], 2
mov dword [esi], 0x1e
fadd qword [edi + 0x18]
fstp qword [esi + 0x10]
lea ecx, [esp + 0x68]
mov byte [esp + 0xf0], 5
call fcn.0042bd50
lea ecx, [esp + 0x48]
mov byte [esp + 0xf0], 2
call fcn.0042bd50
lea ecx, [esp + 0xa8]
mov byte [esp + 0xf0], 1
call fcn.0042bd50
lea ecx, [esp + 0xc8]
mov byte [esp + 0xf0], 0
call fcn.0042bd50
lea ecx, [esp + 0x88]
mov dword [esp + 0xf0], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
mov eax, 2
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4