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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b4
movsd xmm1, qword [ebp + 0x1c]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x4ec4e0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x1c0]
mov dword [eax + 0x60], edx
pcmpeqd xmm0, xmm0
movdqu xmmword [eax + 0x50], xmm0
movdqu xmmword [eax + 0x40], xmm0
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xfc], edx
movdqu xmmword [ebp - 0x10c], xmm0
movdqu xmmword [ebp - 0x11c], xmm0
movdqu xmmword [ebp - 0x12c], xmm0
movdqu xmmword [ebp - 0x13c], xmm0
movdqu xmmword [ebp - 0x14c], xmm0
movdqu xmmword [ebp - 0x15c], xmm0
sub esp, 0x14
movsd qword [esp + 0xc], xmm1
mov dword [esp], eax
mov dword [esp + 8], str._.0Lf
mov dword [esp + 4], 0x64
call fcn.005541b0
add esp, 0x14
cmp eax, 0x64
jb 0x5adaa7
mov dword [ebp - 0x28], esp
push eax
sub esp, 0x18
mov esi, esp
lea ecx, [esi + 4]
call fcn.005a2c10
lea eax, [ebp - 0x30]
mov dword [esi], eax
mov dword [esi + 0x10], str._.0Lf
movq xmm0, qword [ebp + 0x1c]
movq qword [esi + 0x14], xmm0
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x10], eax
call fcn.005b4550
add esp, 0x1c
mov edi, eax
mov esp, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5addd0
mov esi, dword [ebp - 0x30]
push edi
call fcn.005631a0
add esp, 4
test eax, eax
je 0x5addbf
mov dword [ebp - 0x40], eax
jmp 0x5adab6
xor edx, edx
jmp 0x5adb3a
mov edi, eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x40], eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], esi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x2c], eax
cmp eax, 0x648d88
jne 0x5adddd
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x2c]
push 0x648e40
call fcn.00532460
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
lea ebx, [edi + edx]
mov ecx, dword [eax]
mov dword [ebp - 0x6c], eax
mov esi, dword [ecx + 0x18]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [0x63e63c]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x6c]
push dword [ebp - 0x40]
push ebx
push edi
call esi
mov eax, dword [ebp - 0x28]
xor ecx, ecx
test eax, eax
jle 0x5adaa0
mov edx, dword [ebp - 0x30]
cmp byte [edx], 0x2d
sete dl
mov bl, 0xff
lea edi, [ebp - 0x94]
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 - 0x1e]
mov byte [ecx], bl
lea ecx, [ebp - 0x1d]
mov byte [ecx], bl
lea ebx, [ebp - 0x74]
xor ecx, ecx
dec ecx
mov dword [ebx], ecx
pxor xmm0, xmm0
movq qword [edi], xmm0
movq qword [esi], xmm0
movq qword [eax], xmm0
lea ebx, [ebp - 0x88]
mov dword [ebx], ecx
mov dword [ebp - 0x10], 2
movzx ecx, byte [ebp + 0x10]
movzx edx, dl
mov dword [ebp - 0x80], edx
push ebx
push eax
push esi
push edi
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.005aded0
add esp, 0x20
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0xa8], xmm0
movdqu xmmword [ebp - 0xb8], xmm0
movdqu xmmword [ebp - 0xc8], xmm0
movdqu xmmword [ebp - 0xd8], xmm0
movdqu xmmword [ebp - 0xe8], xmm0
movdqu xmmword [ebp - 0xf8], xmm0
mov dword [ebp - 0x98], 0xffffffff
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp - 0x28]
mov eax, esi
sub eax, edi
jg 0x5adc14
movsx eax, byte [ebp - 0x49]
test eax, eax
jns 0x5adc00
mov eax, dword [ebp - 0x50]
movsx ecx, byte [ebp - 0x55]
test ecx, ecx
jns 0x5adc0b
mov ecx, dword [ebp - 0x5c]
add eax, edi
add eax, ecx
add eax, 2
jmp 0x5adc32
movsx ecx, byte [ebp - 0x49]
test ecx, ecx
jns 0x5adc1f
mov ecx, dword [ebp - 0x50]
movsx edx, byte [ebp - 0x55]
test edx, edx
jns 0x5adc2a
mov edx, dword [ebp - 0x5c]
lea eax, [edi + eax*2]
add eax, ecx
add eax, edx
inc eax
cmp eax, 0x65
mov dword [ebp - 0x7c], edi
jb 0x5adc55
push eax
call fcn.005631a0
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], eax
test eax, eax
mov ecx, dword [ebp + 0x14]
jne 0x5adc68
jmp 0x5addaa
lea eax, [ebp - 0xf8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x84]
xor eax, eax
dec eax
mov dword [edx], eax
lea edi, [ebp - 0x70]
mov dword [edi], eax
movsx ebx, byte [ebp - 0x1d]
movsx edi, byte [ebp - 0x1e]
mov eax, dword [ebp - 0x40]
add esi, eax
mov dword [ebp - 0x28], esi
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x78], ecx
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x10], 3
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x7c]
lea esi, [ebp - 0x54]
push esi
lea esi, [ebp - 0x60]
push esi
lea esi, [ebp - 0x94]
push esi
push ebx
push edi
lea esi, [ebp - 0x74]
push esi
push dword [ebp - 0x80]
push dword [ebp - 0x6c]
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
call fcn.005ae020
add esp, 0x34
mov ecx, dword [ebp + 8]
mov al, byte [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x44], ebx
movsx eax, al
push eax
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp - 0x3c]
call fcn.005926c0
add esp, 0x14
cmp dword [ebp - 0x24], 0
je 0x5add0c
push dword [ebp - 0x24]
call fcn.005631f0
add esp, 4
cmp byte [ebp - 0x49], 0
jns 0x5add1d
push dword [ebp - 0x54]
call fcn.00564ea0
add esp, 4
cmp byte [ebp - 0x55], 0
jns 0x5add2e
push dword [ebp - 0x60]
call fcn.00564ea0
add esp, 4
cmp byte [ebp - 0x89], 0
jns 0x5add45
push dword [ebp - 0x94]
call fcn.00564ea0
add esp, 4
mov esi, dword [ebp - 0x2c]
cmp esi, 0x648d88
je 0x5add74
xor eax, eax
dec eax
lock xadd dword [esi + 4], eax
test eax, eax
jne 0x5add74
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x63e63c]
mov ecx, esi
call edi
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x5add84
push eax
call fcn.005631f0
add esp, 4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x5add94
push eax
call fcn.005631f0
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.005b3820
jmp 0x5added
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], esi
call fcn.005b3820
jmp 0x5added
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
call fcn.005b3820
lock inc dword [eax + 4]
mov dword [ebp - 0x10], 1
jmp 0x5adad3
nop dword [eax]
push ebp
sub esp, 0x34
add ebp, 0xc
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x5ade07
push eax
call fcn.005631f0
add esp, 4
add esp, 0x34
pop ebp
ret