Function at 0x4040d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406855
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
call fcn.004054b4
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x402140
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
push ecx
push 0
push eax
push 0x404570
push 0
push 0
call esi
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404524
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x404150
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov edi, dword [sym.imp.MSVCP140.dll__Thrd_detach]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x404168
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 4
mov dword [ebp - 4], 0xffffffff
call fcn.004054b4
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x401830
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 2
push ecx
push 0
push eax
push 0x404570
push 0
push 0
call esi
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404524
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4041bf
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x4041d1
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 4
mov dword [ebp - 4], 0xffffffff
call fcn.004054b4
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x404bb0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 4
push ecx
push 0
push eax
push 0x404570
push 0
push 0
call esi
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404524
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x404228
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x40423a
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 4
mov dword [ebp - 4], 0xffffffff
call fcn.004054b4
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x401490
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 6
push ecx
push 0
push eax
push 0x404570
push 0
push 0
call esi
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404524
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x404291
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x4042a3
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 4
mov dword [ebp - 4], 0xffffffff
call fcn.004054b4
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x401a30
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 8
push ecx
push 0
push eax
push 0x404570
push 0
push 0
call esi
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404524
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4042fa
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x40430c
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 4
mov dword [ebp - 4], 0xffffffff
call fcn.004054b4
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x401bd0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xa
push ecx
push 0
push eax
push 0x404570
push 0
push 0
call esi
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404524
mov dword [ebp - 4], 0xb
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x404363
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x404375
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 4
mov dword [ebp - 4], 0xffffffff
call fcn.004054b4
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x4015c0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xc
push ecx
push 0
push eax
push 0x404570
push 0
push 0
call esi
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404524
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4043cc
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x4043de
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 4
mov dword [ebp - 4], 0xffffffff
call fcn.004054b4
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x402770
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xe
push ecx
push 0
push eax
push 0x404570
push 0
push 0
call esi
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404524
mov dword [ebp - 4], 0xf
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x404435
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x404447
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 4
mov dword [ebp - 4], 0xffffffff
call fcn.004054b4
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x402990
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0x10
push ecx
push 0
push eax
push 0x404570
push 0
push 0
call esi
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x404524
mov dword [ebp - 4], 0x11
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x40449e
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x4044b0
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 4
mov dword [ebp - 4], 0xffffffff
call fcn.004054b4
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x403e80
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0x12
push ecx
push 0
push eax
push 0x404570
push 0
push 0
call esi
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x404515
mov dword [ebp - 4], 0x13
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x404503
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x404533
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push 6
mov dword [ebp - 0x20], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x18], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004054a6
mov esp, ebp
pop ebp
ret