Function at 0x684894
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 0x6851f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6cea38]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x6851a3
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0
mov eax, dword [0x6cea38]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x30]
call fcn.00464ce8
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 [0x6ce9c4]
mov edx, dword [edx]
mov eax, dword [0x6cf098]
mov eax, dword [eax]
call fcn.006a8900
test al, al
je 0x685197
mov edx, dword [ebp - 0x30]
mov al, 0xb
call fcn.006ae684
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x20]
call fcn.006a84dc
mov eax, 0x685210
call fcn.0061674c
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x68496c
mov eax, dword [0x6cf0b8]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
call fcn.006ac358
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x18]
call fcn.0060d2d4
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, 0x685248
call fcn.006169d0
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
call fcn.006ac358
cmp dword [ebp - 4], 0
je 0x6849d9
mov eax, dword [ebp - 4]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, 0x68526c
call fcn.006169d0
mov eax, dword [0x6cefcc]
movzx eax, byte [eax]
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 4
je 0x684a01
cmp byte [ebp - 0x29], 1
je 0x684a01
mov eax, 0x685298
call fcn.0061674c
mov byte [ebp - 0x29], 1
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 8
je 0x684a32
mov eax, dword [0x6cea20]
cmp byte [eax], 0
jne 0x684a1e
mov eax, 0x6852dc
call fcn.0060d064
cmp byte [ebp - 0x29], 2
je 0x684a32
mov eax, 0x685364
call fcn.0061674c
mov byte [ebp - 0x29], 2
mov byte [ebp - 0x31], 0
xor edx, edx
push ebp
push 0x685058
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x40
je 0x684a89
mov eax, dword [ebp - 0x10]
call fcn.00684628
test al, al
je 0x684a7f
mov eax, 0x6853a8
call fcn.0061674c
mov eax, dword [ebp - 0x10]
call fcn.0040b278
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.005c7b20
mov bl, 1
jmp 0x684a89
mov eax, 0x6853d8
call fcn.0061674c
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x40
je 0x684ab2
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3e], 0
jne 0x684ab2
test bl, bl
je 0x68504e
mov eax, 0x685424
call fcn.0061674c
jmp 0x68504e
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x80
je 0x684b29
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3e], 0
jne 0x684b29
push 0
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040b278
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.005c7a60
test eax, eax
jne 0x684b1a
mov eax, 0x68546c
call fcn.0061674c
mov eax, dword [ebp - 4]
call fcn.0040b278
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
mov eax, 0x6854a0
call fcn.0061674c
jmp 0x68504e
mov eax, 0x6854ec
call fcn.0061674c
jmp 0x68504e
mov eax, dword [ebp - 0x44]
movzx eax, word [eax + 0x3c]
cmp ax, 0xffff
je 0x684b49
movsx eax, ax
push eax
movzx eax, byte [ebp - 0x29]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00684654
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 2
jne 0x684be2
mov eax, 0x685548
call fcn.0061674c
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.0040b278
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.005c7a28
mov ebx, eax
test ebx, ebx
jne 0x684bc9
cmp dword [ebp - 0x20], 1
jne 0x684c46
mov eax, dword [ebp - 0x44]
cmp word [eax + 0x3c], 0xffff
je 0x684c46
mov eax, 0x685590
call fcn.0061674c
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.00684654
jmp 0x684c46
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne 0x684c46
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov al, 1
call fcn.0067de54
jmp 0x684c46
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3e], 0
je 0x684c37
mov eax, 0x6855fc
call fcn.0061674c
push 0
push 3
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040b278
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.005c7a60
mov ebx, eax
test ebx, ebx
je 0x684c46
cmp ebx, 2
je 0x684c46
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne 0x684c46
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov al, 2
call fcn.0067de54
jmp 0x684c46
mov eax, 0x68562c
call fcn.0061674c
mov ebx, 2
test ebx, ebx
jne 0x68504e
xor edx, edx
push ebp
push 0x685047
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x80
je 0x684c81
mov eax, 0x68546c
call fcn.0061674c
mov eax, dword [ebp - 4]
call fcn.0040b278
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 0x685011
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 1
je 0x684cb1
mov eax, dword [ebp - 4]
call fcn.0040b278
mov edx, eax
mov eax, dword [ebp - 0x1c]
call fcn.005c79a0
test al, al
jne 0x685011
mov eax, 0x6856e0
call fcn.0061674c
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax + 0x3e]
movzx edx, al
cmp edx, 6
ja case.0x684cce.0
jmp dword [edx*4 + 0x684cd5]
mov ebx, 1
mov edx, eax
sub dl, 2
je 0x684d04
sub dl, 3
je 0x684d0b
jmp 0x684d10
mov ebx, 2
jmp 0x684d10
mov ebx, 7
cmp al, 5
je 0x684db4
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 8]
mov ecx, 1
mov eax, 0x68572c
call fcn.0040b8a8
test eax, eax
je 0x684d4a
mov eax, dword [ebp - 4]
call fcn.0040b278
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.005c7988
test al, al
jne 0x684d52
lea eax, [ebp - 0xc]
call fcn.0040a1c8
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x20
je 0x684d8a
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x684d8a
cmp dword [ebp - 0x24], 1
je 0x684d87
cmp dword [ebp - 0x24], 2
jne 0x684d8a
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 8]
push eax
mov eax, 0x68574c
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.006ac37c
jmp 0x684e4d
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 8]
mov ecx, 1
mov eax, 0x68572c
call fcn.0040b8a8
test eax, eax
je 0x684de6
mov eax, dword [ebp - 4]
call fcn.0040b278
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.005c7994
test al, al
jne 0x684dee
lea eax, [ebp - 0xc]
call fcn.0040a1c8
lea eax, [ebp - 8]
push eax
mov eax, 0x68574c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x50], eax
mov eax, 0x685768
mov dword [ebp - 0x4c], eax
mov eax, 0x685780
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
mov ecx, 3
call fcn.006ac37c
cmp dword [ebp - 8], 0
je 0x684e4d
mov eax, dword [ebp - 8]
test eax, eax
je 0x684e35
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp word [edx + eax*2 - 2], 0
je 0x684e4d
lea eax, [ebp - 8]
mov edx, 0x685780
call fcn.0040b470
mov esi, dword [ebp - 8]
test esi, esi
je 0x684e59
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.0040b278
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x684cce.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x684cce.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0067de54
jmp case.0x684cce.0
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
call fcn.006ac358
mov eax, dword [ebp - 0x64]
call fcn.004233b4
mov dword [ebp - 0x28], eax
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x684cce.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x684cce.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0067de54
jmp case.0x684cce.0
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
call fcn.006ac358
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x3c]
call fcn.005c9b94
test al, al
jne 0x684f2d
mov eax, 0x685790
call fcn.0060d064
push 8
lea eax, [ebp - 0x3c]
push eax
push 0xb
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x684cce.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x684cce.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0067de54
jmp case.0x684cce.0
lea eax, [ebp - 0x14]
call fcn.0040a1ec
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
test eax, eax
je 0x684f8a
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x684fbc
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.0040a8f0
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x14]
call fcn.0040a9f4
inc esi
dec ebx
jne 0x684f95
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x684fc8
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 0x14]
call fcn.0040ac70
push eax
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x684cce.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x684cce.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0067de54
mov eax, 0x6857d8
call fcn.0061674c
jmp 0x685030
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x80
je 0x685026
mov eax, 0x6854a0
call fcn.0061674c
jmp 0x685030
mov eax, 0x685834
call fcn.0061674c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68504e
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6850ae
cmp byte [ebp - 0x31], 0
jne 0x684a32
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 8
je 0x6850f0
mov eax, dword [ebp - 0x10]
call fcn.00684628
test al, al
je 0x6850f0
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.00629b34
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x10
je 0x685128
mov eax, dword [ebp - 0x10]
call fcn.00684628
test al, al
je 0x685128
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.00629b34
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 2
je 0x68515a
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.00629b34
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 4
je 0x68518c
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.00629b34
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x1c]
call fcn.006a8520
inc dword [ebp - 0x30]
dec dword [ebp - 0x40]
jne 0x6848ea
mov eax, 0x3e8
call fcn.0067d3ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6851fc
lea eax, [ebp - 0x7c]
call fcn.0040a1c8
lea eax, [ebp - 0x6c]
call fcn.0040a1ec
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0040a228
lea eax, [ebp - 0x58]
call fcn.0040a1c8
lea eax, [ebp - 0x14]
call fcn.0040a1ec
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040a228
ret