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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 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 0x4daead
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x54fe5c]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4dae63
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [0x54fe5c]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x2c]
call fcn.00424df0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0xc]
mov edx, dword [0x54fde8]
mov edx, dword [edx]
mov eax, dword [0x5503b4]
mov eax, dword [eax]
call fcn.004e17b8
test al, al
je 0x4dae57
mov edx, dword [ebp - 0x2c]
mov al, 0xb
call fcn.004e6f10
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x20]
call fcn.004e13bc
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
call fcn.004e4e90
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
call fcn.004e4e90
mov eax, dword [0x550310]
movzx eax, byte [eax]
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 4
je 0x4da79d
mov byte [ebp - 0x25], 1
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 8
je 0x4da7be
mov eax, dword [0x54fe44]
cmp byte [eax], 0
jne 0x4da7ba
mov eax, 0x4daec8
call fcn.004b67bc
mov byte [ebp - 0x25], 2
mov byte [ebp - 0x2d], 0
xor edx, edx
push ebp
push 0x4dad34
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x40
je 0x4da7fe
mov eax, dword [ebp - 0x10]
call fcn.004da414
test al, al
je 0x4da7fe
mov eax, dword [ebp - 0x10]
call fcn.0040669c
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x25]
call fcn.0047a61c
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x40
je 0x4da814
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x3e], 0
je 0x4dad2a
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x80
je 0x4da86f
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x3e], 0
jne 0x4da86f
push 0
push 2
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040669c
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x25]
call fcn.0047a55c
test eax, eax
jne 0x4dad2a
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4dad2a
mov eax, dword [ebp - 0x40]
movsx eax, word [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ebp - 0x25]
call fcn.004da440
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 2
jne 0x4da905
push 0
push 0
push 0
push 3
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040669c
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x25]
call fcn.0047a524
mov ebx, eax
test ebx, ebx
jne 0x4da8e9
cmp dword [ebp - 0x1c], 1
jne 0x4da95b
mov eax, dword [ebp - 0x40]
movsx eax, word [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ebp - 0x25]
call fcn.004da440
jmp 0x4da95b
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne 0x4da95b
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
mov al, 1
call fcn.004d4a18
jmp 0x4da95b
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x3e], 0
je 0x4da956
push 0
push 3
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040669c
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
movzx eax, byte [ebp - 0x25]
call fcn.0047a55c
mov ebx, eax
test ebx, ebx
je 0x4da95b
cmp ebx, 2
je 0x4da95b
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne 0x4da95b
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
mov al, 2
call fcn.004d4a18
jmp 0x4da95b
mov ebx, 2
test ebx, ebx
jne 0x4dad2a
xor edx, edx
push ebp
push 0x4dad23
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x80
je 0x4da98c
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x3e], 0
je case.0x4da9cf.0
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 1
je 0x4da9bc
mov eax, dword [ebp - 4]
call fcn.0040669c
mov edx, eax
mov eax, dword [ebp - 0x18]
call fcn.0047a49c
test al, al
jne case.0x4da9cf.0
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax + 0x3e]
movzx edx, al
cmp edx, 6
ja case.0x4da9cf.0
jmp dword [edx*4 + 0x4da9d6]
mov ebx, 1
mov edx, eax
sub dl, 2
je 0x4daa05
sub dl, 3
je 0x4daa0c
jmp 0x4daa11
mov ebx, 2
jmp 0x4daa11
mov ebx, 7
cmp al, 5
je 0x4daab2
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 8]
mov eax, 0x4daf50
call fcn.004070bc
test eax, eax
je 0x4daa46
mov eax, dword [ebp - 4]
call fcn.0040669c
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0047a484
test al, al
jne 0x4daa50
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00406664
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x20
je 0x4daa88
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4daa88
cmp dword [ebp - 0x20], 1
je 0x4daa85
cmp dword [ebp - 0x20], 2
jne 0x4daa88
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 8]
push eax
mov eax, 0x4daf70
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.004e4eb0
jmp 0x4dab48
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 8]
mov eax, 0x4daf50
call fcn.004070bc
test eax, eax
je 0x4daadf
mov eax, dword [ebp - 4]
call fcn.0040669c
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0047a490
test al, al
jne 0x4daae9
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00406664
lea eax, [ebp - 8]
push eax
mov eax, 0x4daf70
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x54], eax
mov eax, 0x4daf8c
mov dword [ebp - 0x50], eax
mov eax, 0x4dafa4
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov ecx, 3
call fcn.004e4eb0
cmp dword [ebp - 8], 0
je 0x4dab48
mov eax, dword [ebp - 8]
test eax, eax
je 0x4dab30
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp word [edx + eax*2 - 2], 0
je 0x4dab48
lea eax, [ebp - 8]
mov edx, 0x4dafa4
call fcn.00406a0c
mov esi, dword [ebp - 8]
test esi, esi
je 0x4dab54
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.0040669c
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x4da9cf.0
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne case.0x4da9cf.0
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004d4a18
jmp case.0x4da9cf.0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.004e4e90
mov eax, dword [ebp - 0x5c]
call fcn.0040df1c
mov dword [ebp - 0x24], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x4da9cf.0
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne case.0x4da9cf.0
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004d4a18
jmp case.0x4da9cf.0
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
call fcn.004e4e90
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x38]
call fcn.0047b7bc
test al, al
jne 0x4dac2e
mov eax, 0x4dafb4
call fcn.004b67bc
push 8
lea eax, [ebp - 0x38]
push eax
push 0xb
push 0
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x4da9cf.0
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne case.0x4da9cf.0
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004d4a18
jmp case.0x4da9cf.0
lea eax, [ebp - 0x14]
call fcn.00405444
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
test eax, eax
je 0x4dac8e
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x4dacc0
mov esi, 1
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + 8]
movzx edx, word [edx + esi*2 - 2]
mov ecx, 0
call fcn.00405718
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x14]
call fcn.0040584c
inc esi
dec ebx
jne 0x4dac99
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4daccc
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 0x14]
call fcn.00405c14
push eax
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.0040669c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x4da9cf.0
mov eax, dword [ebp - 0x40]
test byte [eax + 0x40], 1
jne case.0x4da9cf.0
push ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.004d4a18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dad2a
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dad62
cmp byte [ebp - 0x2d], 0
jne 0x4da7be
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 8
je 0x4dada7
mov eax, dword [ebp - 0x10]
call fcn.004da414
test al, al
je 0x4dada7
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x25]
mov dx, 0x86
call fcn.004be754
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 0x10
je 0x4dade2
mov eax, dword [ebp - 0x10]
call fcn.004da414
test al, al
je 0x4dade2
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x25]
mov dx, 0x88
call fcn.004be754
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 2
je 0x4dae17
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x25]
mov dx, 0x89
call fcn.004be754
mov eax, dword [ebp - 0x40]
test byte [eax + 0x3f], 4
je 0x4dae4c
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
movzx ecx, byte [ebp - 0x25]
mov dx, 0x87
call fcn.004be754
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x1c]
call fcn.004e13ec
inc dword [ebp - 0x2c]
dec dword [ebp - 0x3c]
jne 0x4da70b
mov eax, 0x3e8
call fcn.004d3fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4daeb4
lea eax, [ebp - 0x68]
call fcn.00406600
lea eax, [ebp - 0x64]
call fcn.00405444
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00406608
lea eax, [ebp - 0x14]
call fcn.00405444
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406608
ret