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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4fce
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6510e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push 8
call fcn.00581343
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00581343
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [ebx], esi
lea esi, [ebx + 4]
mov dword [ebp - 4], 1
push 0x102
push esi
mov dword [ebp - 0x18], esi
call fcn.0056d26f
add esi, 0x30
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], esi
push 0xc
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00581343
add esp, 0x14
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.004a4ac0
mov byte [ebp - 4], 5
add ebx, 0x54
push 0x60
mov dword [ebp - 0x18], ebx
call fcn.00581343
mov dword [ebp - 0x10], eax
push 0x10
mov byte [ebp - 4], 6
call fcn.00581343
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 7
lea esi, [edi + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 0x1c], esi
push 0x34
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00581343
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
mov byte [ebp - 4], 8
lea edi, [eax + 4]
push 0x28
mov dword [ebp - 0x1c], edi
call fcn.00581343
add esp, 0x10
mov dword [edi + 0x1c], eax
xor eax, eax
lea ecx, [edi + 8]
mov byte [eax + edi], 0
lea ecx, [ecx + 4]
inc eax
mov dword [ecx - 4], 0xffffffff
cmp eax, 5
jb 0x520ac7
mov byte [ebp - 4], 9
lea esi, [edi + 0x20]
mov dword [ebp - 0x18], esi
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00581343
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
mov dword [ebx], eax
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 4], 0
mov byte [ebx + 9], 1
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov byte [ebx + 0x20], 0
mov byte [ebp - 4], 0xa
mov ebx, dword [ebp - 0x14]
lea esi, [ebx + 0x78]
mov dword [ebp - 0x1c], esi
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00581343
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, ebx
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov byte [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov byte [ebx + 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret