Function at 0x401540
Capabilities:
Check for debugger via api
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40450d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x4017df
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
jne 0x4017df
call fcn.00401940
test al, al
jne 0x4015a1
mov edx, str.Login_failed._Exiting...
jmp 0x4017e4
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Injection_successful_
call fcn.00402b20
push 0x402d40
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push str.Strinova_Win64_Shipping.exe
lea ecx, [ebp - 0x5c]
call fcn.00402720
lea edx, [ebp - 0x5c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401820
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x401611
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401607
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401673
push ecx
push edx
call fcn.00403491
add esp, 8
push 0x4052ec
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401688
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_load_OpenProcess.
call fcn.00402b20
push 0x402d40
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x4017fc
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401679
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401679
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00403491
add esp, 8
jmp 0x4017fc
xorps xmm0, xmm0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x5c]
movlpd qword [ebp - 0x20], xmm0
call fcn.00401820
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x4016a5
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00401180
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x4016eb
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4016e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4016e1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00403491
add esp, 8
sub esp, 8
mov dword [ebp - 0x4c], 0
mov eax, esp
mov dword [ebp - 0x48], 0xf
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x5c], 0
mov dword [eax], str.client.dll
mov dword [eax + 4], 0xa
call fcn.004012e0
sub esp, 8
mov edi, eax
mov ecx, esp
mov dword [ecx], str.engine.dll
mov dword [ecx + 4], 0xa
lea ecx, [ebp - 0x20]
call fcn.004012e0
push 0x10
mov esi, eax
mov byte [ebp - 0x42], 1
mov byte [ebp - 0x41], 1
call fcn.0040345c
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0x401ed0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
push ecx
push 0
push eax
push 0x403360
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4017d0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4017c8
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
jne 0x4017c8
xorps xmm0, xmm0
lea edx, [ebp - 0x41]
lea ecx, [ebp - 0x42]
movlpd qword [ebp - 0x28], xmm0
call fcn.00401c70
nop word [eax + eax]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x14], 0
call fcn.00402d70
jmp 0x4017b0
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x24], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov edx, str.Debugger_detected._Exiting...
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00402b20
push 0x402d40
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
or eax, 0xffffffff
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.0040344e
mov esp, ebp
pop ebp
ret