Function at 0x4597c0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46f843
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x874], eax
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x888]
mov dword fs:[0], eax
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x689]
push ebx
push eax
mov byte [esp + 0x690], bl
call sub.ntdll.dll_memset
add esp, 0xc
push 0x200
lea ecx, [esp + 0x688]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x684]
push edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x890], ebx
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push 0x478b60
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
cmp eax, 0xffffffff
je 0x4598a9
add eax, 1
push eax
push ebx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x894], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x890], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x478b64
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
test byte [0x503528], 1
jne 0x4598cf
or dword [0x503528], 1
mov dword [0x5032ec], 0x4e8ab4
mov dword [0x5032f0], ebx
mov dword [0x5032f4], ebx
mov eax, dword [0x5032ec]
mov edx, dword [eax + 0x10]
mov ecx, 0x5032ec
call edx
test eax, eax
je 0x459996
push 0x7f
lea eax, [esp + 0x289]
push ebx
push eax
mov byte [esp + 0x290], bl
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x50], 0x10
jae 0x45990f
lea eax, [esp + 0x3c]
push eax
push 0x80
lea ecx, [esp + 0x28c]
push ecx
push str.Windows_PE
push 0x4e790c
push str.Other
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x4fd0f0]
lea edx, [esp + 0x284]
push edx
mov edx, dword [eax + 8]
mov ecx, 0x4fd0f0
call edx
mov edx, dword [0x4fd574]
lea eax, [esp + 0x284]
push eax
mov eax, dword [edx + 8]
mov ecx, 0x4fd574
call eax
mov edx, dword [0x4fd978]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x284]
push ecx
mov ecx, 0x4fd978
call eax
mov edx, dword [0x4fdcfc]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x284]
push ecx
mov ecx, 0x4fdcfc
call eax
jmp 0x459c41
lea ecx, [esp + 0x54]
push ecx
call fcn.0045aaf0
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x894], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x64], ebx
call esi
cmp eax, ebx
jne 0x459a12
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea ecx, [esp + 0x268]
mov dword [esp + 0x60], 0x80000002
call dword [0x474790]
lea eax, [esp + 0x54]
push eax
call fcn.0045c9a0
mov ecx, dword [esp + 0x58]
push ecx
mov byte [esp + 0x264], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x58]
push edx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call esi
cmp eax, ebx
je 0x459a49
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x264]
mov byte [esp + 0x890], bl
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 + 0x38]
mov dword [esp + 0x890], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x459c58
push 0x1fe
lea eax, [esp + 0x48a]
push ebx
push eax
mov word [esp + 0x490], bx
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x488]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.ProductName
push ecx
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x459ab1
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
lea ecx, [esp + 0x58]
call fcn.0045ad40
jmp 0x459a19
cmp dword [esp + 0x14], 1
je 0x459ac8
push 1
lea ecx, [esp + 0x58]
call fcn.0045ad40
jmp 0x459a19
push 1
lea ecx, [esp + 0x58]
call fcn.0045ad40
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x459b02
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xff
lea eax, [esp + 0x389]
push ebx
push eax
mov byte [esp + 0x390], bl
call sub.ntdll.dll_memset
add esp, 0xc
push 0xff
lea ecx, [esp + 0x289]
push ebx
push ecx
mov byte [esp + 0x290], bl
call sub.ntdll.dll_memset
lea eax, [esp + 0x490]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x459b46
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x488]
push edx
lea eax, [esp + 0x38c]
push eax
call dword [sym.imp.ntdll.dll_wcstombs]
add esp, 0xc
cmp dword [esp + 0x10], ebx
lea edi, [esp + 0x284]
je 0x459b8b
lea ecx, [esp + 0x384]
push ecx
push str._s_x64
jmp 0x459b98
lea edx, [esp + 0x384]
push edx
push str._s_x86
mov ecx, 0x100
call fcn.00457e90
mov edx, dword [0x4fd0f0]
add esp, 8
lea eax, [esp + 0x284]
push eax
mov eax, dword [edx + 8]
mov ecx, 0x4fd0f0
call eax
mov edx, dword [0x4fd574]
mov eax, dword [edx + 8]
lea ecx, [esp + 0x284]
push ecx
mov ecx, 0x4fd574
call eax
mov edx, dword [0x4fd978]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x284]
push ecx
mov ecx, 0x4fd978
call eax
mov edx, dword [0x4fdcfc]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x284]
push ecx
mov ecx, 0x4fdcfc
call eax
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x459c14
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x288]
push ecx
push 0x4e790c
push str.Other
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x264]
mov byte [esp + 0x890], bl
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 + 0x38]
mov dword [esp + 0x890], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x888]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x874]
xor ecx, esp
call fcn.0046d6fd
add esp, 0x884
ret