Function at 0x40a8f0
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x40fafc
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov dword [esp + 0x74], 0
cmp dword [esp + 0x90], 0
jne 0x40a943
push str.K8GM.exe
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 8]
mov byte [esi + 0x38d], 1
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMRegFile::constructor_void_
push 1
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 1
call sub.K8Common.dll_public:_bool___thiscall_GameMgr::GMRegFile::OpenKey_struct_HKEY_____wchar_t_const___unsigned_long_int__bool_
test al, al
jne 0x40a99f
lea ecx, [esp + 8]
mov byte [esp + 0x74], al
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMRegFile::destructor_void_
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x40aacf
push edi
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x74], 2
cmp dword [esp + 0x5c], 0
jne 0x40a9e4
lea eax, [esp + 0x10]
push 0
push eax
call sub.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMSharedLibrary::GetModuleFullName_struct_HINSTANCE____
add esp, 8
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x78], 3
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x48]
call fcn.0040a5a0
test al, al
lea ecx, [esp + 0x48]
je 0x40aa27
mov byte [esp + 0x74], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 8]
mov byte [esp + 0x74], 0
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMRegFile::destructor_void_
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
jmp 0x40aacf
push ecx
lea edx, [esp + 0x30]
push edx
call sub.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFileName::GetQuotedFilePath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
push 0x411af8
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 4
call dword [0x4113b4]
push str._background
lea ecx, [esp + 0x30]
call dword [0x4113b4]
mov ecx, dword [esp + 0x30]
mov eax, 8
cmp dword [esp + 0x44], eax
jae 0x40aa6b
lea ecx, [esp + 0x30]
cmp dword [esp + 0x94], eax
mov eax, dword [esp + 0x80]
jae 0x40aa82
lea eax, [esp + 0x80]
push ecx
push eax
lea ecx, [esp + 0x10]
call sub.K8Common.dll_public:_bool___thiscall_GameMgr::GMRegFile::SetValue_wchar_t_const___wchar_t_const__
lea ecx, [esp + 0x2c]
mov bl, al
mov byte [esp + 0x74], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x48]
mov byte [esp + 0x74], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 8]
mov byte [esp + 0x74], 0
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMRegFile::destructor_void_
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0040e0e6
add esp, 0x70
ret 0x1c