Function at 0x426970
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x44e860
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x460164]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401dd0
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], 0
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4269fa
lea ebx, [ebx]
lea ecx, [eax - 1]
test ecx, ecx
jl 0x426b37
cmp ecx, eax
jg 0x426b37
movzx ecx, word [esi + ecx*2]
cmp cx, 0x5c
jne 0x4269fa
lea edx, [esp + 0x30]
lea ecx, [eax - 1]
push edx
mov eax, 1
call fcn.0041b0f0
mov esi, dword [esp + 0x30]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4269c0
mov eax, dword [0x461acc]
mov edx, dword [eax + 0xc]
mov ecx, 0x461acc
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x5c
push esi
mov byte [esp + 0x2c], 1
call fcn.00436017
add esp, 8
test eax, eax
je 0x426b41
sub eax, esi
sar eax, 1
mov ebp, eax
js 0x426b41
lea ecx, [ebp + 1]
lea esi, [esp + 0x18]
lea edx, [esp + 0x30]
call fcn.00427170
lea edi, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.00403c60
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426a77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
call fcn.004036f0
lea edi, [esp + 0x30]
mov byte [esp + 0x24], 3
call fcn.00403c60
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426ab9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push 0x10000
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x426b56
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426afe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426b22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
push 0x80070057
call fcn.00401000
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
lea edi, [esp + 0x10]
mov dword [esp + 0x14], ecx
call fcn.00403c60
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebp, eax
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x2c]
je 0x426b79
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebp, ebp
sete al
mov byte [esp + 0x24], 0
or edx, 0xffffffff
mov ebp, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426ba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426bc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret