Function at 0x422400
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x12c
mov eax, dword [0x45c530]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x13c]
push edi
mov edi, dword [esp + 0x148]
mov dword [esp + 0x14], edi
call dword [fcn.0045d9c8]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x39]
push ebx
push eax
xor ebp, ebp
mov byte [esp + 0x40], bl
call fcn.0042c350
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0x104
je 0x42264e
cmp edi, ebx
je 0x42264e
mov edi, dword [esp + 0x144]
lea ecx, [edi - 1]
push ecx
push 0x78
push esi
call fcn.0042c350
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0xf003f
push ebx
push str.CLSID4A27A907_4DBE_438b_B827_573144ACA3DEImplemented_Categories5B44B39A_2618_4685_8896_FAA8D9FEF1F6
push SysReAllocString
mov byte [esi + edi - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4224d3
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.CLSID4A27A907_4DBE_438b_B827_573144ACA3DEImplemented_Categories5B44B39A_2618_4685_8896_FAA8D9FEF1F6
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42263f
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x44c793
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42252b
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x422500
sub eax, edx
cmp eax, 0x26
jb 0x42252b
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x422517
sub eax, edx
cmp eax, 0x27
jbe 0x4225ce
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x24]
push ecx
push 0x4511e8
call fcn.0040103e
add esp, 8
test eax, eax
jne 0x42259f
movzx edx, byte [esp + 0x33]
movzx eax, byte [esp + 0x32]
movzx ecx, byte [esp + 0x31]
push edx
movzx edx, byte [esp + 0x34]
push eax
movzx eax, byte [esp + 0x37]
push ecx
movzx ecx, byte [esp + 0x3a]
push edx
movzx edx, byte [esp + 0x3d]
push eax
movzx eax, byte [esp + 0x40]
push ecx
movzx ecx, word [esp + 0x42]
push edx
movzx edx, word [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
lea ecx, [esp + 0x60]
push str.4_08lX__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push ecx
call fcn.004223b0
add esp, 0x34
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4225a6
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
push 1
push ebx
push 0x44c793
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x42263f
mov al, byte [esp + 0x34]
cmp al, 0x33
je 0x4225f9
cmp al, 0x34
je 0x4225f9
push 0x26
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.0042ec30
mov edx, dword [esp + 0x20]
mov byte [esi + 0x26], bl
add esp, 0xc
mov dword [edx], 1
jmp 0x42262e
push 0x26
lea eax, [esp + 0x39]
push eax
push esi
call fcn.0042ec30
mov al, byte [esp + 0x40]
add esp, 0xc
cmp al, 0x33
mov byte [esi + 0x26], bl
jne 0x422620
mov ecx, dword [esp + 0x14]
mov dword [ecx], 3
jmp 0x42262e
cmp al, 0x34
jne 0x42262e
mov edx, dword [esp + 0x14]
mov dword [edx], 4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [0x45ded0], ecx
mov ebp, 1
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42264e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c3ca
add esp, 0x12c
ret 0xc