Function at 0x406e70
Capabilities:
Create process on windows
Create process suspended
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412e3e
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x87f03c]
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 eax, ecx
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c8], ecx
lea ecx, [ebp - 0x150]
push ecx
mov ecx, eax
call fcn.004065d0
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov esi, dword [eax]
mov dword [eax + 8], 0
mov dword [ebp - 0x1a8], edi
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], ecx
lea ecx, [ebp - 0x150]
mov dword [ebp - 4], 0
call fcn.00401a40
cmp esi, edi
je 0x406f45
cmp dword [esi + 0x14], 0x10
mov edi, esi
jb 0x406f11
mov edi, dword [esi]
push 0x30
lea eax, [ebp - 0x1a4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x1a4]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 0x14
test eax, eax
je 0x407035
add esi, 0x18
cmp esi, dword [ebp - 0x1a8]
jne 0x406f07
xorps xmm0, xmm0
mov dword [ebp - 0x164], 0
movups xmmword [ebp - 0x174], xmm0
mov dword [ebp - 0x160], 0xf
mov byte [ebp - 0x174], 0
lea ecx, [ebp - 0x138]
call fcn.00401a40
cmp dword [ebp - 0x164], 0
mov dword [ebp - 4], 1
jne 0x4071ac
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 0
movups xmmword [ebp - 0x15c], xmm0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
mov ecx, dword [ebp - 0x1b4]
lea eax, [ebp - 0x138]
push eax
mov byte [ebp - 4], 2
call fcn.004065d0
mov esi, dword [ebp - 0x138]
mov edi, dword [ebp - 0x134]
mov byte [ebp - 4], 3
cmp esi, edi
je 0x40700e
nop dword [eax + eax]
push 1
push 0x414aac
lea ecx, [ebp - 0x15c]
call fcn.00403340
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x406ffc
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00403340
add esi, 0x18
cmp esi, edi
jne 0x406fe0
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 2
call fcn.00401a40
mov ecx, dword [ebp - 0x14c]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0x39
jb 0x407932
jmp 0x407046
push esi
lea ecx, [ebp - 0x174]
call fcn.004016f0
jmp 0x406f6a
cmp dword [ebp - 0x148], 0x10
lea eax, [ebp - 0x15c]
push ecx
cmovae eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x144]
push eax
push 0x39
push str.No_supported_game_installation_was_found._n_nChecked_Paths:
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x1c8]
call fcn.004017e0
mov eax, dword [0x414af4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x124], eax
movq xmm0, qword [str.Game_not_found]
mov ax, word [0x414af8]
mov dword [ebp - 0x11c], 0xe
mov dword [ebp - 0x118], 0xf
movq qword [ebp - 0x12c], xmm0
mov word [ebp - 0x120], ax
mov byte [ebp - 0x11e], 0
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00403df0
mov ecx, dword [ebp - 0x118]
add esp, 8
cmp ecx, 0x10
jb 0x407118
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40710e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40715f
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp ecx, 0x10
jb 0x40716f
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407165
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407165
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov ecx, dword [ebp - 0x148]
cmp ecx, 0x10
jb 0x4078d4
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4071a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4071a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
jmp 0x4078cc
push 0x44
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x160], 0x10
lea eax, [ebp - 0x174]
push 0x104
cmovae eax, dword [ebp - 0x174]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x114]
push eax
movups xmmword [ebp - 0x1d8], xmm0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407206
sub ecx, edx
je 0x40721e
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, dword [ebp - 0x1b4]
lea edx, [ebp - 0x1d8]
push edx
xor ecx, ecx
lea edx, [ebp - 0x21c]
push edx
cmp byte [edi + 0x4c], cl
mov eax, 4
push 0
push 0
cmovne eax, ecx
cmp dword [ebp - 0x160], 0x10
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x174]
cmovae ecx, dword [ebp - 0x174]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jns 0x40736f
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
push 0x30
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x130], 0xf
movups xmmword [ebp - 0x144], xmm0
call fcn.00403290
movups xmm0, xmmword [str.Could_not_launch_the_game_process.]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x134], 0x22
mov dword [ebp - 0x130], 0x2f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x414b0c]
movups xmmword [eax + 0x10], xmm0
movzx ecx, word [0x414b1c]
mov word [eax + 0x20], cx
mov byte [eax + 0x22], 0
xorps xmm0, xmm0
mov byte [ebp - 4], 6
push 0x20
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x118], 0xf
call fcn.00403290
movups xmm0, xmmword [str.Game_Launch_Failed]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x11c], 0x12
mov dword [ebp - 0x118], 0x1f
movups xmmword [eax], xmm0
movzx ecx, word [0x414b30]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], 0
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00403df0
add esp, 8
lea ecx, [ebp - 0x12c]
call fcn.004019f0
lea ecx, [ebp - 0x144]
call fcn.004019f0
jmp 0x4078d4
push str.Launch_succeeded._Process:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00404400
add esp, 8
mov ecx, eax
push dword [ebp - 0x1d0]
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___unsigned_long_int_]
push 0x404d60
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.Waiting_for_initialization_to_complete...
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00404400
add esp, 8
mov ecx, eax
push 0x404d60
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 dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
cmp byte [edi + 0x4c], 0
mov byte [ebp - 4], 8
jne 0x407410
mov eax, dword [ebp - 0x1d0]
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x1a8], eax
lea eax, [ebp - 0x1a8]
push eax
push 0
call fcn.004048a0
mov esi, dword [ebp - 0x138]
jmp 0x4077ee
xor esi, esi
jmp 0x40741a
mov edi, dword [ebp - 0x1b4]
cmp esi, 0x2710
jae 0x407670
push dword [ebp - 0x1d0]
mov ecx, edi
call fcn.00406c10
mov dword [ebp - 0x1ac], eax
test eax, eax
jne 0x407637
lea eax, [ebp - 0x14c]
inc esi
push eax
mov dword [ebp - 0x1a8], esi
call fcn.00403c70
mov edx, dword [ebp - 0x14c]
add esp, 4
mov ecx, dword [ebp - 0x148]
cmp edx, 0xffb3b4bf
jne 0x407473
cmp ecx, 0x7fffffff
je 0x4074a0
cmp ecx, 0x7fffffff
jg 0x407489
jl 0x407485
cmp edx, 0xffb3b4bf
jae 0x407489
or al, 0xff
jmp 0x40748b
mov al, 1
test al, al
jns 0x4074a0
add edx, 0x4c4b40
adc ecx, 0
mov dword [ebp - 0x1b0], ecx
jmp 0x4074ad
or edx, 0xffffffff
mov dword [ebp - 0x1b0], 0x7fffffff
mov dword [ebp - 0x1c4], edx
call sub.MSVCP140.dll__Query_perf_frequency
mov edi, eax
mov esi, edx
mov dword [ebp - 0x1bc], edi
mov dword [ebp - 0x1c0], esi
call sub.MSVCP140.dll__Query_perf_counter
cmp edi, 0x989680
jne 0x4074ef
test esi, esi
jne 0x4074ef
push esi
push 0x64
push edx
push eax
call fcn.0040e890
mov ecx, eax
mov dword [ebp - 0x1bc], edx
mov eax, edx
jmp 0x407550
push ebx
push esi
push edi
push edx
push eax
call fcn.0040e7b0
mov edi, ebx
pop ebx
nop
push 0
push 0x3b9aca00
push edx
push eax
mov esi, ecx
call fcn.0040e890
push 0
push 0x3b9aca00
push edi
push esi
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1ac], edx
call fcn.0040e890
push dword [ebp - 0x1c0]
push dword [ebp - 0x1bc]
push edx
push eax
call fcn.0040e700
mov ecx, eax
mov eax, edx
add ecx, dword [ebp - 0x1b8]
adc eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x1bc], eax
mov edi, dword [ebp - 0x1c4]
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b8], ecx
cmp edi, ecx
jne 0x407574
mov esi, dword [ebp - 0x1a8]
cmp edx, eax
je 0x407414
cmp edx, eax
jg 0x407582
jl 0x40757e
cmp edi, ecx
jae 0x407582
or al, 0xff
jmp 0x407584
mov al, 1
test al, al
jle 0x40762c
call sub.MSVCP140.dll__Xtime_get_ticks
push 0
push 0x64
push edx
push eax
call fcn.0040e890
sub edi, dword [ebp - 0x1b8]
mov esi, eax
mov eax, dword [ebp - 0x1b0]
mov ecx, edi
sbb eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], edx
mov edx, eax
mov dword [ebp - 0x1ac], eax
call fcn.0040e9e0
comisd xmm0, xmmword [0x414998]
jbe 0x4075e2
mov eax, dword [ebp - 0x1c0]
add esi, 0xad160000
adc eax, 0x311cd
jmp 0x4075f0
mov eax, dword [ebp - 0x1ac]
add esi, edi
adc eax, dword [ebp - 0x1c0]
push 0
push 0x3b9aca00
push eax
push esi
call fcn.0040e700
mov dword [ebp - 0x124], eax
imul eax, eax, 0x3b9aca00
mov dword [ebp - 0x120], edx
sub esi, eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x11c], esi
call sub.MSVCP140.dll__Thrd_sleep
add esp, 4
jmp 0x4074b3
mov esi, dword [ebp - 0x1a8]
jmp 0x407414
push eax
push 0
push 0x1fffff
mov dword [ebp - 0x1d0], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1d8], eax
lea ecx, [ebp - 0x138]
lea eax, [ebp - 0x1ac]
push eax
push 0
call fcn.004048a0
mov esi, dword [ebp - 0x138]
jmp 0x4077ee
xorps xmm0, xmm0
mov dword [ebp - 0x180], 0
push 0x20
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x17c], 0xf
movups xmmword [ebp - 0x190], xmm0
call fcn.00403290
movups xmm0, xmmword [str.The_game_launch_timed_out.]
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x180], 0x1a
mov dword [ebp - 0x17c], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x414b8c]
movq qword [eax + 0x10], xmm0
movzx ecx, word [0x414b94]
mov word [eax + 0x18], cx
mov byte [eax + 0x1a], 0
xorps xmm0, xmm0
mov byte [ebp - 4], 9
push 0x20
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x118], 0xf
call fcn.00403290
movups xmm0, xmmword [str.Game_Launch_Failed]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x11c], 0x12
mov dword [ebp - 0x118], 0x1f
movups xmmword [eax], xmm0
movzx ecx, word [0x414b30]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], 0
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00403df0
mov ecx, dword [ebp - 0x118]
add esp, 8
mov byte [ebp - 4], 9
cmp ecx, 0x10
jb 0x407791
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407787
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4077dc
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
mov byte [ebp - 4], 8
cmp ecx, 0x10
jb 0x4077ec
mov edx, dword [ebp - 0x190]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4077e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4077e2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
xor esi, esi
cmp esi, dword [ebp - 0x134]
je 0x407893
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
mov ecx, edi
push dword [ebp - 0x1c8]
push eax
call fcn.00405ba0
test al, al
je 0x40788d
cmp byte [ebp + 0x10], 0
je 0x40784d
push str.Waiting_until_game_exits.
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00404400
add esp, 8
mov ecx, eax
push 0x404d60
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 0xffffffffffffffff
push dword [ebp - 0x1d8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1d8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1d4]
call esi
mov ecx, dword [ebp - 0x138]
mov esi, dword [ebp - 0x1d0]
test ecx, ecx
je 0x4078d6
mov eax, dword [ebp - 0x130]
sub eax, ecx
sar eax, 2
push eax
push ecx
lea ecx, [ebp - 0x138]
call fcn.00406470
jmp 0x4078d6
mov esi, dword [ebp - 0x138]
push 0
push dword [ebp - 0x1d8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x4078d4
mov ecx, dword [ebp - 0x130]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4078ca
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407902
push ecx
push esi
call fcn.0040e25c
add esp, 8
xor esi, esi
mov ecx, dword [ebp - 0x160]
cmp ecx, 0x10
jb 0x407912
mov edx, dword [ebp - 0x174]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407908
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407908
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov eax, esi
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.0040e6c4
mov esp, ebp
pop ebp
ret 0xc
call fcn.00403260
int3