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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x623109
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x65afec]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x6230b7
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0
mov eax, dword [0x65afec]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x30]
call fcn.004953b4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0xc]
mov edx, dword [0x65af64]
mov edx, dword [edx]
mov eax, dword [0x65b60c]
mov eax, dword [eax]
call fcn.00639184
test al, al
je 0x6230ab
mov edx, dword [ebp - 0x30]
mov al, 0xb
call fcn.0063ee6c
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x20]
call fcn.00638d60
mov eax, 0x623124
call fcn.005faf10
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x622880
mov eax, dword [0x65b630]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
call fcn.0063cb34
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x18]
call fcn.005f214c
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0x11
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0x11
lea edx, [ebp - 0x54]
mov ecx, 1
mov eax, 0x62315c
call fcn.005fb194
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
call fcn.0063cb34
cmp dword [ebp - 4], 0
je 0x6228ed
mov eax, dword [ebp - 4]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, 0x623180
call fcn.005fb194
mov eax, dword [0x65b53c]
movzx eax, byte [eax]
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 4
je 0x622915
cmp byte [ebp - 0x29], 1
je 0x622915
mov eax, 0x6231ac
call fcn.005faf10
mov byte [ebp - 0x29], 1
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 8
je 0x622946
mov eax, dword [0x65afd4]
cmp byte [eax], 0
jne 0x622932
mov eax, 0x6231f0
call fcn.005f1eec
cmp byte [ebp - 0x29], 2
je 0x622946
mov eax, 0x623278
call fcn.005faf10
mov byte [ebp - 0x29], 2
mov byte [ebp - 0x31], 0
xor edx, edx
push ebp
push 0x622f6c
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x40
je 0x62299d
mov eax, dword [ebp - 0x10]
call fcn.00622540
test al, al
je 0x622993
mov eax, 0x6232bc
call fcn.005faf10
mov eax, dword [ebp - 0x10]
call fcn.00408d1c
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.0059b74c
mov bl, 1
jmp 0x62299d
mov eax, 0x6232ec
call fcn.005faf10
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x40
je 0x6229c6
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3e], 0
jne 0x6229c6
test bl, bl
je 0x622f62
mov eax, 0x623338
call fcn.005faf10
jmp 0x622f62
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x80
je 0x622a3d
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3e], 0
jne 0x622a3d
push 0
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00408d1c
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.0059b68c
test eax, eax
jne 0x622a2e
mov eax, 0x623380
call fcn.005faf10
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, 0x6233b4
call fcn.005faf10
jmp 0x622f62
mov eax, 0x623400
call fcn.005faf10
jmp 0x622f62
mov eax, dword [ebp - 0x44]
movzx eax, word [eax + 0x3c]
cmp ax, 0xffff
je 0x622a5d
movsx eax, ax
push eax
movzx eax, byte [ebp - 0x29]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.0062256c
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 2
jne 0x622af6
mov eax, 0x62345c
call fcn.005faf10
push 0
push 0
push 0
push 3
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00408d1c
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.0059b654
mov ebx, eax
test ebx, ebx
jne 0x622add
cmp dword [ebp - 0x20], 1
jne 0x622b5a
mov eax, dword [ebp - 0x44]
cmp word [eax + 0x3c], 0xffff
je 0x622b5a
mov eax, 0x6234a4
call fcn.005faf10
mov eax, dword [ebp - 0x44]
movsx eax, word [eax + 0x3c]
push eax
movzx eax, byte [ebp - 0x29]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.0062256c
jmp 0x622b5a
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne 0x622b5a
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov al, 1
call fcn.0061c11c
jmp 0x622b5a
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3e], 0
je 0x622b4b
mov eax, 0x623510
call fcn.005faf10
push 0
push 3
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00408d1c
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.0059b68c
mov ebx, eax
test ebx, ebx
je 0x622b5a
cmp ebx, 2
je 0x622b5a
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne 0x622b5a
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov al, 2
call fcn.0061c11c
jmp 0x622b5a
mov eax, 0x623540
call fcn.005faf10
mov ebx, 2
test ebx, ebx
jne 0x622f62
xor edx, edx
push ebp
push 0x622f5b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x80
je 0x622b95
mov eax, 0x623380
call fcn.005faf10
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3e], 0
je 0x622f25
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 1
je 0x622bc5
mov eax, dword [ebp - 4]
call fcn.00408d1c
mov edx, eax
mov eax, dword [ebp - 0x1c]
call fcn.0059b5cc
test al, al
jne 0x622f25
mov eax, 0x6235f4
call fcn.005faf10
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax + 0x3e]
movzx edx, al
cmp edx, 6
ja case.0x622be2.0
jmp dword [edx*4 + 0x622be9]
mov ebx, 1
mov edx, eax
sub dl, 2
je 0x622c18
sub dl, 3
je 0x622c1f
jmp 0x622c24
mov ebx, 2
jmp 0x622c24
mov ebx, 7
cmp al, 5
je 0x622cc8
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 8]
mov ecx, 1
mov eax, 0x623640
call fcn.00409350
test eax, eax
je 0x622c5e
mov eax, dword [ebp - 4]
call fcn.00408d1c
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0059b5b4
test al, al
jne 0x622c66
lea eax, [ebp - 0xc]
call fcn.00407c58
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x20
je 0x622c9e
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x622c9e
cmp dword [ebp - 0x24], 1
je 0x622c9b
cmp dword [ebp - 0x24], 2
jne 0x622c9e
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 8]
push eax
mov eax, 0x623660
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.0063cb58
jmp 0x622d61
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 8]
mov ecx, 1
mov eax, 0x623640
call fcn.00409350
test eax, eax
je 0x622cfa
mov eax, dword [ebp - 4]
call fcn.00408d1c
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0059b5c0
test al, al
jne 0x622d02
lea eax, [ebp - 0xc]
call fcn.00407c58
lea eax, [ebp - 8]
push eax
mov eax, 0x623660
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x50], eax
mov eax, 0x62367c
mov dword [ebp - 0x4c], eax
mov eax, 0x623694
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
mov ecx, 3
call fcn.0063cb58
cmp dword [ebp - 8], 0
je 0x622d61
mov eax, dword [ebp - 8]
test eax, eax
je 0x622d49
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp word [edx + eax*2 - 2], 0
je 0x622d61
lea eax, [ebp - 8]
mov edx, 0x623694
call fcn.00408f18
mov esi, dword [ebp - 8]
test esi, esi
je 0x622d6d
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00408d1c
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x622be2.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x622be2.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0061c11c
jmp case.0x622be2.0
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
call fcn.0063cb34
mov eax, dword [ebp - 0x64]
call fcn.00422310
mov dword [ebp - 0x28], eax
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x622be2.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x622be2.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0061c11c
jmp case.0x622be2.0
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
call fcn.0063cb34
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x3c]
call fcn.0059d4a4
test al, al
jne 0x622e41
mov eax, 0x6236a4
call fcn.005f1eec
push 8
lea eax, [ebp - 0x3c]
push eax
push 0xb
push 0
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x622be2.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x622be2.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0061c11c
jmp case.0x622be2.0
lea eax, [ebp - 0x14]
call fcn.00407c7c
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
test eax, eax
je 0x622e9e
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x622ed0
mov esi, 1
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x44]
mov edx, dword [edx + 8]
movzx edx, word [edx + esi*2 - 2]
mov ecx, 0
call fcn.0040838c
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x14]
call fcn.00408490
inc esi
dec ebx
jne 0x622ea9
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x622edc
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 0x14]
call fcn.0040870c
push eax
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x622be2.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x622be2.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0061c11c
mov eax, 0x6236ec
call fcn.005faf10
jmp 0x622f44
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x80
je 0x622f3a
mov eax, 0x6233b4
call fcn.005faf10
jmp 0x622f44
mov eax, 0x623748
call fcn.005faf10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x622f62
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x622fc2
cmp byte [ebp - 0x31], 0
jne 0x622946
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 8
je 0x623004
mov eax, dword [ebp - 0x10]
call fcn.00622540
test al, al
je 0x623004
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
push 0
movzx ecx, byte [ebp - 0x29]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dx, 0x86
call fcn.00617d84
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x10
je 0x62303c
mov eax, dword [ebp - 0x10]
call fcn.00622540
test al, al
je 0x62303c
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
push 0
movzx ecx, byte [ebp - 0x29]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dx, 0x88
call fcn.00617d84
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 2
je 0x62306e
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push eax
push 1
movzx ecx, byte [ebp - 0x29]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dx, 0x89
call fcn.00617d84
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 4
je 0x6230a0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push eax
push 1
movzx ecx, byte [ebp - 0x29]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dx, 0x87
call fcn.00617d84
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x1c]
call fcn.00638da4
inc dword [ebp - 0x30]
dec dword [ebp - 0x40]
jne 0x6227fe
mov eax, 0x3e8
call fcn.0061b690
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x623110
lea eax, [ebp - 0x7c]
call fcn.00407c58
lea eax, [ebp - 0x6c]
call fcn.00407c7c
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00407cb8
lea eax, [ebp - 0x58]
call fcn.00407c58
lea eax, [ebp - 0x14]
call fcn.00407c7c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407cb8
ret