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

Disassembly:
push 0xffffffffffffffff
push 0x440111
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x459310]
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.00419470
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.0040d310
mov byte [esp + 0x44], 2
call fcn.0041fe90
test eax, eax
mov esi, dword [esp + 0x50]
je 0x42303c
mov eax, esi
sub eax, 0x24
je 0x422fbb
sub eax, edi
je 0x422f91
sub eax, edi
jne 0x42303c
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.00419cb0
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 3
call fcn.004195a0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x422ee6
mov esi, dword [esp + 0x4c]
push 0x443cfc
mov ecx, esi
call fcn.00419cb0
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.00419480
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 1
call fcn.0040d240
jmp 0x423105
lea edx, [esp + 0x20]
push edx
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x208
call fcn.0040d070
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 0x422f50
lea edx, [esp + 0x20]
push edx
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x208
call fcn.0040d070
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 0x422f7c
mov esi, dword [esp + 0x4c]
push 0x443cfc
mov ecx, esi
call fcn.00419cb0
mov dword [esp + 0x1c], 1
jmp 0x422ec5
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.00419480
mov edi, 1
jmp 0x422fe3
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x422fa3
mov ecx, dword [esp + 0x34]
sub ecx, eax
sar ecx, 1
jne 0x422fad
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 0x422fe3
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x422fcd
mov edx, dword [esp + 0x34]
sub edx, eax
sar edx, 1
jne 0x422fd7
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 0x422ff5
mov ecx, dword [esp + 0x34]
sub ecx, eax
sar ecx, 1
jne 0x422fff
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00419d40
mov esi, dword [esp + 0x4c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00419d00
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x44], 1
je 0x4230f9
mov ecx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 1
push ecx
jmp 0x4230ee
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4230c4
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 0x4230af
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x423076
mov ecx, dword [esp + 0x34]
sub ecx, eax
sar ecx, 1
jne 0x423080
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 0x4230af
push ebx
lea ecx, [esp + 0x30]
call fcn.0040d070
push eax
lea ecx, [esp + 0x14]
call fcn.00419d40
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00419680
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x4230c4
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.00419d00
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x44], 1
je 0x4230f9
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.00419480
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