Function at 0x12679c
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x22
push 0
push 0
dec ecx
jne 0x1267a5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x126f83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00013d18
push ebp
lea eax, [ebp - 0x28]
mov ecx, esi
mov edx, 0x126f98
call fcn.00013ff4
mov eax, dword [ebp - 0x28]
call fcn.00126594
pop ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
mov edx, 0x400
call fcn.000271f0
lea eax, [ebp - 0x14]
mov edx, 0x2800
call fcn.000271f0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
mov eax, ebx
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x126efb
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0x18], 0x2800
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00018100
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00018100
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov ebx, eax
test ebx, ebx
jne 0x126ec9
mov ebx, dword [ebp - 0x20]
cmp ebx, 0x3e8
jl 0x1268cd
push ebp
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00027444
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x126fb0
call fcn.00013ff4
mov eax, dword [ebp - 0x2c]
call fcn.00126624
pop ecx
mov ebx, 0x3e8
jmp 0x126e79
push ebp
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x38]
call fcn.00027444
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x126fb0
call fcn.00013ff4
mov eax, dword [ebp - 0x34]
call fcn.00126594
pop ecx
jmp 0x126e79
cmp dword [ebp - 0xc], 4
jne 0x126e4f
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.00013ee0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x24]
call fcn.000273cc
lea edx, [ebp - 0x40]
mov eax, 0x126fc4
call fcn.000273cc
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea edx, [ebp - 0x44]
mov eax, 0x126fdc
call fcn.000273cc
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea edx, [ebp - 0x48]
mov eax, 0x126ff4
call fcn.000273cc
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0x50]
call fcn.00046168
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.000273cc
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0x58]
call fcn.00046098
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.000273cc
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0x60]
call fcn.0002699c
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.000273cc
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0x68]
call fcn.000461d8
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.000273cc
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0x70]
call fcn.00046030
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.000273cc
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0x78]
call fcn.00045f6c
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.000273cc
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0x80]
call fcn.00046100
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.000273cc
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0x88]
call fcn.00026a04
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.000273cc
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0x90]
call fcn.00026a68
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.000273cc
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0x98]
call fcn.00026ad0
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.000273cc
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0xa0]
call fcn.00026864
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.000273cc
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0xa8]
call fcn.001266b4
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.000273cc
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jle 0x126bae
lea edx, [ebp - 0xac]
mov eax, 0x12700c
call fcn.000273cc
mov eax, dword [ebp - 0xac]
mov edx, dword [ebp - 0x24]
call fcn.00014294
mov esi, eax
mov eax, dword [ebp - 0x24]
call fcn.00013fa8
sub eax, 3
cmp esi, eax
je 0x126e11
lea eax, [ebp - 0xb4]
call fcn.000268cc
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
call fcn.000273cc
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0xbc]
call fcn.001266e0
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0xb8]
call fcn.000273cc
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jle 0x126c41
lea edx, [ebp - 0xc0]
mov eax, 0x12700c
call fcn.000273cc
mov eax, dword [ebp - 0xc0]
mov edx, dword [ebp - 0x24]
call fcn.00014294
mov esi, eax
mov eax, dword [ebp - 0x24]
call fcn.00013fa8
sub eax, 3
cmp esi, eax
je 0x126e11
lea eax, [ebp - 0xc8]
call fcn.00026934
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
call fcn.000273cc
mov eax, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0xd0]
call fcn.0012670c
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.000273cc
mov eax, dword [ebp - 0xcc]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jle 0x126cd4
lea edx, [ebp - 0xd4]
mov eax, 0x12700c
call fcn.000273cc
mov eax, dword [ebp - 0xd4]
mov edx, dword [ebp - 0x24]
call fcn.00014294
mov esi, eax
mov eax, dword [ebp - 0x24]
call fcn.00013fa8
sub eax, 3
cmp esi, eax
je 0x126e11
lea eax, [ebp - 0xdc]
call fcn.00045e98
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0xd8]
call fcn.000273cc
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0xe4]
call fcn.00045f04
mov eax, dword [ebp - 0xe4]
lea edx, [ebp - 0xe0]
call fcn.000273cc
mov eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0xec]
call fcn.000267fc
mov eax, dword [ebp - 0xec]
lea edx, [ebp - 0xe8]
call fcn.000273cc
mov eax, dword [ebp - 0xe8]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea edx, [ebp - 0xf0]
mov eax, 0x12701c
call fcn.000273cc
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea edx, [ebp - 0xf4]
mov eax, dword [0x25171c]
mov eax, dword [eax]
call fcn.000273cc
mov eax, dword [ebp - 0xf4]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jg 0x126e11
lea eax, [ebp - 0xfc]
call fcn.00126738
mov eax, dword [ebp - 0xfc]
lea edx, [ebp - 0xf8]
call fcn.000273cc
mov eax, dword [ebp - 0xf8]
mov edx, dword [ebp - 0x24]
call fcn.00014294
test eax, eax
jle 0x126e4f
lea edx, [ebp - 0x100]
mov eax, 0x127034
call fcn.000273cc
mov eax, dword [ebp - 0x100]
mov edx, dword [ebp - 0x24]
call fcn.00014294
mov esi, eax
mov eax, dword [ebp - 0x24]
call fcn.00013fa8
sub eax, 3
cmp esi, eax
jne 0x126e4f
push ebp
lea eax, [ebp - 0x108]
mov edx, dword [ebp - 8]
call fcn.00013ee0
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x104]
mov edx, 0x127044
call fcn.00013ff4
mov eax, dword [ebp - 0x104]
call fcn.00126594
pop ecx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegDeleteValueA
dec ebx
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0x18], 0x2800
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00018100
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00018100
test ebx, ebx
jl 0x126f2b
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumValueA
cmp eax, 0x103
jne 0x1268fb
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x126ebf
cmp eax, dword [esp]
pop edx
pop eax
je 0x1268fb
jmp 0x126f2b
push ebp
lea edx, [ebp - 0x110]
mov eax, ebx
call fcn.00027478
mov ecx, dword [ebp - 0x110]
lea eax, [ebp - 0x10c]
mov edx, 0x127058
call fcn.00013ff4
mov eax, dword [ebp - 0x10c]
call fcn.00126624
pop ecx
jmp 0x126f2b
push ebp
lea edx, [ebp - 0x118]
mov eax, ebx
call fcn.00027478
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
mov edx, 0x127070
call fcn.00013ff4
mov eax, dword [ebp - 0x114]
call fcn.00126624
pop ecx
lea eax, [ebp - 0x14]
mov edx, 0x2800
call fcn.00027218
lea eax, [ebp - 8]
mov edx, 0x400
call fcn.00027218
cmp dword [ebp - 0x1c], 0
je 0x126f54
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x1c], eax
push ebp
mov eax, 0x127080
call fcn.00126594
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x126f8a
lea eax, [ebp - 0x118]
mov edx, 0x3e
call fcn.00013d3c
ret