Function at 0x4010f0
Capabilities:
Create thread
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x40f39b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov ecx, dword [esp + 0x8c]
push ebx
or eax, 0xffffffff
push ebp
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x94]
push edi
xor ebp, ebp
lea ebx, [ecx + 4]
push 1
push 0x40ed00
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov byte [esp + 0x1b], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
lea edi, [eax - 1]
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebp
push ebp
push 1
push ebp
call esi
push ebp
push ebp
push 1
push ebp
mov dword [0x413028], eax
call esi
push ebp
push ebp
push 1
push ebp
mov dword [0x413020], eax
call esi
mov ecx, dword [0x413028]
mov dword [0x413024], eax
cmp ecx, ebp
je 0x401827
cmp dword [0x413020], ebp
je 0x401827
cmp eax, ebp
je 0x401827
cmp edi, ebp
jle 0x4011c5
mov edx, dword [ebx]
push str._nologo
push edx
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x4011c5
dec edi
add ebx, 4
mov dword [esp + 0x1c], ebx
jmp 0x4011ca
call fcn.0040ed60
cmp edi, ebp
jle 0x401395
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x4011e8
cmp cl, 0x2f
jne 0x401395
movsx ecx, byte [eax + 1]
add ecx, 0xffffffc1
cmp ecx, 0x38
ja case.0x401200.70
xor edx, edx
mov dl, byte [ecx + 0x401864]
jmp dword [edx*4 + 0x401844]
cmp dword [0x45e7ac], ebp
jne 0x4013c6
add eax, 2
mov dword [0x45e7ac], eax
cmp byte [eax], 0
je 0x4013e1
jmp 0x40137f
mov cl, byte [eax + 2]
add eax, 2
test cl, cl
je 0x4013fc
lea ecx, [esp + 0x14]
push 0xa
push ecx
push eax
call sub.MSVCRT.dll_strtoul
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
add esp, 0xc
cmp byte [edx], 0
jne 0x401417
jmp 0x40137f
mov cl, byte [eax + 2]
add eax, 2
test cl, cl
je 0x401432
lea ecx, [esp + 0x14]
push 0xa
push ecx
push eax
call sub.MSVCRT.dll_strtoul
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
add esp, 0xc
cmp byte [edx], 0
jne 0x40144d
jmp 0x40137f
lea ecx, [eax + 2]
mov al, byte [eax + 2]
test al, al
je 0x40137f
cmp al, 0x64
je 0x4012bf
cmp al, 0x44
je 0x4012bf
lea eax, [esp + 0x14]
push 0xa
push eax
push ecx
call sub.MSVCRT.dll_strtoul
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov esi, eax
jmp 0x4012cb
mov ecx, 0x45e7b0
or esi, 0xffffffff
mov dword [esp + 0x14], ecx
mov al, byte [ecx]
test al, al
je 0x4012d9
cmp al, 0x2c
jne 0x401483
cmp esi, 0xffffffff
jl 0x401483
cmp esi, 7
jge 0x401483
cmp al, 0x2c
jne 0x401311
inc ecx
push 0x413170
push ecx
call sub.MSVCRT.dll_fopen
add esp, 8
cmp eax, ebp
je 0x401468
push eax
mov ecx, 0x45e790
call fcn.0040e840
cmp esi, 1
push esi
mov ecx, 0x45e790
setg bl
call fcn.0040d550
test bl, bl
je 0x40137f
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
push ecx
push edx
mov ecx, 0x45e790
call fcn.0040eb80
jmp 0x40137f
mov byte [esp + 0x13], 1
jmp 0x40137f
call fcn.00401040
jmp 0x40137f
mov cl, byte [eax + 2]
add eax, 2
test cl, cl
je 0x40149e
lea ecx, [esp + 0x14]
push 0xa
push ecx
push eax
call sub.MSVCRT.dll_strtoul
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], eax
add esp, 0xc
cmp byte [edx], 0
jne 0x4014b9
mov ecx, dword [esp + 0x1c]
dec edi
add ecx, 4
cmp edi, ebp
mov dword [esp + 0x1c], ecx
jg 0x4011d2
mov ebx, ecx
cmp edi, 1
jge 0x4013a8
mov dword [ebx], 0x41316c
mov dword [ebx + 4], ebp
mov edi, 1
mov esi, dword [ebx]
push 0x41316c
push esi
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x4014ef
dec edi
jmp 0x4014f4
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
call fcn.00401040
cmp edi, ebp
jle 0x401513
push 4
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
mov al, byte [esp + 0x13]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test al, al
jne 0x40153a
mov eax, dword [esp + 0x24]
test eax, eax
jge 0x401590
mov byte [esp + 0x13], 1
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
je 0x401555
mov dword [esp + 0x18], 2
jmp 0x4016fc
push 0x45e790
call fcn.00403130
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x401585
push 3
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 3
call sub.MSVCRT.dll_exit
mov eax, dword [esp + 0x28]
mov dword [0x45e7a8], eax
jmp 0x4015ca
push 0x45e790
call fcn.004022a0
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4015c0
push 3
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 3
call sub.MSVCRT.dll_exit
mov ecx, dword [esp + 0x2c]
mov dword [0x45e7a8], ecx
push 0x6638
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x90], 0
je 0x401601
mov edx, dword [0x45e7a8]
push 0xb
push 0x45e790
push edx
mov ecx, eax
call 0x4018a0
jmp 0x401603
xor eax, eax
test eax, eax
mov dword [esp + 0x90], 0xffffffff
mov dword [0x45e7a0], eax
jne 0x401632
push 3
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 3
call sub.MSVCRT.dll_exit
mov ecx, eax
call fcn.00401a80
test al, al
jne 0x40164a
mov dword [esp + 0x18], 5
jmp 0x4016fc
push 0
push 0
push 0x40ec60
call sub.MSVCRT.dll__beginthread
mov eax, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x38]
push eax
push str.Wbugdisp_P_d
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea edx, [esp + 0x38]
push edx
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4016a2
push 0
push eax
call edi
test eax, eax
je 0x4016a2
mov ecx, dword [esp + 0x20]
push ecx
call ebx
push 0x96
call ebp
mov al, byte [esp + 0x13]
test al, al
je 0x401715
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
call dword [edx + 0x34]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4016fc
push 0x41316c
push esi
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x401738
mov edx, dword [esp + 0x34]
mov ecx, dword [0x45e7a0]
push eax
push eax
push 0xffffffffffffffff
push edx
call fcn.00401bc0
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4016fc
mov ecx, dword [0x45e7a0]
call fcn.00402250
test eax, eax
mov dword [esp + 0x18], eax
je 0x401738
mov eax, dword [esp + 0x18]
push eax
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
jmp 0x40174a
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00402460
test al, al
jne 0x4016bb
mov dword [esp + 0x18], 0xd
jmp 0x4016fc
push str._nDone._n_n
push 0x45e790
call fcn.0040ec00
add esp, 8
mov ecx, dword [0x413020]
push ecx
call ebx
mov edx, dword [0x413024]
push 0x3e8
push edx
call edi
mov ecx, dword [0x45e7a4]
xor esi, esi
cmp ecx, esi
je 0x401788
call fcn.00402280
mov ecx, dword [0x45e7a4]
cmp ecx, esi
je 0x401782
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x45e7a4], esi
mov ecx, dword [0x45e7a0]
cmp ecx, esi
je 0x4017ad
call fcn.00402170
mov ecx, dword [0x45e7a0]
cmp ecx, esi
je 0x4017a7
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [0x45e7a0], esi
push 0x1f4
call ebp
mov ecx, dword [0x45e7a8]
cmp ecx, esi
je 0x4017d9
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [0x45e7a8]
cmp ecx, esi
je 0x4017d3
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [0x45e7a8], esi
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4017e8
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x413020]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x413028]
push ecx
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40180a
push eax
call esi
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret
push 3
push str._n_nError:__d_n
push 0x45e790
call fcn.0040ec00
add esp, 0xc
push 0xffffffffffffffff
call sub.MSVCRT.dll_exit
mov edi, edi
dec ecx
adc eax, dword [eax]
pop ebp
adc al, byte [eax]
sub dword [edx], edx
inc eax
add byte [eax + 0x13], dl
inc eax
add byte [edx + 0x13], al
inc eax
add byte [ecx + 0x7004012], dl
adc al, byte [eax]
aam 0x14
inc eax
add byte [eax], al
pop es
pop es
add dword [edi], eax
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
add al, byte [edi]
pop es
pop es
add eax, dword [eax + 0x7070706]
pop es
pop es
pop es
pop es
pop es
pop es
pop es
add dword [edi], eax
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
add al, byte [edi]
pop es
pop es
add eax, dword [eax - 0x6f6f6ffa]
push 0xffffffffffffffff
push 0x40f40c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
push ebp
push edi
mov dword [esp + 0x18], esi
lea ecx, [esi + 8]
call fcn.00408470
lea ebx, [esi + 0x607c]
push ebp
push ebx
push edi
lea ecx, [esi + 0x1c]
mov dword [esp + 0x28], 0
call fcn.004072e0
push 0
push 0
lea ecx, [esi + 0x6064]
mov byte [esp + 0x24], 1
call fcn.00406f90
lea eax, [esi + 0x6614]
mov ecx, ebx
push eax
mov byte [esp + 0x20], 2
call fcn.004062e0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x6100]
mov byte [esp + 0x24], 3
call fcn.00405700
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x6338]
mov byte [esp + 0x24], 4
call fcn.00405700
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x6570]
mov byte [esp + 0x24], 5
call fcn.00405560
mov eax, dword [esp + 0x2c]
mov edx, dword [edi]
push eax
mov ecx, edi
mov byte [esp + 0x20], 6
call dword [edx + 4]
push eax
lea ecx, [esi + 0x6614]
call fcn.004096f0
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x605c], edi
mov dword [esi], 0x410150
mov dword [esi + 4], ebp
mov dword [esi + 0x6060], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc