Function at 0x516ea4
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x516eac
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004052cc
xor eax, eax
push ebp
push 0x517373
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00406d18
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x516f16
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.004057c4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, 0x10
call fcn.004b42d8
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x516f25
cmp dword [ebp - 0x10], 0
je 0x51733d
xor eax, eax
push ebp
push 0x517336
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea edx, [ebp - 0x28]
mov eax, 0x517390
call fcn.004099c0
lea edx, [ebp - 0x28]
mov ecx, 0x10
mov eax, dword [ebp - 0x10]
call fcn.004b3e3c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x517317
xor eax, eax
push ebp
push 0x517310
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 8]
call fcn.00406d30
mov edx, dword [0x513a30]
mov eax, 0x90
call fcn.0040601c
mov ebx, eax
lea ecx, [ebp - 0x2c]
mov edx, 0x5173c0
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00404e84
lea ecx, [ebp - 0x30]
mov edx, 0x5173d0
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 4]
call fcn.00404e84
lea ecx, [ebp - 0x34]
mov edx, 0x5173e4
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 8]
call fcn.00404e84
lea ecx, [ebp - 0x38]
mov edx, 0x5173f8
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x38]
lea eax, [ebx + 0xc]
call fcn.00404e84
lea ecx, [ebp - 0x3c]
mov edx, 0x51740c
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x10]
call fcn.00404e84
lea ecx, [ebp - 0x40]
mov edx, 0x517424
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x40]
lea eax, [ebx + 0x14]
call fcn.00404e84
mov edx, 0x517438
mov eax, dword [ebp - 8]
call fcn.004b2ef0
mov byte [ebx + 0x70], al
lea ecx, [ebp - 0x44]
mov edx, 0x51744c
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x18]
call fcn.00404e84
lea ecx, [ebp - 0x48]
mov edx, 0x51745c
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x1c]
call fcn.00404e84
lea ecx, [ebp - 0x4c]
mov edx, 0x517474
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x4c]
lea eax, [ebx + 0x20]
call fcn.00404e84
mov edx, 0x517488
mov eax, dword [ebp - 8]
call fcn.004b2ef0
mov dword [ebx + 0x24], eax
mov edx, 0x51749c
mov eax, dword [ebp - 8]
call fcn.004b2ef0
mov dword [ebx + 0x28], eax
mov edx, 0x5174b4
mov eax, dword [ebp - 8]
call fcn.004b2ef0
mov dword [ebx + 0x2c], eax
lea ecx, [ebp - 0x50]
mov edx, 0x5174cc
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x50]
lea eax, [ebx + 0x30]
call fcn.00404e84
lea ecx, [ebp - 0x54]
mov edx, 0x5174e0
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x54]
lea eax, [ebx + 0x34]
call fcn.00404e84
lea ecx, [ebp - 0x58]
mov edx, 0x5174f8
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x58]
lea eax, [ebx + 0x3c]
call fcn.00404e84
lea ecx, [ebp - 0x5c]
mov edx, 0x51750c
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x5c]
lea eax, [ebx + 0x40]
call fcn.00404e84
lea ecx, [ebp - 0x60]
mov edx, 0x51751c
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x60]
lea eax, [ebx + 0x44]
call fcn.00404e84
lea ecx, [ebp - 0x64]
mov edx, 0x517530
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x64]
lea eax, [ebx + 0x48]
call fcn.00404e84
lea ecx, [ebp - 0x68]
mov edx, 0x517548
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x68]
lea eax, [ebx + 0x4c]
call fcn.00404e84
lea ecx, [ebp - 0x6c]
mov edx, 0x517560
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x6c]
lea eax, [ebx + 0x50]
call fcn.00404e84
lea ecx, [ebp - 0x70]
mov edx, 0x517570
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x70]
lea eax, [ebx + 0x54]
call fcn.00404e84
lea ecx, [ebp - 0x74]
mov edx, 0x517580
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x74]
lea eax, [ebx + 0x58]
call fcn.00404e84
lea ecx, [ebp - 0x78]
mov edx, 0x517594
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x78]
lea eax, [ebx + 0x5c]
call fcn.00404e84
mov edx, 0x5175ac
mov eax, dword [ebp - 8]
call fcn.004b2ef0
mov dword [ebx + 0x60], eax
lea ecx, [ebp - 0x7c]
mov edx, 0x5175c0
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x7c]
lea eax, [ebx + 0x64]
call fcn.00404e84
lea ecx, [ebp - 0x80]
mov edx, 0x5175d0
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x80]
lea eax, [ebx + 0x68]
call fcn.00404e84
lea ecx, [ebp - 0x84]
mov edx, 0x5175e8
mov eax, dword [ebp - 8]
call fcn.004b2d10
mov edx, dword [ebp - 0x84]
lea eax, [ebx + 0x6c]
call fcn.00404e84
mov edx, 0x517604
mov eax, dword [ebp - 8]
call fcn.004b2ef0
mov dword [ebx + 0x74], eax
mov edx, 0x517618
mov eax, dword [ebp - 8]
call fcn.004b2ef0
mov dword [ebx + 0x78], eax
mov edx, 0x51762c
mov eax, dword [ebp - 8]
call fcn.004b2ef0
mov dword [ebx + 0x7c], eax
mov edx, 0x517640
mov eax, dword [ebp - 8]
call fcn.004b2ef0
mov dword [ebx + 0x80], eax
xor ecx, ecx
mov edx, 0x517654
mov eax, dword [ebp - 8]
call fcn.004b2fec
fstp qword [ebx + 0x88]
wait
lea edx, [ebp - 0x88]
mov eax, dword [ebx + 4]
call fcn.00409ec8
cmp dword [ebp - 0x88], 0
je 0x5172e3
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xec]
mov ecx, ebx
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x5172f0
mov edx, dword [0x513a30]
mov eax, ebx
call fcn.00406030
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517317
cmp dword [ebp - 0x14], 0
je 0x51730f
mov eax, dword [ebp - 0x14]
call fcn.00403ef0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51733d
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x517335
mov eax, dword [ebp - 0x10]
call fcn.00403ef0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51737a
lea eax, [ebp - 0x88]
mov edx, 0x18
call fcn.00404e54
lea eax, [ebp - 0x18]
call fcn.0040562c
lea eax, [ebp - 8]
call fcn.00406d18
lea eax, [ebp - 4]
call fcn.00404e30
ret