Function at 0x10022200
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa6c
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0xa3c]
mov dword [ebp - 0xa48], 0
push eax
push 0x2001f
xor esi, esi
mov dword [ebp - 0xa54], 4
push esi
push 0x10003710
push Ordinal_3
mov dword [ebp - 0xa50], 4
mov dword [ebp - 0xa44], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 6
jne 0x1002227b
lea eax, [ebp - 0xa3c]
push eax
push 0x2001f
push esi
push 0x10003710
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100224ec
lea eax, [ebp - 0xa40]
push eax
push 0x2001f
push 0
push 0x100037c0
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 6
jne 0x100222c4
lea eax, [ebp - 0xa40]
push eax
push 0x2001f
push 0
push 0x100037c0
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100224e0
lea eax, [ebp - 0xa50]
push eax
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0xa54]
push eax
push 0
push 0x10003820
push dword [ebp - 0xa40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10022499
lea eax, [ebp - 0xa68]
mov dword [ebp - 0xa4c], 0x105
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0xa3c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10022499
jmp 0x10022340
push 0x104
lea eax, [ebp - 0x830]
inc esi
push eax
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0xa60]
push eax
lea eax, [ebp - 0xa58]
push eax
lea eax, [ebp - 0x218]
push 0x10003730
push eax
call dword [sym.imp.msvcrt.dll_swscanf_s]
add esp, 0x1c
cmp eax, 4
jne 0x1002245f
push dword [ebp - 0xa58]
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
test eax, eax
jne 0x10022459
push 0x100039e0
lea eax, [ebp - 0x218]
push eax
push 0x100021b4
lea eax, [ebp - 0x628]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
lea eax, [ebp - 0x628]
push eax
push 0x100036ec
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x100021b4
lea eax, [ebp - 0xa38]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x38
lea eax, [ebp - 0xa38]
push eax
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x420]
push eax
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x218]
push eax
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xa3c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0xa48]
test eax, eax
je 0x1002245f
dec eax
mov dword [ebp - 0xa48], eax
jmp 0x1002245f
inc dword [ebp - 0xa44]
lea eax, [ebp - 0xa68]
mov dword [ebp - 0xa4c], 0x105
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp - 0xa3c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10022340
push dword [ebp - 0xa50]
lea eax, [ebp - 0xa44]
push eax
push 4
push 0
push 0x10003820
push dword [ebp - 0xa40]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xa40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa44], 0
jne 0x100224e0
push 0x100037c0
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0xa3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003a750
mov esp, ebp
pop ebp
ret