Function at 0x412cc0
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

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
xor edx, edx
lea eax, [esi + 0x1d0]
movsd xmm1, qword [ebp + 0x1c]
pcmpeqd xmm0, xmm0
dec edx
mov dword [eax - 4], esp
mov dword [eax + 8], edx
mov dword [eax + 4], 0x41d2d0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [esi + 0x160]
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
mov dword [eax + 0x60], edx
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 + 0x18], eax
sub esp, 0x14
mov edi, 0x64
movsd qword [esp + 0xc], xmm1
mov dword [esp], eax
mov dword [esp + 8], str._.0Lf
mov dword [esp + 4], edi
call fcn.00405010
add esp, 0x14
cmp eax, edi
jb 0x412e09
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1d8], eax
lea eax, [esi + 0x78]
push eax
call fcn.00409590
add esp, 4
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
xor edx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
sub esp, 0x18
movq xmm0, qword [ebp + 0x1c]
mov dword [esp + 4], eax
lea eax, [esi + 0x18]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], str._.0Lf
mov dword [esp], eax
movq qword [esp + 0x10], xmm0
call fcn.0041fac7
add esp, 0x18
mov dword [esi], eax
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4130f4
push dword [esi]
call fcn.0051abd0
add esp, 4
test eax, eax
je 0x413101
mov dword [esi + 0x20], eax
mov ecx, eax
mov edx, eax
jmp 0x412e18
lea ecx, [esi + 0xf0]
xor edx, edx
xor edi, edi
mov dword [esi], eax
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x14]
lea eax, [esi + 0x14]
mov dword [esi + 0x48], edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x4c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x1d8], 0
mov dword [eax], 0xffffffff
push eax
call fcn.004066aa
mov dword [esi + 0x1d8], 1
lea ecx, [esi + 0x14]
push 0x586260
call fcn.0040a130
mov edx, dword [esi]
mov dword [esi], edx
mov ecx, eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi]
mov edi, dword [ecx]
lea edx, [eax + edx]
push dword [esi + 0x20]
push edx
push eax
mov dword [esi + 0x74], ecx
call dword [edi + 0x18]
mov eax, dword [esi]
xor ecx, ecx
test eax, eax
je 0x412e88
mov edx, dword [esi + 0x18]
cmp byte [edx], 0x2d
sete al
mov dword [esi + 8], eax
jmp 0x412e8f
mov dword [esi + 8], 0
lea ebx, [esi + 0x60]
lea edi, [esi + 0x38]
lea edx, [esi + 0x28]
lea eax, [esi + 7]
mov dword [esi + 0x1d8], 2
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
mov dword [edx], ecx
mov dword [edx + 8], ecx
mov cl, 0xff
mov byte [eax], cl
lea eax, [esi + 6]
mov byte [eax], cl
lea eax, [esi + 0x5c]
mov ecx, 0xffffffff
mov dword [eax], ecx
lea eax, [esi + 0x58]
mov dword [eax], ecx
movzx ecx, byte [ebp + 0x10]
movzx eax, byte [esi + 8]
mov dword [esi + 8], ecx
lea ecx, [esi + 0x58]
push ecx
push edx
push edi
push ebx
lea edx, [esi + 6]
push edx
lea edx, [esi + 7]
push edx
lea edx, [esi + 0x5c]
push edx
lea edx, [esi + 0x14]
push edx
mov dword [esi + 0x70], eax
push eax
push dword [esi + 8]
call fcn.0041b4a0
add esp, 0x28
mov edi, dword [esi]
mov eax, dword [esi + 0x58]
pcmpeqd xmm0, xmm0
mov dword [esi + 0xe0], 0xffffffff
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 edx, edi
mov dword [esi + 8], eax
sub edx, eax
jle 0x412f61
movzx eax, byte [esi + 0x28]
mov bl, 1
test al, bl
je 0x412f73
mov eax, dword [esi + 0x2c]
jmp 0x412f75
movzx eax, byte [esi + 0x28]
mov ebx, dword [ebp + 0x14]
mov dl, 1
test al, dl
je 0x412f82
mov eax, dword [esi + 0x2c]
jmp 0x412f84
shr eax, 1
movzx ecx, byte [esi + 0x38]
test cl, bl
je 0x412f91
mov ecx, dword [esi + 0x3c]
jmp 0x412f93
shr eax, 1
movzx ecx, byte [esi + 0x38]
test cl, dl
je 0x412fa1
mov ecx, dword [esi + 0x3c]
jmp 0x412fa3
shr ecx, 1
mov ebx, dword [esi + 8]
mov edi, dword [esi]
lea edx, [ebx + edx*2 + 1]
mov ebx, dword [ebp + 0x14]
jmp 0x412fa9
shr ecx, 1
mov edx, dword [esi + 8]
add edx, 2
add eax, edx
add eax, ecx
cmp eax, 0x65
jb 0x412fc9
push eax
call fcn.0051abd0
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x41310c
mov eax, dword [esi]
jmp 0x412fd5
lea eax, [esi + 0x80]
mov dword [esi], 0
mov dword [esi + 0x1c], eax
xor edx, edx
lea eax, [esi + 0x54]
dec edx
mov dword [eax], edx
lea eax, [esi + 0x50]
mov dword [eax], edx
mov eax, dword [esi + 0x20]
movsx edx, byte [esi + 6]
add edi, eax
mov ecx, edi
mov edi, dword [ebx + 4]
mov dword [esi + 0x1d8], 3
mov dword [esi + 0x6c], edi
mov edi, dword [esi]
mov dword [esi + 0x24], edi
movsx edi, byte [esi + 7]
push dword [esi + 8]
lea ebx, [esi + 0x28]
push ebx
lea ebx, [esi + 0x38]
push ebx
lea ebx, [esi + 0x60]
push ebx
push edx
push edi
lea edx, [esi + 0x5c]
push edx
push dword [esi + 0x70]
push dword [esi + 0x74]
push ecx
push eax
push dword [esi + 0x6c]
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x54]
push eax
push dword [esi + 0x1c]
call fcn.0041b608
add esp, 0x3c
mov edi, dword [esi]
mov al, byte [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x50]
mov dword [esi + 0x24], edi
mov edi, dword [esi + 0x54]
movsx eax, al
push eax
push dword [ebp + 0x14]
push edx
push edi
push dword [esi + 0x1c]
push ecx
push dword [ebp + 8]
call fcn.00401cb0
add esp, 0x1c
cmp dword [esi], 0
je 0x413074
push dword [esi]
call fcn.0051a200
add esp, 4
test byte [esi + 0x28], 1
mov edi, dword [esi + 0x4c]
je 0x413088
push dword [esi + 0x30]
call fcn.005031ac
add esp, 4
test byte [esi + 0x38], 1
je 0x413099
push dword [esi + 0x40]
call fcn.005031ac
add esp, 4
test byte [esi + 0x60], 1
je 0x4130aa
push dword [esi + 0x68]
call fcn.005031ac
add esp, 4
mov ecx, dword [esi + 0x14]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x4130be
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4130ce
push eax
call fcn.0051a200
add esp, 4
test edi, edi
je 0x4130db
push edi
call fcn.0051a200
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
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call fcn.0041d6cc
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
call fcn.0041d6cc
mov eax, dword [esi]
mov dword [esi + 0x1d8], 3
mov dword [esi + 0x24], eax
call fcn.0041d6cc
push ebp
sub esp, 0x3c
lea esi, [ebp - 0x1dc]
mov ebp, dword [esi + 0x1c8]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x413140
push eax
call fcn.0051a200
add esp, 4
add esp, 0x3c
pop ebp
ret