Function at 0x4013b0
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45039d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x465080]
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
push 0
push 0x40000000
push 3
push 0
push 3
push 0x2000000
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
call fcn.004010f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4015a4
mov edi, dword [ebp + 0x38]
cmp edi, 0x80
jbe 0x401441
cmp dword [0x465b30], 2
mov edi, 0x80
jl 0x401455
push edi
push str.Nb_of_threads_too_big__using__d_n
call fcn.00403010
add esp, 8
jmp 0x401455
test edi, edi
jne 0x401455
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
lea edi, [eax + eax]
lea eax, [edi*4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x18], eax
test eax, eax
je 0x4015a4
push 0
push 0
push 0
mov dword [esi + 0x24], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0xffffffffffffffff
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x401571
push 0
push 0
push eax
push dword [esi + 4]
call edi
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x40152e
push 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x401513
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x401900
push 0
push 0
call edi
mov ecx, dword [esi + 0x28]
mov edx, eax
mov eax, dword [esi + 0x18]
mov ebx, edx
mov dword [eax + ecx*4], edx
mov eax, dword [esi + 0x28]
inc eax
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
jae 0x4014f5
test edx, edx
jne 0x4014c3
jmp 0x4014fb
mov ebx, edx
test edx, edx
jne 0x40154f
cmp dword [0x465b30], 1
jl 0x40154b
push str.Failed_to_create_worker_threads_n
call fcn.00403010
add esp, 4
jmp 0x40154b
cmp dword [0x465b30], 1
jl 0x4015a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_configure_iocompletion_port_with_error__.8x_n
jmp 0x401586
cmp dword [0x465b30], 1
jl 0x40154b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_associate_device_with_iocompletion_port_with_error__.8x_n
call fcn.00403010
add esp, 8
test ebx, ebx
je 0x40158e
cmp dword [0x465b30], 2
jl 0x401568
push dword [esi + 0x24]
push str._u_threads_and_IOCP_created_successfully_n
call fcn.00403010
add esp, 8
mov dword [ebp - 0x38], 1
jmp 0x4015a4
cmp dword [0x465b30], 1
jl 0x4015a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_I_O_completion_port_with_error__.8x_n
call fcn.00403010
add esp, 8
cmp dword [0x465b30], 1
jl 0x4015a4
push str.Failed_to_create_Threads_and_IOCP_n
call fcn.00403010
add esp, 4
lea ecx, [ebp + 8]
call fcn.004011e0
mov eax, dword [ebp - 0x38]
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.00428d53
mov esp, ebp
pop ebp
ret 0x34