Function at 0x5cfc70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x280
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x501960
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea esi, [ebp - 0xfc]
mov dword [esi + 0x60], edx
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x50], xmm0
movdqu xmmword [esi + 0x40], xmm0
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x28c]
push 0xc8
push 0xff
mov dword [ebp - 0x3c], eax
push eax
call fcn.00582870
sub esp, 8
movsd xmm0, qword [ebp + 0x1c]
movsd qword [esp + 0xc], xmm0
mov dword [esp], esi
mov dword [esp + 8], str._.0Lf
mov dword [esp + 4], 0x64
call fcn.0056fa80
add esp, 0x14
cmp eax, 0x64
jb 0x5cfd82
mov dword [ebp - 0x20], esp
push eax
sub esp, 0x18
mov esi, esp
lea ecx, [esi + 4]
call fcn.005c4150
lea eax, [ebp - 0x30]
mov dword [esi], eax
mov dword [esi + 0x10], str._.0Lf
movsd xmm0, qword [ebp + 0x1c]
movsd qword [esi + 0x14], xmm0
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x10], eax
call fcn.005d5a60
add esp, 0x1c
mov edi, eax
mov esp, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5d0090
mov esi, dword [ebp - 0x30]
lea eax, [edi + edi]
push eax
call fcn.0057b800
add esp, 4
test eax, eax
je 0x5d007f
mov dword [ebp - 0x3c], eax
jmp 0x5cfd88
mov dword [ebp - 0x20], 0
jmp 0x5cfe12
mov edi, eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], esi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x2c], eax
cmp eax, 0x64ed70
jne 0x5d009d
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x2c]
push 0x64ee20
call fcn.00546250
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
lea ebx, [edi + edx]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov esi, dword [eax + 0x28]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [0x6445dc]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x3c]
push ebx
push edi
call esi
mov eax, dword [ebp - 0x24]
xor ecx, ecx
test eax, eax
jle 0x5cfd76
mov edx, dword [ebp - 0x30]
cmp byte [edx], 0x2d
sete al
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x74]
xor edx, edx
dec edx
mov dword [esi], edx
lea edi, [ebp - 0x98]
mov dword [edi + 8], ecx
lea esi, [ebp - 0x60]
mov dword [esi + 8], ecx
lea eax, [ebp - 0x54]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x28]
mov word [ecx], dx
lea ecx, [ebp - 0x26]
mov word [ecx], dx
xorps xmm0, xmm0
movsd qword [edi], xmm0
movsd qword [esi], xmm0
movsd qword [eax], xmm0
lea ebx, [ebp - 0x8c]
mov dword [ebx], edx
mov dword [ebp - 0x10], 2
movzx ecx, byte [ebp + 0x10]
movzx edx, byte [ebp - 0x20]
mov dword [ebp - 0x84], edx
push ebx
push eax
push esi
push edi
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.005d0190
add esp, 0x20
lea ebx, [ebp - 0x1c4]
push 0xc8
push 0xff
push ebx
call fcn.00582870
add esp, 0xc
mov edi, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x24]
mov eax, esi
sub eax, edi
jg 0x5cfecf
movsx ecx, byte [ebp - 0x49]
mov eax, ecx
mov dword [ebp - 0x64], ecx
test ecx, ecx
jns 0x5cfebb
mov eax, dword [ebp - 0x50]
movsx ecx, byte [ebp - 0x55]
test ecx, ecx
jns 0x5cfec6
mov ecx, dword [ebp - 0x5c]
add eax, edi
add eax, ecx
add eax, 2
jmp 0x5cfef2
movsx edx, byte [ebp - 0x49]
mov ecx, edx
mov dword [ebp - 0x64], edx
test edx, edx
jns 0x5cfedf
mov ecx, dword [ebp - 0x50]
movsx edx, byte [ebp - 0x55]
test edx, edx
jns 0x5cfeea
mov edx, dword [ebp - 0x5c]
lea eax, [edi + eax*2]
add eax, ecx
add eax, edx
inc eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x20], 0
cmp eax, 0x65
jb 0x5cff19
add eax, eax
push eax
call fcn.0057b800
add esp, 4
mov ebx, eax
mov dword [ebp - 0x20], eax
test eax, eax
je 0x5d006a
mov dword [ebp - 0x78], ebx
lea edx, [ebp - 0x88]
xor eax, eax
dec eax
mov dword [edx], eax
lea ecx, [ebp - 0x70]
mov dword [ecx], eax
movzx eax, word [ebp - 0x26]
mov edi, dword [ebp - 0x3c]
lea ecx, [edi + esi*2]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x10], 3
movzx esi, word [ebp - 0x28]
mov ecx, ebx
push dword [ebp - 0x80]
lea ebx, [ebp - 0x54]
push ebx
lea ebx, [ebp - 0x60]
push ebx
lea ebx, [ebp - 0x98]
push ebx
push eax
push esi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x84]
push dword [ebp - 0x40]
push dword [ebp - 0x7c]
push edi
push dword [ebp - 0x24]
lea eax, [ebp - 0x70]
push eax
call fcn.005d02f0
add esp, 0x34
movzx eax, word [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x44], edi
movzx eax, ax
push eax
push dword [ebp + 0x14]
push edx
push esi
push dword [ebp - 0x78]
push ecx
push dword [ebp + 8]
call fcn.005c8c00
add esp, 0x1c
cmp dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x64]
je 0x5cffce
push dword [ebp - 0x20]
call fcn.0055ee50
add esp, 4
mov al, byte [ebp - 0x49]
test al, al
jns 0x5cffdd
push dword [ebp - 0x54]
call fcn.0057dc2b
add esp, 4
cmp byte [ebp - 0x55], 0
jns 0x5cffee
push dword [ebp - 0x60]
call fcn.0057dc2b
add esp, 4
cmp byte [ebp - 0x8d], 0
jns 0x5d0005
push dword [ebp - 0x98]
call fcn.0057dc2b
add esp, 4
mov esi, dword [ebp - 0x2c]
cmp esi, 0x64ed70
je 0x5d0034
xor eax, eax
dec eax
lock xadd dword [esi + 4], eax
test eax, eax
jne 0x5d0034
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x6445dc]
mov ecx, esi
call edi
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x5d0044
push eax
call fcn.0055ee50
add esp, 4
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x5d0054
push eax
call fcn.0055ee50
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x10], 3
call fcn.005d4d60
jmp 0x5d00ad
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], esi
call fcn.005d4d60
jmp 0x5d00ad
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
call fcn.005d4d60
lock inc dword [eax + 4]
mov dword [ebp - 0x10], 1
jmp 0x5cfda5
nop dword [eax]
push ebp
sub esp, 0x34
add ebp, 0xc
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x5d00c7
push eax
call fcn.0055ee50
add esp, 4
add esp, 0x34
pop ebp
ret