Function at 0x401ec0
Capabilities:
Get number of processors
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4401ba
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x45410c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
cmp dword [esi + 0x30], eax
je 0x402272
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f22
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402ad0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test edx, edx
je 0x401fab
lea eax, [ebp - 0x28]
cmp ecx, 8
jb 0x401f50
mov eax, dword [ebp - 0x28]
cmp word [eax + edx*2 - 2], 0x5c
je 0x401fab
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x401f8d
lea ebx, [edx + 1]
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x28]
cmp ecx, 8
jb 0x401f72
mov edi, dword [ebp - 0x28]
push 2
lea eax, [edi + edx*2]
push 0x44c590
push eax
call fcn.00426c00
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
jmp 0x401fa5
push 1
push 0x44c590
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 1
call fcn.00402870
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x402028
cmp dword [esi + 0x14], 8
mov ebx, esi
jb 0x401fbc
mov ebx, dword [esi]
mov eax, ecx
sub eax, edx
cmp edi, eax
ja 0x401ffd
lea eax, [edx + edi]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
cmp ecx, 8
jb 0x401fde
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea eax, [edi + edi]
mov edi, dword [ebp - 0x5c]
push eax
push ebx
lea eax, [edi + edx*2]
push eax
call fcn.00426c00
mov eax, dword [ebp - 0x64]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x40200f
push edi
push ebx
mov byte [ebp - 0x64], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x64]
push edi
call fcn.00402870
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x40201b
mov ecx, dword [ebp - 0x28]
call fcn.00402d60
test eax, eax
je 0x402272
mov ebx, dword [ebp - 0x68]
test ebx, ebx
jne 0x402046
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x58]
call fcn.004023d0
mov byte [ebp - 4], 1
mov ebx, 1
jmp 0x402088
mov ecx, ebx
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402060
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x40]
call fcn.00402ad0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
mov ebx, 2
cmp dword [eax + 0x14], 8
mov edx, eax
mov dword [ebp - 0x70], ebx
jb 0x402095
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
sub eax, edi
mov dword [ebp - 0x68], edi
cmp ecx, eax
ja 0x4020db
cmp dword [ebp - 0x14], 8
lea eax, [edi + ecx]
mov dword [ebp - 0x64], eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x18], eax
jb 0x4020bc
mov edi, dword [ebp - 0x28]
lea eax, [ecx + ecx]
push eax
mov eax, dword [ebp - 0x68]
push edx
lea eax, [edi + eax*2]
push eax
call fcn.00426c00
mov eax, dword [ebp - 0x64]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x4020ed
push ecx
push edx
mov byte [ebp - 0x68], 0
push dword [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402870
test bl, 2
je 0x40212f
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x40212f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402125
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022ca
push edx
push ecx
call fcn.0040e5be
add esp, 8
test bl, 1
je 0x40216e
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40216e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402164
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022cf
push edx
push ecx
call fcn.0040e5be
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40217a
mov eax, dword [ebp - 0x28]
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x30]
push 0x44c648
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x5d], 1
push eax
mov dword [ebp - 0x5c], 0
call fcn.0042c158
mov eax, dword [ebp - 0x5c]
add esp, 0xc
test eax, eax
je 0x402272
push eax
push edi
push 1
push ebx
call fcn.0042c49f
push dword [ebp - 0x5c]
cmp edi, eax
setne bl
dec bl
call fcn.0042c215
add esp, 0x14
and bl, byte [ebp - 0x5d]
je 0x402272
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
jb 0x4021df
mov edi, dword [ebp - 0x28]
mov ebx, dword [esi + 0x48]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], eax
cmp ecx, 0xffffffff
jne 0x4021f1
cmp eax, ecx
je 0x402227
push 0
push 0x80
push 3
push 0
push 3
push 0x100
push edi
call dword [0x454050]
mov esi, eax
cmp esi, 0xffffffff
je 0x402227
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [0x45403c]
cmp ebx, 0xffffffff
je 0x40226e
mov eax, ebx
and eax, 1
test bl, 2
je 0x402239
or eax, 2
test bl, 4
je 0x402241
or eax, 4
test bl, 8
je 0x402249
or eax, 0x10
test bl, 0x10
je 0x402253
or eax, 0x400
test bl, 0x20
je 0x40225d
or eax, 0x80
test bl, bl
jns 0x402266
or eax, 0x200
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x402274
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4022aa
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022d4
push edx
push ecx
call fcn.0040e5be
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e5ad
mov esp, ebp
pop ebp
ret 0xc
call fcn.0042901d
call fcn.0042901d
call fcn.0042901d
int3