Function at 0x594770
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6688ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
sub esp, 8
xor edx, edx
mov eax, dword [esi + 0x18]
mov cl, byte [esi + 0x19]
shr eax, 0x10
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x20], eax
mov dl, byte [esi + 0x18]
fild dword [esp + 0x20]
mov dword [esp + 0x20], ecx
sub esp, 8
sub esp, 8
lea eax, [esp + 0x28]
fmul dword [0x6821a0]
mov byte [esp + 0x40], 4
fstp qword [esp + 0x10]
fild dword [esp + 0x30]
mov dword [esp + 0x30], edx
fmul dword [0x6821a0]
fstp qword [esp + 8]
fild dword [esp + 0x30]
fmul dword [0x6821a0]
fstp qword [esp]
push 0x72fbbc
push eax
call fcn.0049a7c0
mov ecx, dword [esi + 0x14]
xor edx, edx
shr ecx, 0x10
and ecx, 0xff
mov dl, byte [esi + 0x15]
mov dword [esp + 0x38], ecx
add esp, 0x18
fild dword [esp + 0x20]
and edx, 0xff
sub esp, 8
mov dword [esp + 0x28], edx
xor eax, eax
fmul dword [0x6821a0]
mov al, byte [esi + 0x14]
sub esp, 8
lea ecx, [esp + 0x2c]
fstp qword [esp + 0x10]
fild dword [esp + 0x30]
mov dword [esp + 0x30], eax
fmul dword [0x6821a0]
fstp qword [esp + 8]
fild dword [esp + 0x30]
fmul dword [0x6821a0]
fstp qword [esp]
push 0x72fbd0
push ecx
call fcn.0049a7c0
lea edx, [esp + 0x34]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0042a6c0
add esp, 0x2c
mov byte [esp + 0x28], 5
push eax
lea ecx, [esp + 0xc]
call fcn.00499cd0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call fcn.00499a60
fld dword [esi + 0x10]
sub esp, 8
lea edx, [esp + 0x14]
fstp qword [esp]
push 0x72fca4
push edx
call fcn.0049a7c0
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
call fcn.00499d70
cmp dword [esi + 0x1c], 0x3f800000
je 0x59491f
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x5948f9
add eax, 0xc
jmp 0x5948fe
mov eax, 0x7427d8
push eax
lea ecx, [esp + 0x10]
push 0x72fb98
push ecx
call fcn.0049a7c0
add esp, 0xc
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.00499d70
push 0x731b08
lea ecx, [esp + 0xc]
call fcn.00499d20
mov eax, dword [esi + 0x14]
xor ecx, ecx
shr eax, 0x10
and eax, 0xff
mov cl, byte [esi + 0x15]
mov dword [esp + 0x18], eax
sub esp, 8
fild dword [esp + 0x20]
and ecx, 0xff
sub esp, 8
mov dword [esp + 0x28], ecx
xor edx, edx
fmul dword [0x6821a0]
mov dl, byte [esi + 0x14]
sub esp, 8
lea eax, [esp + 0x28]
fstp qword [esp + 0x10]
fild dword [esp + 0x30]
mov dword [esp + 0x30], edx
fmul dword [0x6821a0]
fstp qword [esp + 8]
fild dword [esp + 0x30]
fmul dword [0x6821a0]
fstp qword [esp]
push 0x72fbbc
push eax
call fcn.0049a7c0
add esp, 0x20
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call fcn.00499d70
push 0x731748
lea ecx, [esp + 0xc]
call fcn.00499d20
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea edx, [esi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0xc]
mov esi, dword [ebp + 8]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00499b80
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.00499a60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00499a60
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00499a60
lea ecx, [esp + 8]
mov byte [esp + 0x28], bl
call fcn.00499a60
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret