Function at 0x4122f0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458180
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x47c9a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x412356
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 1
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], ebx
call fcn.0042cc09
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0
call fcn.0042fb6f
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
push 0xffffffffffffffff
lea eax, [eax*2 + 2]
push eax
call fcn.0042fccb
mov ecx, dword [ebp - 0x10]
xor edi, edi
mov esi, dword [ebp - 0x48]
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
lea eax, [ecx*2 + 2]
push eax
push edi
push esi
call fcn.00442490
add esp, 0xc
lea eax, [ebp - 0x14]
push edi
push edi
push edi
push edi
push eax
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x412419
test eax, eax
jne 0x4123d9
push esi
push dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
call fcn.0042ce83
jmp 0x4123db
xor bl, bl
mov ecx, dword [ebp - 0x10]
inc edi
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
lea eax, [ecx*2 + 2]
push eax
push 0
push esi
call fcn.00442490
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push 0
push 0
push 0
push eax
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x4123c7
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x30]
xor edi, edi
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x4124f0
lea esp, [esp]
test edi, edi
js 0x4124eb
cmp edi, eax
jge 0x4124eb
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + edi*4]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x41246c
cmp ecx, dword [esi - 0x10]
jne 0x41246c
lea ebx, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4124a1
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x4124e6
mov ecx, dword [esi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0043f3ff
add esp, 0x10
lea esi, [ebx + 0x10]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, dword [ebp - 0x1c]
xor ecx, ecx
test eax, eax
movzx ebx, bl
cmovne ebx, ecx
add esi, 0xfffffff0
mov dword [ebp - 0x1c], ebx
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4124d8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, dword [ebp - 0x20]
jge 0x4124f0
mov eax, dword [ebp - 0x30]
jmp 0x412430
call fcn.00404840
call fcn.0042c9be
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.0042fb86
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0042cc20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret