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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1e0
mov esi, esp
mov dword [esi + 0x1c8], ebp
movsd xmm1, qword [ebp + 0x1c]
lea eax, [esi + 0x1d0]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x457d90
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [esi + 0x160]
mov dword [eax + 0x60], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [eax + 0x50], xmm0
movdqa xmmword [eax + 0x40], xmm0
movdqa xmmword [eax + 0x30], xmm0
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
mov dword [esi + 0x20], eax
mov dword [esi + 0x150], edx
movdqa xmmword [esi + 0x140], xmm0
movdqa xmmword [esi + 0x130], xmm0
movdqa xmmword [esi + 0x120], xmm0
movdqa xmmword [esi + 0x110], xmm0
movdqa xmmword [esi + 0x100], xmm0
movdqa xmmword [esi + 0xf0], 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.004bfe70
add esp, 0x14
mov dword [esi + 0x10], eax
cmp eax, 0x64
jb 0x513732
mov eax, dword [0x5c5dd0]
mov ecx, dword [0x5c7534]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x513a4c
mov eax, dword [0x5c5dc8]
mov ecx, dword [0x5c5dcc]
xor edx, edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1d8], edx
sub esp, 0x18
movq xmm0, qword [ebp + 0x1c]
movq qword [esp + 0x10], xmm0
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
lea eax, [esi + 0x20]
mov dword [esp], eax
mov dword [esp + 0xc], str._.0Lf
call fcn.0050b680
add esp, 0x18
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x513a9a
mov edi, eax
push dword [esi + 0x10]
call fcn.004b8610
add esp, 4
test eax, eax
je 0x513aa7
mov dword [esi + 0x28], eax
jmp 0x51373f
lea eax, [esi + 0xf0]
mov dword [esi + 0x28], eax
xor eax, eax
xor edi, edi
mov ecx, dword [ebp + 0x14]
lea edx, [esi + 0x1c]
mov dword [edx], 0xffffffff
mov dword [esi + 0x50], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1d8], 0
push edx
call fcn.004b8140
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x80], 0x5c5df8
mov dword [esi + 0x84], 0x40ad00
mov eax, dword [0x5c5df8]
cmp eax, 0xffffffff
jne 0x513ac5
mov eax, dword [0x5c5dfc]
lea edx, [eax - 1]
mov ecx, dword [edi + 8]
mov edi, dword [edi + 0xc]
sub edi, ecx
sar edi, 2
cmp edi, edx
jbe 0x513ab6
mov ecx, dword [ecx + eax*4 - 4]
mov dword [esi + 0x1d8], 2
test ecx, ecx
je 0x513ab6
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x10]
add edx, eax
mov edi, dword [ecx]
mov dword [esi + 0x7c], ecx
push dword [esi + 0x28]
push edx
push eax
call dword [edi + 0x18]
xor ecx, ecx
cmp dword [esi + 0x10], 0
je 0x513a40
mov edx, dword [esi + 0x20]
cmp byte [edx], 0x2d
sete al
mov dword [esi + 8], eax
lea ebx, [esi + 0x68]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
lea edi, [esi + 0x30]
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov dword [edi + 8], ecx
lea edx, [esi + 0x40]
mov dword [edx + 4], ecx
mov dword [edx], ecx
mov dword [edx + 8], ecx
mov cl, 0xff
lea eax, [esi + 0xf]
mov byte [eax], cl
lea eax, [esi + 0xe]
mov byte [eax], cl
lea eax, [esi + 0x64]
xor ecx, ecx
dec ecx
mov dword [eax], ecx
lea eax, [esi + 0x60]
mov dword [eax], ecx
mov dword [esi + 0x1d8], 3
movzx eax, byte [esi + 8]
movzx ecx, byte [ebp + 0x10]
mov dword [esi + 8], ecx
lea ecx, [esi + 0x60]
push ecx
push edx
push edi
push ebx
lea edx, [esi + 0xe]
push edx
lea edx, [esi + 0xf]
push edx
lea edx, [esi + 0x64]
push edx
lea edx, [esi + 0x1c]
push edx
mov dword [esi + 0x78], eax
push eax
push dword [esi + 8]
call fcn.0043bdc0
add esp, 0x28
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0xd0], xmm0
movdqa xmmword [esi + 0xc0], xmm0
movdqa xmmword [esi + 0xb0], xmm0
movdqa xmmword [esi + 0xa0], xmm0
movdqa xmmword [esi + 0x90], xmm0
movdqa xmmword [esi + 0x80], xmm0
mov dword [esi + 0xe0], 0xffffffff
mov ebx, dword [esi + 0x60]
mov edx, dword [esi + 0x10]
sub edx, ebx
jle 0x5138c3
movzx eax, byte [esi + 0x4b]
test al, al
jns 0x5138b2
mov eax, dword [esi + 0x44]
movzx ecx, byte [esi + 0x3b]
test cl, cl
jns 0x5138bd
mov ecx, dword [esi + 0x34]
lea edx, [ebx + edx*2]
inc edx
jmp 0x5138dc
movzx eax, byte [esi + 0x4b]
test al, al
jns 0x5138ce
mov eax, dword [esi + 0x44]
movzx ecx, byte [esi + 0x3b]
test cl, cl
jns 0x5138d9
mov ecx, dword [esi + 0x34]
lea edx, [ebx + 2]
add eax, edx
add eax, ecx
cmp eax, 0x65
jb 0x51390e
push eax
call fcn.004b8610
add esp, 4
mov dword [esi + 0x24], eax
mov dword [esi + 8], eax
test eax, eax
jne 0x51391e
mov dword [esi + 0x2c], 0
mov dword [esi + 0x1d8], 4
call fcn.00503840
lea eax, [esi + 0x80]
mov dword [esi + 0x24], eax
mov dword [esi + 8], 0
lea ecx, [esi + 0x5c]
xor eax, eax
dec eax
mov dword [ecx], eax
lea ecx, [esi + 0x58]
mov dword [ecx], eax
movsx edx, byte [esi + 0xe]
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 0x28]
add edi, ecx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x1d8], 4
movsx eax, byte [esi + 0xf]
push ebx
lea ebx, [esi + 0x40]
push ebx
lea ebx, [esi + 0x30]
push ebx
lea ebx, [esi + 0x68]
push ebx
push edx
push eax
lea eax, [esi + 0x64]
push eax
push dword [esi + 0x78]
push dword [esi + 0x7c]
push edi
push ecx
push dword [esi + 0x10]
lea eax, [esi + 0x58]
push eax
lea eax, [esi + 0x5c]
push eax
push dword [esi + 0x24]
call fcn.00513c30
add esp, 0x3c
mov al, byte [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x58]
mov edi, dword [esi + 8]
mov dword [esi + 0x2c], edi
mov edi, dword [esi + 0x5c]
movsx eax, al
push eax
push dword [ebp + 0x14]
push edx
push edi
push dword [esi + 0x24]
push ecx
push dword [ebp + 8]
call fcn.004fc2f0
add esp, 0x1c
cmp dword [esi + 8], 0
je 0x5139c0
push dword [esi + 8]
call fcn.004b85f0
add esp, 4
cmp byte [esi + 0x4b], 0
jns 0x5139d1
push dword [esi + 0x40]
call fcn.004cf0d6
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x5139e2
push dword [esi + 0x30]
call fcn.004cf0d6
add esp, 4
cmp byte [esi + 0x73], 0
jns 0x5139f3
push dword [esi + 0x68]
call fcn.004cf0d6
add esp, 4
mov ecx, dword [esi + 0x1c]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x513a07
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x513a17
push eax
call fcn.004b85f0
add esp, 4
mov eax, dword [esi + 0x54]
test eax, eax
je 0x513a27
push eax
call fcn.004b85f0
add esp, 4
mov eax, dword [esi + 0x1d0]
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 [esi + 8], 0
jmp 0x5137ea
push 0x5c5dd0
call fcn.004d02b9
add esp, 4
cmp dword [0x5c5dd0], 0xffffffff
jne 0x5136c5
mov dword [esi + 0x1d8], 1
xor eax, eax
push eax
push eax
push 0x579719
push 0x3f
push 0x5c5dc8
call fcn.004226a0
add esp, 0x14
push 0x5c5dd0
call fcn.004d03d3
add esp, 4
jmp 0x5136c5
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
call fcn.00503840
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], edi
call fcn.00503840
mov dword [esi + 0x1d8], 2
call fcn.00504fd0
mov dword [esi + 8], edi
lea eax, [esi + 0x80]
lea ecx, [esi + 0x68]
mov dword [ecx], eax
lea eax, [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x1d8], 2
push 0x40acf0
push eax
push 0x5c5df8
call fcn.004176f0
add esp, 0xc
mov edi, dword [esi + 8]
jmp 0x51378c