Function at 0x40be70
Capabilities:
Get number of processors
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x439099
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44aaf0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov eax, dword [0x44f610]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x30], ebp
call fcn.00401f40
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x38], ebx
push ebx
push ebp
push str.Count
push str.FilesCount
mov dword [esp + 0x68], ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, dword [esp + 0x60]
push ebp
push ebp
mov edi, eax
mov eax, dword [esi + 0x144]
push 0x402
push eax
mov dword [esp + 0x4c], edi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.0040cfe0
test eax, eax
jne 0x40bf39
call fcn.0040fd40
push 0x43f458
push 0x442074
call fcn.0040fe10
lea eax, [ebx - 0x10]
add esp, 8
mov dword [esp + 0x58], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40c3c2
test edi, edi
mov dword [esp + 0x28], ebp
jle 0x40c39a
cmp edi, 0x64
jge 0x40bf5a
mov eax, 0x64
cdq
idiv edi
mov dword [esi + 0x1f4], eax
jmp 0x40bf64
mov dword [esi + 0x1f4], 1
cmp edi, 0x64
jle 0x40bf88
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
lea ecx, [edx + ecx + 1]
mov eax, ebp
cdq
idiv ecx
test edx, edx
je 0x40bf8e
cmp edi, 0x64
jge 0x40c028
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40c3d8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0
push 0
mov byte [esp + 0x60], 1
mov ecx, dword [esi + 0x144]
push 0x408
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
lea edx, [esp + 0x20]
push 0x44208c
push edx
call fcn.00405da0
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esi + 0x190]
push eax
call fcn.00402000
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xc04
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x43f1c0
lea ecx, [esp + 0x28]
call fcn.00403ce0
push ebp
lea ecx, [esp + 0x28]
push str.FileName_d
push ecx
mov byte [esp + 0x64], 2
call fcn.00405da0
add esp, 0xc
push 0x43f1c0
lea ecx, [esp + 0x1c]
call fcn.00403ce0
mov byte [esp + 0x58], 3
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40c08b
push 0x104
lea ecx, [esp + 0x1c]
call fcn.004021f0
mov edx, dword [esp + 0x18]
push ebx
push 0x104
push edx
mov edx, dword [esp + 0x30]
push 0x43f1c0
push edx
push str.FilesName
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40c341
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401f40
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x58], 4
mov ecx, dword [esp + 0x18]
push ecx
lea edi, [esp + 0x20]
call fcn.0040f110
mov ebp, dword [esp + 0x20]
add esp, 4
push 0x5c
push ebp
call fcn.00423a8c
add esp, 8
test eax, eax
jne 0x40c0f6
or eax, 0xffffffff
jmp 0x40c0f8
sub eax, ebp
lea ecx, [eax + 1]
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
call fcn.0040ea50
push 0x4420b0
lea eax, [esp + 0x48]
push 0x44f61c
push eax
mov byte [esp + 0x64], 5
call fcn.004039e0
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x64], 6
call fcn.0040eb50
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 7
call fcn.00402000
mov byte [esp + 0x58], 6
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c177
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 5
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c19c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 4
call fcn.004129f6
add esp, 4
test eax, eax
je 0x40c1e6
push 0x4420b4
lea ecx, [esp + 0x34]
mov dword [eax], vtable.CFileProc.0
mov dword [esp + 0x38], eax
call fcn.00403ce0
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x5c], 8
or dword [esp + 0x18], 1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
call fcn.0040f6d0
test eax, eax
je 0x40c1ee
mov bl, 1
jmp 0x40c1f0
mov dword [esp + 0x34], 0
xor bl, bl
mov dword [esp + 0x58], 5
test byte [esp + 0x14], 1
je 0x40c224
mov eax, dword [esp + 0x30]
and dword [esp + 0x14], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c224
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40c235
mov dword [esp + 0x2c], 1
jmp 0x40c2df
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40c3d8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
push ebp
lea ecx, [esp + 0x30]
push 0x4420c0
push ecx
mov byte [esp + 0x64], 9
call fcn.00405da0
add esp, 0xc
call fcn.0040fd40
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x43f1fc
call fcn.00403ce0
mov byte [esp + 0x5c], 0xa
mov esi, dword [esp + 0x30]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x54], esp
mov edi, esp
push esi
call fcn.00401f40
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x60], 9
call fcn.0040ff80
add esp, 8
mov dword [esp + 0x2c], 0
mov byte [esp + 0x58], 5
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40c2db
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x40c2ef
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov byte [esp + 0x58], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c314
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x58], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c335
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c366
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c38b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
cmp ebp, edi
mov dword [esp + 0x28], ebp
jl 0x40bf45
lea eax, [ebx - 0x10]
mov dword [esp + 0x58], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8
push 0x80004005
call fcn.00401ed0
int3