Function at 0x401300
Capabilities:
Create thread
Hide graphical window
Set console window title

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402aad
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x405004]
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
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x38]
call fcn.00401180
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 0x10
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push str.NtSetInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4013c4
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x240]
add ecx, ecx
cmp dword [ebp - 0x24], 0x10
push 0x104
push eax
mov dword [ebp - 0x244], ecx
lea ecx, [ebp - 0x38]
cmovae ecx, dword [ebp - 0x38]
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20c
lea eax, [ebp - 0x244]
push eax
push 0x1d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
call dword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor esi, esi
movq qword [ebp - 0x1c], xmm0
xor edi, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x401459
mov esi, eax
cmp edi, dword [ebp - 0x14]
je 0x401440
push 4
call fcn.00401cc2
mov dword [ebp - 0x20], eax
mov dword [eax], 0x401170
lea ecx, [edi + 4]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
push 0x401c60
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [edi], eax
test eax, eax
je 0x40152e
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x18]
add edi, 8
mov dword [ebp - 0x18], edi
jmp 0x401451
push 0x401170
push edi
lea ecx, [ebp - 0x1c]
call fcn.004016d0
mov edi, dword [ebp - 0x18]
inc ebx
cmp ebx, esi
jb 0x4013f5
mov esi, dword [ebp - 0x1c]
cmp esi, edi
je 0x4014a2
mov ebx, dword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [esi + 4], 0
je 0x40154d
call ebx
cmp dword [esi + 4], eax
je 0x401545
push 0
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
jne 0x40153d
mov dword [esi], eax
mov dword [esi + 4], eax
add esi, 8
cmp esi, edi
jne 0x401463
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x401502
mov eax, esi
cmp eax, edi
je 0x4014c1
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x401555
add eax, 8
cmp eax, edi
jne 0x4014b0
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x4014e3
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401528
push ecx
push esi
call fcn.00401cf2
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x401565
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40155b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40155b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 6
mov dword [edi + 4], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 2
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push edx
push ecx
call fcn.00401cf2
add esp, 8
xor eax, eax
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.00401cb4
mov esp, ebp
pop ebp
ret