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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x46e115
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x49321c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x46e0e0
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [0x49321c]
call fcn.0040b3e4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov edx, dword [0x493268]
mov eax, dword [0x493260]
call fcn.00472c88
test al, al
je 0x46e0d4
mov edx, dword [ebp - 0x28]
mov al, 0xb
call fcn.00476edc
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x20]
call fcn.0047291c
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
call fcn.00475650
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
call fcn.00475650
mov al, byte [0x491b44]
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x34]
test byte [eax + 0x40], 4
je 0x46db10
mov byte [ebp - 0x21], 1
mov eax, dword [ebp - 0x34]
test byte [eax + 0x40], 8
je 0x46db30
cmp byte [0x49327c], 0
jne 0x46db2c
mov eax, 0x46e12c
call fcn.00451ac0
mov byte [ebp - 0x21], 2
mov byte [ebp - 0x29], 0
xor edx, edx
push ebp
push 0x46dfbb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x34]
test byte [eax + 0x3f], 0x40
je 0x46db6f
mov eax, dword [ebp - 0x20]
call fcn.0046d874
test al, al
je 0x46db6f
mov eax, dword [ebp - 0x20]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0042dce8
mov eax, dword [ebp - 0x34]
test byte [eax + 0x3f], 0x40
je 0x46db85
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x3e], 0
je 0x46dfb1
mov eax, dword [ebp - 0x34]
test byte [eax + 0x3f], 0x80
je 0x46dbdf
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x3e], 0
jne 0x46dbdf
push 0
push 2
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0042dc44
test eax, eax
jne 0x46dfb1
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x46dfb1
mov eax, dword [ebp - 0x34]
movsx eax, word [eax + 0x3c]
push eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0046d898
mov eax, dword [ebp - 0x34]
test byte [eax + 0x40], 2
jne 0x46dc72
push 0
push 0
push 0
push 3
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0042dc0c
mov ebx, eax
test ebx, ebx
jne 0x46dc56
cmp dword [ebp - 8], 1
jne 0x46dcc7
mov eax, dword [ebp - 0x34]
movsx eax, word [eax + 0x3c]
push eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0046d898
jmp 0x46dcc7
mov eax, dword [ebp - 0x34]
test byte [eax + 0x40], 1
jne 0x46dcc7
push ebx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov al, 1
call fcn.00469490
jmp 0x46dcc7
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x3e], 0
je 0x46dcc2
push 0
push 3
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0042dc44
mov ebx, eax
test ebx, ebx
je 0x46dcc7
cmp ebx, 2
je 0x46dcc7
mov eax, dword [ebp - 0x34]
test byte [eax + 0x40], 1
jne 0x46dcc7
push ebx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
mov al, 2
call fcn.00469490
jmp 0x46dcc7
mov ebx, 2
test ebx, ebx
jne 0x46dfb1
xor edx, edx
push ebp
push 0x46dfaa
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x34]
test byte [eax + 0x3f], 0x80
je 0x46dcf8
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x3e], 0
je 0x46df93
mov eax, dword [ebp - 0x34]
test byte [eax + 0x3f], 1
je 0x46dd28
mov eax, dword [ebp - 0xc]
call fcn.00403738
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0042db8c
test al, al
jne 0x46df93
mov eax, dword [ebp - 0x34]
mov al, byte [eax + 0x3e]
mov edx, eax
dec edx
sub dl, 2
jb 0x46dd4c
je 0x46deee
dec dl
je 0x46df45
dec dl
jne 0x46df93
mov ebx, 1
mov edx, eax
sub dl, 2
je 0x46dd5f
sub dl, 3
je 0x46dd66
jmp 0x46dd6b
mov ebx, 2
jmp 0x46dd6b
mov ebx, 7
cmp al, 5
je 0x46de0a
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 8]
mov eax, 0x46e174
call fcn.0040385c
test eax, eax
je 0x46dda0
mov eax, dword [ebp - 0xc]
call fcn.00403738
mov edx, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0042db74
test al, al
jne 0x46dda8
lea eax, [ebp - 0x14]
call fcn.00403400
mov eax, dword [ebp - 0x34]
test byte [eax + 0x3f], 0x20
je 0x46dde0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x46dde0
cmp dword [ebp - 0x18], 1
je 0x46dddd
cmp dword [ebp - 0x18], 2
jne 0x46dde0
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
mov eax, 0x46e188
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
call fcn.00475670
jmp 0x46de99
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 8]
mov eax, 0x46e174
call fcn.0040385c
test eax, eax
je 0x46de37
mov eax, dword [ebp - 0xc]
call fcn.00403738
mov edx, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0042db80
test al, al
jne 0x46de3f
lea eax, [ebp - 0x14]
call fcn.00403400
lea eax, [ebp - 0x10]
push eax
mov eax, 0x46e188
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov eax, 0x46e198
mov dword [ebp - 0x44], eax
mov eax, 0x46e1a8
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x4c]
mov ecx, 3
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
call fcn.00475670
cmp dword [ebp - 0x10], 0
je 0x46de99
mov eax, dword [ebp - 0x10]
call fcn.00403574
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0
je 0x46de99
lea eax, [ebp - 0x10]
mov edx, 0x46e1a8
call fcn.0040357c
mov eax, dword [ebp - 0x10]
call fcn.00403574
inc eax
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403738
push eax
push ebx
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x46df93
mov eax, dword [ebp - 0x34]
test byte [eax + 0x40], 1
jne 0x46df93
push ebx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
xor eax, eax
call fcn.00469490
jmp 0x46df93
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
call fcn.00475650
mov eax, dword [ebp - 0x50]
call fcn.00406d38
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x46df93
mov eax, dword [ebp - 0x34]
test byte [eax + 0x40], 1
jne 0x46df93
push ebx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
xor eax, eax
call fcn.00469490
jmp 0x46df93
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
call fcn.00403574
push eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
call fcn.00403738
push eax
push 3
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x46df93
mov eax, dword [ebp - 0x34]
test byte [eax + 0x40], 1
jne 0x46df93
push ebx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x38]
xor eax, eax
call fcn.00469490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dfb1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46dfe3
cmp byte [ebp - 0x29], 0
jne 0x46db30
mov eax, dword [ebp - 0x34]
test byte [eax + 0x3f], 8
je 0x46e027
mov eax, dword [ebp - 0x20]
call fcn.0046d874
test al, al
je 0x46e027
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x86
call fcn.00457ce4
mov eax, dword [ebp - 0x34]
test byte [eax + 0x3f], 0x10
je 0x46e061
mov eax, dword [ebp - 0x20]
call fcn.0046d874
test al, al
je 0x46e061
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x88
call fcn.00457ce4
mov eax, dword [ebp - 0x34]
test byte [eax + 0x3f], 2
je 0x46e095
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x89
call fcn.00457ce4
mov eax, dword [ebp - 0x34]
test byte [eax + 0x3f], 4
je 0x46e0c9
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x87
call fcn.00457ce4
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x1c]
call fcn.00472948
inc dword [ebp - 0x28]
dec dword [ebp - 0x30]
jne 0x46da88
mov eax, 0x3e8
call fcn.00468c58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e11c
lea eax, [ebp - 0x50]
call fcn.00403400
lea eax, [ebp - 0x20]
call fcn.00403400
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403420
ret