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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x47426b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x49d38c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x474236
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [0x49d38c]
call fcn.0040b24c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0xc]
mov edx, dword [0x49d3dc]
mov eax, dword [0x49d3d4]
call fcn.004799f4
test al, al
je 0x47422a
mov edx, dword [ebp - 0x30]
mov al, 0xb
call fcn.0047e594
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20]
call fcn.00479638
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
call fcn.0047c648
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
call fcn.0047c648
mov al, byte [0x49ac7c]
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 4
je 0x473be4
mov byte [ebp - 0x29], 1
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 8
je 0x473c04
cmp byte [0x49d43e], 0
jne 0x473c00
mov eax, 0x474284
call fcn.00453344
mov byte [ebp - 0x29], 2
mov byte [ebp - 0x31], 0
xor edx, edx
push ebp
push 0x474111
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x40
je 0x473c43
mov eax, dword [ebp - 0x28]
call fcn.00473948
test al, al
je 0x473c43
mov eax, dword [ebp - 0x28]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.0042dec0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x40
je 0x473c59
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
je 0x474107
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x80
je 0x473cb3
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
jne 0x473cb3
push 0
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.0042de1c
test eax, eax
jne 0x474107
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x474107
mov eax, dword [ebp - 0x3c]
movsx eax, word [eax + 0x3c]
push eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.0047396c
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 2
jne 0x473d46
push 0
push 0
push 0
push 3
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.0042dde4
mov ebx, eax
test ebx, ebx
jne 0x473d2a
cmp dword [ebp - 0x10], 1
jne 0x473d9b
mov eax, dword [ebp - 0x3c]
movsx eax, word [eax + 0x3c]
push eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.0047396c
jmp 0x473d9b
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne 0x473d9b
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, 1
call fcn.0046ee78
jmp 0x473d9b
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
je 0x473d96
push 0
push 3
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.0042de1c
mov ebx, eax
test ebx, ebx
je 0x473d9b
cmp ebx, 2
je 0x473d9b
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne 0x473d9b
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, 2
call fcn.0046ee78
jmp 0x473d9b
mov ebx, 2
test ebx, ebx
jne 0x474107
xor edx, edx
push ebp
push 0x474100
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x80
je 0x473dcc
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
je case.0x473e0f.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 1
je 0x473dfc
mov eax, dword [ebp - 0x14]
call fcn.00403738
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0042dd64
test al, al
jne case.0x473e0f.0
mov eax, dword [ebp - 0x3c]
mov al, byte [eax + 0x3e]
xor edx, edx
mov dl, al
cmp edx, 6
ja case.0x473e0f.0
jmp dword [edx*4 + 0x473e16]
mov ebx, 1
mov edx, eax
sub dl, 2
je 0x473e45
sub dl, 3
je 0x473e4c
jmp 0x473e51
mov ebx, 2
jmp 0x473e51
mov ebx, 7
cmp al, 5
je 0x473ef0
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 8]
mov eax, 0x4742cc
call fcn.0040385c
test eax, eax
je 0x473e86
mov eax, dword [ebp - 0x14]
call fcn.00403738
mov edx, eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042dd4c
test al, al
jne 0x473e8e
lea eax, [ebp - 0x1c]
call fcn.00403400
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x20
je 0x473ec6
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x473ec6
cmp dword [ebp - 0x20], 1
je 0x473ec3
cmp dword [ebp - 0x20], 2
jne 0x473ec6
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
mov eax, 0x4742e0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x44]
mov ecx, 1
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.0047c66c
jmp 0x473f7f
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 8]
mov eax, 0x4742cc
call fcn.0040385c
test eax, eax
je 0x473f1d
mov eax, dword [ebp - 0x14]
call fcn.00403738
mov edx, eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042dd58
test al, al
jne 0x473f25
lea eax, [ebp - 0x1c]
call fcn.00403400
lea eax, [ebp - 0x18]
push eax
mov eax, 0x4742e0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov eax, 0x4742f0
mov dword [ebp - 0x4c], eax
mov eax, 0x474300
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x54]
mov ecx, 3
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.0047c66c
cmp dword [ebp - 0x18], 0
je 0x473f7f
mov eax, dword [ebp - 0x18]
call fcn.00403574
mov edx, dword [ebp - 0x18]
cmp byte [edx + eax - 1], 0
je 0x473f7f
lea eax, [ebp - 0x18]
mov edx, 0x474300
call fcn.0040357c
mov eax, dword [ebp - 0x18]
call fcn.00403574
inc eax
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403738
push eax
push ebx
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x473e0f.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x473e0f.0
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
xor eax, eax
call fcn.0046ee78
jmp case.0x473e0f.0
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.0047c648
mov eax, dword [ebp - 0x58]
call fcn.00406d98
mov dword [ebp - 0x24], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x473e0f.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x473e0f.0
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
xor eax, eax
call fcn.0046ee78
jmp case.0x473e0f.0
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.0047c648
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 8]
call fcn.00430c58
test al, al
jne 0x47405d
mov eax, 0x47430c
call fcn.00453344
push 8
lea eax, [ebp - 8]
push eax
push 0xb
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x473e0f.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x473e0f.0
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
xor eax, eax
call fcn.0046ee78
jmp case.0x473e0f.0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.00403574
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.00403738
push eax
push 3
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x473e0f.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x473e0f.0
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
xor eax, eax
call fcn.0046ee78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474107
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x474139
cmp byte [ebp - 0x31], 0
jne 0x473c04
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 8
je 0x47417d
mov eax, dword [ebp - 0x28]
call fcn.00473948
test al, al
je 0x47417d
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x29]
mov dx, 0x86
call fcn.0045a3b4
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x10
je 0x4741b7
mov eax, dword [ebp - 0x28]
call fcn.00473948
test al, al
je 0x4741b7
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x29]
mov dx, 0x88
call fcn.0045a3b4
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 2
je 0x4741eb
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x29]
mov dx, 0x89
call fcn.0045a3b4
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 4
je 0x47421f
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x29]
mov dx, 0x87
call fcn.0045a3b4
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x1c]
call fcn.0047967c
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x473b5c
mov eax, 0x3e8
call fcn.0046e614
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474272
lea eax, [ebp - 0x58]
call fcn.00403400
lea eax, [ebp - 0x28]
call fcn.00403400
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403420
ret