Function at 0x45b6e0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x477ac1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x49fba8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], ebx
call fcn.0044ee20
lea eax, [esp + 0x24]
push eax
mov edi, 1
push 0x209
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x2c], ebx
call fcn.00406e20
mov byte [esp + 0x44], 2
call fcn.00459550
test eax, eax
mov esi, dword [esp + 0x50]
je 0x45b92c
mov eax, esi
sub eax, 0x24
je 0x45b8ab
sub eax, edi
je 0x45b881
sub eax, edi
jne 0x45b92c
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.0044f5d0
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 3
call fcn.0044ef50
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45b7d6
mov esi, dword [esp + 0x4c]
push 0x47bd74
mov ecx, esi
call fcn.0044f5d0
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.0044ee30
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 1
call fcn.00406be0
jmp 0x45b9f5
lea edx, [esp + 0x20]
push edx
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x208
call fcn.00404890
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push str.ProgramFilesDir
push ecx
call edi
mov esi, eax
cmp esi, ebx
je 0x45b840
lea edx, [esp + 0x20]
push edx
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x208
call fcn.00404890
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push str.ProgramFilesPath
push ecx
call edi
mov esi, eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x45b86c
mov esi, dword [esp + 0x4c]
push 0x47bd74
mov ecx, esi
call fcn.0044f5d0
mov dword [esp + 0x1c], 1
jmp 0x45b7b5
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.0044ee30
mov edi, 1
jmp 0x45b8d3
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x45b893
mov ecx, dword [esp + 0x34]
sub ecx, eax
sar ecx, 1
jne 0x45b89d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x45b8d3
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x45b8bd
mov edx, dword [esp + 0x34]
sub edx, eax
sar edx, 1
jne 0x45b8c7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x45b8e5
mov ecx, dword [esp + 0x34]
sub ecx, eax
sar ecx, 1
jne 0x45b8ef
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.0044f6d0
mov esi, dword [esp + 0x4c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0044f620
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x44], 1
je 0x45b9e9
mov ecx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 1
push ecx
jmp 0x45b9de
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x45b9b4
lea eax, [esp + 0x24]
push eax
push esi
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jne 0x45b99f
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x45b966
mov ecx, dword [esp + 0x34]
sub ecx, eax
sar ecx, 1
jne 0x45b970
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x45b99f
push ebx
lea ecx, [esp + 0x30]
call fcn.00404890
push eax
lea ecx, [esp + 0x14]
call fcn.0044f6d0
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0044f030
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x45b9b4
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0044f620
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x44], 1
je 0x45b9e9
mov edx, dword [esp + 0x38]
sub edx, eax
sar edx, 1
push edx
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], bl
call fcn.0044ee30
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x38
ret