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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x54], 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 0x49284b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4b9698]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x492816
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
mov eax, dword [0x4b9698]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.00410df0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
mov edx, dword [0x4b9640]
mov edx, dword [edx]
mov eax, dword [0x4b9a68]
mov eax, dword [eax]
call fcn.00497820
test al, al
je 0x49280a
mov edx, dword [ebp - 0x28]
mov al, 0xb
call fcn.0049bab0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x20]
call fcn.004974b4
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
call fcn.0049a230
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
call fcn.0049a230
mov eax, dword [0x4b99e4]
mov al, byte [eax]
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x38]
test byte [eax + 0x40], 4
je 0x49224c
mov byte [ebp - 0x21], 1
mov eax, dword [ebp - 0x38]
test byte [eax + 0x40], 8
je 0x49226d
mov eax, dword [0x4b9680]
cmp byte [eax], 0
jne 0x492269
mov eax, 0x492864
call fcn.00475000
mov byte [ebp - 0x21], 2
xor eax, eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x29], 0
inc dword [ebp - 0x30]
xor edx, edx
push ebp
push 0x492700
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x38]
test byte [eax + 0x3f], 0x40
je 0x4922b4
mov eax, dword [ebp - 0x20]
call fcn.00491fa0
test al, al
je 0x4922b4
mov eax, dword [ebp - 0x20]
call fcn.00403efc
mov ecx, eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0044eda8
mov eax, dword [ebp - 0x38]
test byte [eax + 0x3f], 0x40
je 0x4922ca
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x3e], 0
je 0x4926f6
mov eax, dword [ebp - 0x38]
test byte [eax + 0x3f], 0x80
je 0x492324
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x3e], 0
jne 0x492324
push 0
push 2
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403efc
mov ecx, eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0044ed04
test eax, eax
jne 0x4926f6
mov eax, dword [ebp - 0xc]
call fcn.00403efc
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_1
jmp 0x4926f6
mov eax, dword [ebp - 0x38]
movsx eax, word [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
mov al, byte [ebp - 0x21]
call fcn.00491fc4
mov eax, dword [ebp - 0x38]
test byte [eax + 0x40], 2
jne 0x4923b7
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.00403efc
mov ecx, eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0044eccc
mov ebx, eax
test ebx, ebx
jne 0x49239b
cmp dword [ebp - 8], 1
jne 0x49240c
mov eax, dword [ebp - 0x38]
movsx eax, word [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
mov al, byte [ebp - 0x21]
call fcn.00491fc4
jmp 0x49240c
mov eax, dword [ebp - 0x38]
test byte [eax + 0x40], 1
jne 0x49240c
push ebx
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
mov al, 1
call fcn.0048dc3c
jmp 0x49240c
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x3e], 0
je 0x492407
push 0
push 3
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403efc
mov ecx, eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0044ed04
mov ebx, eax
test ebx, ebx
je 0x49240c
cmp ebx, 2
je 0x49240c
mov eax, dword [ebp - 0x38]
test byte [eax + 0x40], 1
jne 0x49240c
push ebx
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
mov al, 2
call fcn.0048dc3c
jmp 0x49240c
mov ebx, 2
test ebx, ebx
jne 0x4926f6
xor edx, edx
push ebp
push 0x4926ef
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x38]
test byte [eax + 0x3f], 0x80
je 0x49243d
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x3e], 0
je 0x4926d8
mov eax, dword [ebp - 0x38]
test byte [eax + 0x3f], 1
je 0x49246d
mov eax, dword [ebp - 0xc]
call fcn.00403efc
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0044ec4c
test al, al
jne 0x4926d8
mov eax, dword [ebp - 0x38]
mov al, byte [eax + 0x3e]
mov edx, eax
dec edx
sub dl, 2
jb 0x492491
je 0x492633
dec dl
je 0x49268a
dec dl
jne 0x4926d8
mov ebx, 1
mov edx, eax
sub dl, 2
je 0x4924a4
sub dl, 3
je 0x4924ab
jmp 0x4924b0
mov ebx, 2
jmp 0x4924b0
mov ebx, 7
cmp al, 5
je 0x49254f
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 8]
mov eax, 0x4928ac
call fcn.00404024
test eax, eax
je 0x4924e5
mov eax, dword [ebp - 0xc]
call fcn.00403efc
mov edx, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0044ec34
test al, al
jne 0x4924ed
lea eax, [ebp - 0x14]
call fcn.00403ab8
mov eax, dword [ebp - 0x38]
test byte [eax + 0x3f], 0x20
je 0x492525
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x492525
cmp dword [ebp - 0x18], 1
je 0x492522
cmp dword [ebp - 0x18], 2
jne 0x492525
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
mov eax, 0x4928c0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.0049a250
jmp 0x4925de
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 8]
mov eax, 0x4928ac
call fcn.00404024
test eax, eax
je 0x49257c
mov eax, dword [ebp - 0xc]
call fcn.00403efc
mov edx, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0044ec40
test al, al
jne 0x492584
lea eax, [ebp - 0x14]
call fcn.00403ab8
lea eax, [ebp - 0x10]
push eax
mov eax, 0x4928c0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
mov eax, 0x4928d0
mov dword [ebp - 0x48], eax
mov eax, 0x4928e0
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 8]
mov ecx, 3
call fcn.0049a250
cmp dword [ebp - 0x10], 0
je 0x4925de
mov eax, dword [ebp - 0x10]
call fcn.00403d38
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0
je 0x4925de
lea eax, [ebp - 0x10]
mov edx, 0x4928e0
call fcn.00403d40
mov eax, dword [ebp - 0x10]
call fcn.00403d38
inc eax
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403efc
push eax
push ebx
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x4926d8
mov eax, dword [ebp - 0x38]
test byte [eax + 0x40], 1
jne 0x4926d8
push ebx
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
xor eax, eax
call fcn.0048dc3c
jmp 0x4926d8
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 8]
call fcn.0049a230
mov eax, dword [ebp - 0x54]
call fcn.00409c1c
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x4926d8
mov eax, dword [ebp - 0x38]
test byte [eax + 0x40], 1
jne 0x4926d8
push ebx
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
xor eax, eax
call fcn.0048dc3c
jmp 0x4926d8
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 8]
call fcn.00403d38
push eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 8]
call fcn.00403efc
push eax
push 3
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x4926d8
mov eax, dword [ebp - 0x38]
test byte [eax + 0x40], 1
jne 0x4926d8
push ebx
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
xor eax, eax
call fcn.0048dc3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4926f6
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x492719
cmp byte [ebp - 0x29], 0
jne 0x492272
mov eax, dword [ebp - 0x38]
test byte [eax + 0x3f], 8
je 0x49275d
mov eax, dword [ebp - 0x20]
call fcn.00491fa0
test al, al
je 0x49275d
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x86
call fcn.0047b480
mov eax, dword [ebp - 0x38]
test byte [eax + 0x3f], 0x10
je 0x492797
mov eax, dword [ebp - 0x20]
call fcn.00491fa0
test al, al
je 0x492797
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x88
call fcn.0047b480
mov eax, dword [ebp - 0x38]
test byte [eax + 0x3f], 2
je 0x4927cb
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x89
call fcn.0047b480
mov eax, dword [ebp - 0x38]
test byte [eax + 0x3f], 4
je 0x4927ff
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x87
call fcn.0047b480
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x1c]
call fcn.004974e0
inc dword [ebp - 0x28]
dec dword [ebp - 0x34]
jne 0x4921bb
mov eax, 0x3e8
call fcn.0048d4d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492852
lea eax, [ebp - 0x54]
call fcn.00403ab8
lea eax, [ebp - 0x20]
call fcn.00403ab8
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403adc
ret