Function at 0x40c580
Capabilities:
Create process on windows
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4465c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ec
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
push eax
call edi
mov esi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call esi
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call edi
add esp, 0x10
call esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
call fcn.004025b0
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 4
push edi
call esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Updating_Offsets...
call fcn.00405e90
push 0x4060a0
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 2
push edi
call esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Update_offsets_success
call fcn.00405e90
push 0x4060a0
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 [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Install_location_for_AlbionLauncher.exe
call fcn.00405e90
push 0x4060a0
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 0x208
lea eax, [ebp - 0x4f8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x2f0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x58
lea eax, [ebp - 0xe8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
mov dword [ebp - 0xe8], 0x58
lea eax, [ebp - 0x4f8]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xdc], str.AlbionLauncher__.exe_
push eax
mov dword [ebp - 0xc8], 0x104
mov dword [ebp - 0xb4], 0x81004
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x40ccad
movzx ecx, word [ebp - 0xb0]
mov eax, dword [ebp - 0xcc]
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x2f0]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
add esp, 0xc
mov edx, str.File_selected:
call fcn.0040cd70
lea edx, [ebp - 0x2f0]
mov ecx, eax
call fcn.0040cd70
push 0x40cfa0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x90], 0x44
push eax
lea eax, [ebp - 0x90]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4f8]
movlpd qword [ebp - 0x8c], xmm0
push eax
push 0
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x7c], xmm0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
je 0x40cc8e
mov edx, str.Process_successfully_started.
call fcn.00405e90
push 0x4060a0
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 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], 7
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
push 6
push str.761890
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], eax
call fcn.0040a410
mov ecx, dword [ebp - 0x38]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x12
jb 0x40ccd2
cmp dword [ebp - 0x34], 7
lea edx, [ebp - 0x48]
mov edi, 7
mov dword [ebp - 0x20], 0
cmova edx, dword [ebp - 0x48]
lea esi, [ebp - 0x30]
add ecx, 0x12
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
movups xmmword [ebp - 0x30], xmm0
cmp ecx, edi
jbe 0x40c8bb
mov edi, ecx
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x40c851
mov eax, 0x7fffffff
mov edi, 0x7ffffffe
add eax, eax
jmp 0x40c872
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x40ccd7
add eax, eax
cmp eax, 0x1000
jb 0x40c89f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40ccd7
push ecx
call fcn.00444c53
add esp, 4
test eax, eax
je 0x40cc1a
mov ecx, dword [ebp - 0x18]
lea esi, [eax + 0x23]
mov edx, dword [ebp - 0x14]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x40c8b8
test eax, eax
je 0x40c8b6
push eax
call fcn.00444c53
mov ecx, dword [ebp - 0x18]
add esp, 4
mov edx, dword [ebp - 0x14]
mov esi, eax
jmp 0x40c8b8
xor esi, esi
mov dword [ebp - 0x30], esi
movups xmm0, xmmword [str.steam:__rungameid_]
mov dword [ebp - 0x20], ecx
lea ecx, [esi + 0x24]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x38]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x800884]
movups xmmword [esi + 0x10], xmm0
mov eax, dword [0x800894]
mov dword [esi + 0x20], eax
lea eax, [edi + edi]
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
add esp, 0xc
mov word [esi + edi*2 + 0x24], ax
push 0x80089c
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Waiting_for_Alb_Online_to_open...
mov esi, eax
call fcn.00405e90
push 0x4060a0
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_____]
xor edi, edi
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x40c99c
cmp edi, 0x78
jge 0x40c99c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Waiting_for_Alb_Online_to_open...
call fcn.00405e90
push 0x4060a0
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 0x3e8
call esi
push 0x80089c
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
inc edi
test eax, eax
jne 0x40c99c
cmp edi, 2
jne 0x40c934
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 1
cmova eax, dword [ebp - 0x30]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x2710
call esi
jmp 0x40c934
call fcn.0040c150
test al, al
jne 0x40c9e8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Alb_Online_is_not_running._Trying_to_start_it...
call fcn.00405e90
push 0x4060a0
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_____]
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 1
cmova eax, dword [ebp - 0x30]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call esi
call fcn.0040c150
test al, al
jne 0x40ca2d
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Waiting_for_Alb_Online_to_start...
call fcn.00405e90
push 0x4060a0
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 0x3e8
call esi
call fcn.0040c150
test al, al
je 0x40ca00
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Alb_Online_is_now_running.
call fcn.00405e90
push 0x4060a0
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 [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Alb_Online_is_running.
call fcn.00405e90
push 0x4060a0
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 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 9
mov dword [ecx + 0x14], 0xf
movq xmm0, qword [str.steam.exe]
movq qword [ecx], xmm0
mov al, byte [0x800960]
mov byte [ecx + 8], al
mov byte [ecx + 9], 0
mov ecx, 0x889340
call fcn.0040bdb0
push 0x80089c
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cae2
push 3
push eax
call edi
push 0x64
call esi
push 3
push dword [ebp - 0x14]
call edi
push 0x64
call esi
push 0
push dword [ebp - 0x14]
call edi
push 0xc8
call esi
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x14], esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_void____cdecl___void___void___.0
mov dword [eax + 4], 0x4046e0
mov dword [eax + 0x24], eax
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x14], esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 7
mov dword [ecx + 0x14], 0xf
mov eax, dword [str.SDL_app]
mov dword [ecx], eax
mov ax, word [0x800968]
mov word [ecx + 4], ax
mov al, byte [0x80096a]
mov byte [ecx + 6], al
mov byte [ecx + 7], 0
mov byte [ebp - 4], 4
sub esp, 0x18
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 5
mov dword [ecx + 0x14], 0xf
mov eax, dword [str.Steam]
mov dword [ecx], eax
mov al, byte [0x800970]
mov byte [ecx + 4], al
mov byte [ecx + 5], 0
mov byte [ebp - 4], 2
call fcn.00443700
jmp 0x40cba4
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x40cbdd
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cbd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc1a
push ecx
push edx
call fcn.00444ed9
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 7
cmp eax, 7
jbe 0x40cc2a
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40cc20
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40cc20
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.00444ed9
add esp, 8
push dword [0x889348]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40cc77
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x14], 0
jne 0x40cc70
push 0
push 0
push 0x10
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call esi
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.Error_starting_the_process.
call fcn.00405e90
push 0x4060a0
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 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Has_been_cancelled.
call fcn.00405e90
push 0x4060a0
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 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.00401950
call fcn.004018b0
int3