Function at 0x40a5a0
Capabilities:
Persist via run registry key
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40f842
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x18]
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMRegFile::constructor_void_
push 1
push 3
push str.SoftwareMicrosoftWindowsCurrentVersionRun
xor edi, edi
push 0x80000001
lea ecx, [esp + 0x28]
mov dword [esp + 0xb0], edi
call sub.K8Common.dll_public:_bool___thiscall_GameMgr::GMRegFile::OpenKey_struct_HKEY_____wchar_t_const___unsigned_long_int__bool_
test al, al
je 0x40a8ac
push esi
lea ecx, [esp + 0x60]
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 + 0xa0], 1
cmp dword [esp + 0x70], edi
jne 0x40a65a
lea eax, [esp + 0x40]
push edi
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 + 0x60]
mov byte [esp + 0xa4], 2
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 + 0x40]
mov byte [esp + 0xa0], 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 + 0x5c]
push ecx
lea edx, [esp + 0x7c]
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 + 0x7c]
mov byte [esp + 0xa4], 3
call dword [0x4113b4]
push str._background
lea ecx, [esp + 0x7c]
call dword [0x4113b4]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0xa8], 5
call sub.K8Common.dll_public:_bool___thiscall_GameMgr::GMRegFile::EnumKeyValueName_class_std::vector_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::allocator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_______class_std::vector_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::allocator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______
xor ebp, ebp
xor ebx, ebx
lea esp, [esp]
mov esi, dword [esp + 0x24]
cmp esi, edi
mov edi, dword [esp + 0x28]
je 0x40a80c
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x40a80c
lea ecx, [esp + 0x40]
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_void_]
mov byte [esp + 0xa0], 6
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40a736
mov ecx, dword [esp + 0x28]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x40a740
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
cmp dword [ebx + esi + 0x18], 8
jb 0x40a74d
mov esi, dword [ebx + esi + 4]
jmp 0x40a751
lea esi, [ebx + esi + 4]
lea edx, [esp + 0x40]
push edx
push esi
lea ecx, [esp + 0x20]
call sub.K8Common.dll_public:_bool___thiscall_GameMgr::GMRegFile::GetValue_wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
test al, al
je 0x40a77a
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x44]
push ecx
call sub.K8Common.dll_public:_static_int___cdecl_GameMgr::GMStringUtils::CompareNoCase_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
test eax, eax
je 0x40a799
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], 5
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_]
add ebp, 1
add ebx, 0x1c
xor edi, edi
jmp 0x40a6d0
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], 5
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 ebx, [esp + 0x20]
mov byte [esp + 0xa0], 4
call fcn.00405560
lea ebx, [esp + 0x30]
mov byte [esp + 0xa0], 3
call fcn.00405560
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], 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 + 0x5c]
mov byte [esp + 0xa0], 0
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 + 0x18]
mov dword [esp + 0xa0], 0xffffffff
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMRegFile::destructor_void_
mov al, 1
jmp 0x40a8c2
xor ebx, ebx
cmp esi, ebx
mov byte [esp + 0xa0], 4
je 0x40a83c
cmp esi, edi
je 0x40a833
mov edi, edi
mov ecx, esi
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_]
add esi, 0x1c
cmp esi, edi
jne 0x40a820
mov esi, dword [esp + 0x24]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0xa0], 3
mov esi, dword [esp + 0x34]
cmp esi, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x40a87c
mov edi, dword [esp + 0x38]
cmp esi, edi
je 0x40a873
mov ecx, esi
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_]
add esi, 0x1c
cmp esi, edi
jne 0x40a860
mov esi, dword [esp + 0x34]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x78]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0xa0], 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 + 0x5c]
mov byte [esp + 0xa0], 0
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 + 0x18]
mov dword [esp + 0xa0], 0xffffffff
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMRegFile::destructor_void_
xor al, al
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0040e0e6
add esp, 0x90
ret