Function at 0x422040
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x3064
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x305c], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x2760
push dword [0x4e6030]
call esi
push 0x27c0
push dword [0x4e6030]
mov edi, eax
mov dword [esp + 0x20], edi
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, eax
push 0
push 0
push 0x1009
push edi
call esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0xf013f
push 0
push str.SoftwareCLASSESCLSID_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatW]
test eax, eax
jne 0x4221f0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x70], ax
lea eax, [esp + 0x72]
push eax
call fcn.0048fb10
add esp, 0xc
mov dword [esp + 0x14], 0x104
xor edi, edi
lea eax, [esp + 0x14]
push edi
push edi
push edi
push edi
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4221e2
inc edi
cmp dword [0x4cc1d4], 0
je 0x4226c8
push str.Wow6432Node
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4221ba
push 0x7fe
push eax
mov word [esp + 0x870], ax
lea eax, [esp + 0x872]
push eax
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x868]
push str.SoftwareCLASSESCLSID_
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0
push 0
push 0x1004
push dword [esp + 0x24]
mov dword [esp + 0x24], 0x104
call esi
mov dword [0x4d6b8c], eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x86c]
mov dword [0x4d6b90], 0
push eax
call ebx
push 0x4d6b88
push 0
push 0x104d
push dword [esp + 0x24]
lea eax, [esp + 0x878]
mov dword [0x4d6b9c], eax
call esi
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x422110
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x1870], ax
lea eax, [esp + 0x1872]
push eax
call fcn.0048fb10
add esp, 0xc
xor eax, eax
mov word [esp + 0x2068], ax
push 0x7fe
push eax
lea eax, [esp + 0x2072]
push eax
call fcn.0048fb10
add esp, 0xc
xor eax, eax
mov word [esp + 0x1068], ax
push 0x7fe
push eax
lea eax, [esp + 0x1072]
push eax
call fcn.0048fb10
add esp, 0xc
push 0
push 0
push 0x1004
push edi
call esi
test eax, eax
je 0x4226af
nop dword [eax]
nop dword [eax + eax]
cmp dword [0x4cc1d4], 0
je 0x4226c8
lea eax, [esp + 0x1868]
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x1073
push edi
mov dword [esp + 0x48], 0x400
call esi
push 0
push 0
push 0x1008
push edi
call esi
lea eax, [esp + 0x1868]
push eax
lea eax, [esp + 0x206c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.ProgID
lea eax, [esp + 0x186c]
push eax
call ebx
push str.VersionIndependentProgID
lea eax, [esp + 0x206c]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
push 0xf013f
push 0
lea eax, [esp + 0x1874]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42249d
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x400
push eax
lea eax, [esp + 0x286c]
mov dword [esp + 0x1c], 0x400
push eax
lea eax, [esp + 0x64]
push eax
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x87c]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push str.SoftwareCLASSES_
lea eax, [esp + 0x106c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x2868]
push eax
lea eax, [esp + 0x106c]
push eax
call ebx
lea eax, [esp + 0x60]
push eax
push 0x20119
push 0
lea eax, [esp + 0x1074]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x422493
mov eax, dword [0x4b4e18]
movq xmm0, qword [str.HKLM:]
mov dword [esp + 0x70], eax
mov ax, word [0x4b4e1c]
push 0x7f2
mov word [esp + 0x78], ax
lea eax, [esp + 0x7a]
push 0
push eax
movq qword [esp + 0x74], xmm0
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x1868]
push eax
lea eax, [esp + 0x6c]
push eax
call ebx
lea ecx, [esp + 0x68]
call fcn.0041da00
test eax, eax
jne 0x422493
push eax
push eax
push 0x1004
push ebp
mov dword [0x4d6b68], 4
call esi
push 0x4d6b4c
push 0
mov dword [0x4d6b50], eax
lea eax, [esp + 0x70]
push 0x104d
push ebp
mov dword [0x4d6b54], 0
mov dword [0x4d6b60], eax
call esi
mov edx, 0x4b545c
mov dword [esp + 0x28], 1
mov ecx, 0x4b3c0c
call fcn.00478640
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push dword [0x4d6b50]
push 0x1074
push ebp
call esi
mov edx, 0x4b545c
mov dword [esp + 0x28], 2
mov ecx, 0x4b3c0c
call fcn.00478640
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push dword [0x4d6b50]
push 0x1074
push ebp
call esi
push 0x1869f
push 0
push 0x1014
push ebp
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0xf013f
push 0
lea eax, [esp + 0x2074]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42269b
push 0x7fe
push eax
mov word [esp + 0x2870], ax
lea eax, [esp + 0x2872]
push eax
call fcn.0048fb10
add esp, 0xc
xor eax, eax
mov word [esp + 0x868], ax
push 0x7fe
push eax
lea eax, [esp + 0x872]
push eax
call fcn.0048fb10
add esp, 0xc
mov dword [esp + 0x14], 0x400
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x400
push eax
lea eax, [esp + 0x86c]
push eax
lea eax, [esp + 0x6c]
push eax
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x287c]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push str.SoftwareCLASSES_
lea eax, [esp + 0x106c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x868]
push eax
lea eax, [esp + 0x106c]
push eax
call ebx
lea eax, [esp + 0x1c]
push eax
push 0x20119
push 0
lea eax, [esp + 0x1074]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x422691
mov eax, dword [0x4b4e18]
movq xmm0, qword [str.HKLM:]
mov dword [esp + 0x70], eax
mov ax, word [0x4b4e1c]
push 0x7f2
mov word [esp + 0x78], ax
lea eax, [esp + 0x7a]
push 0
push eax
movq qword [esp + 0x74], xmm0
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x2068]
push eax
lea eax, [esp + 0x6c]
push eax
call ebx
lea ecx, [esp + 0x68]
call fcn.0041da00
test eax, eax
jne 0x422687
push eax
push eax
push 0x1004
push ebp
mov dword [0x4d6b68], 4
call esi
push 0x4d6b4c
push 0
mov dword [0x4d6b50], eax
lea eax, [esp + 0x70]
push 0x104d
push ebp
mov dword [0x4d6b54], 0
mov dword [0x4d6b60], eax
call esi
mov edx, 0x4b545c
mov dword [esp + 0x28], 1
mov ecx, 0x4b3c0c
call fcn.00478640
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push dword [0x4d6b50]
push 0x1074
push ebp
call esi
mov edx, 0x4b545c
mov dword [esp + 0x28], 2
mov ecx, 0x4b3c0c
call fcn.00478640
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push dword [0x4d6b50]
push 0x1074
push ebp
call esi
push 0x1869f
push 0
push 0x1014
push ebp
call esi
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x1004
push edi
call esi
test eax, eax
jne 0x422270
mov ecx, dword [esp + 0x306c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x3064
ret
call fcn.00422b90
int3