Function at 0x405660
Capabilities:
Create directory
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x433ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x4431d0]
push ebx
push ebp
mov dword [esp + 0x68], eax
push esi
xor esi, esi
mov ebp, 7
push 0x4356f0
mov dword [esp + 0x7c], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], esi
mov word [esp + 0x20], si
call fcn.00413a0a
add esp, 4
push eax
push 0x4356f0
lea ecx, [esp + 0x20]
call fcn.00404060
mov ebx, dword [esp + 0x80]
add ebx, 0xfffffff0
push ebx
mov byte [esp + 0x7c], 1
call fcn.00401e30
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
cmp dword [eax - 0xc], esi
mov byte [esp + 0x78], 2
jne 0x405747
add eax, 0xfffffff0
mov byte [esp + 0x78], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x30], 8
jb 0x405714
mov eax, dword [esp + 0x1c]
push eax
call fcn.00427262
add esp, 4
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
mov dword [esp + 0x78], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405740
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
xor al, al
jmp 0x405a36
push edi
push 0x5c
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.00403800
mov ecx, eax
call fcn.00402840
push 0x435710
call fcn.00413a0a
add esp, 4
push eax
push 0x435710
lea ecx, [esp + 0x1c]
call fcn.00402e10
mov eax, dword [esp + 0x14]
push eax
mov edi, eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], esi
mov word [esp + 0x40], si
call fcn.00413a0a
add esp, 4
push eax
push edi
lea ecx, [esp + 0x40]
call fcn.00404060
push 1
push esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 3
mov dword [esp + 0x1c], 0x5c
call fcn.00401ba0
push 1
push esi
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x44]
mov edi, eax
mov dword [esp + 0x1c], 0x3a
call fcn.00401ba0
dec edi
cmp edi, eax
je 0x405874
mov eax, dword [esp + 0x50]
mov edi, 8
cmp eax, edi
jb 0x4057fe
mov eax, dword [esp + 0x3c]
push eax
call fcn.00427262
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], si
mov byte [esp + 0x7c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40582e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x34], edi
jb 0x405841
mov eax, dword [esp + 0x20]
push eax
call fcn.00427262
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], esi
mov word [esp + 0x20], si
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40586d
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
xor al, al
jmp 0x405a35
mov eax, 0x5c
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
push 1
inc edi
push edi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x44]
call fcn.00401ba0
mov edi, eax
push edi
push esi
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x44]
call fcn.00404830
cmp edi, 0xffffffff
mov byte [esp + 0x7c], 4
jne 0x4058c1
push edi
push esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x60]
call fcn.00403b90
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x60]
call fcn.00401c80
mov ecx, dword [esp + 0x68]
inc eax
cmp ecx, eax
je 0x4058e9
push 0x5c
push 1
lea ecx, [esp + 0x5c]
call fcn.00403ac0
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x4058f8
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x405939
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x405912
lea eax, [esp + 0x58]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405a51
cmp dword [esp + 0x30], esi
jne 0x405939
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x28]
call fcn.00403b90
cmp dword [esp + 0x6c], 8
mov byte [esp + 0x7c], 3
jb 0x405952
mov eax, dword [esp + 0x58]
push eax
call fcn.00427262
add esp, 4
cmp edi, 0xffffffff
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], esi
mov word [esp + 0x58], si
jne 0x405883
cmp dword [esp + 0x88], 1
jne 0x4059af
cmp dword [esp + 0x30], esi
je 0x4059af
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x405987
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.004053d0
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x80], 5
call fcn.00404590
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00401b80
cmp dword [esp + 0x50], 8
jb 0x4059c3
mov edx, dword [esp + 0x3c]
push edx
call fcn.00427262
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], si
mov byte [esp + 0x7c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x34], 8
jb 0x405a07
mov eax, dword [esp + 0x20]
push eax
call fcn.00427262
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], esi
mov word [esp + 0x20], si
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a33
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov al, 1
pop edi
mov ecx, dword [esp + 0x70]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x64]
pop ebx
call fcn.0041395e
add esp, 0x70
ret
mov eax, dword [esp + 0x6c]
mov edi, 8
cmp eax, edi
jb 0x405a6b
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00427262
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], esi
mov word [esp + 0x58], si
jb 0x4057fe
mov edx, dword [esp + 0x3c]
push edx
jmp 0x4057f6