Function at 0x4059ec
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a07a
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.00429cbe
mov eax, dword [0x43c4e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x221c], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2220], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x2268], ecx
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x226c], ecx
mov ecx, eax
push edi
call fcn.00405896
mov esi, eax
test esi, esi
js 0x406055
push 0x7d
pop eax
cmp word [edi], ax
je 0x406044
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x2234], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x42c690
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2224], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405ab0
test esi, esi
je 0x405b7c
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00405896
mov esi, eax
test esi, esi
js 0x406044
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x405b7e
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
call fcn.00404e71
test eax, eax
jne 0x40603f
push edi
call fcn.004055a7
test eax, eax
je 0x405b35
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2240]
push edi
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
call fcn.00405697
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
cmp dword [ebp - 0x2224], esi
je 0x405b74
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.00405896
mov esi, eax
test esi, esi
js 0x406044
push edi
mov ecx, ebx
call fcn.00405540
mov esi, eax
test esi, esi
js 0x406044
xor ebx, ebx
mov dword [ebp - 0x223c], ebx
jmp 0x405f9e
mov dword [ebp - 0x223c], esi
jmp 0x405b7e
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405baa
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2234], esi
call fcn.00405896
mov esi, eax
test esi, esi
js 0x406044
push 0x42c688
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405d01
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.00405896
mov esi, eax
test esi, esi
js 0x406044
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00405896
mov esi, eax
test esi, esi
js 0x406044
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40603f
cmp dword [ebp + 0x10], 0
je 0x405c66
mov ecx, dword [ebp - 0x221c]
xor eax, eax
inc eax
xor ebx, ebx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 0x2258], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2258]
mov dword [ebp - 0x2254], ebx
push eax
mov dword [ebp - 0x2250], ebx
call fcn.0040504b
mov esi, eax
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
mov dword [ebp - 0x2250], ebx
test esi, esi
js 0x406044
mov byte [ebp - 4], bl
mov dword [ebp - 0x2254], ebx
jmp 0x405f9e
cmp dword [ebp + 0x14], 0
jne 0x405ce6
cmp dword [ebp - 0x2234], 0
je 0x405ce6
xor esi, esi
lea ecx, [ebp - 0x224c]
push 0x20006
push esi
push dword [ebp - 0x2220]
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
mov dword [ebp - 0x2244], esi
call fcn.00405639
test eax, eax
jne 0x40601f
mov ebx, dword [ebp - 0x224c]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x405cc9
cmp eax, 2
jne 0x40600f
test ebx, ebx
je 0x405cda
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x224c], esi
mov ebx, dword [ebp - 0x2230]
mov dword [ebp - 0x2248], esi
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00405540
mov esi, eax
test esi, esi
js 0x406044
jmp 0x405ef7
push 0x5c
pop edx
mov ecx, edi
call fcn.00404e71
test eax, eax
jne 0x40603f
cmp dword [ebp + 0x10], eax
je 0x405da9
mov ebx, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
push 0x2001f
push edi
push ebx
call fcn.00405639
test eax, eax
je 0x405d66
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2230]
call fcn.00405639
test eax, eax
je 0x405d66
sub esp, 0x14
lea ecx, [ebp - 0x2230]
push edi
push ebx
call fcn.00404f10
test eax, eax
jne 0x405eaa
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.00405896
mov esi, eax
test esi, esi
js 0x406044
push 0x3d
pop eax
cmp word [edi], ax
jne 0x405da2
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x2230]
push eax
call fcn.0040504b
mov esi, eax
test esi, esi
js 0x406044
xor ebx, ebx
jmp 0x405f9e
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x405dcf
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
call fcn.00405639
mov ebx, dword [ebp - 0x2230]
jmp 0x405dd2
push 2
pop eax
push 1
test eax, eax
mov dword [ebp - 0x2224], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov ecx, eax
call fcn.0040550a
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00405896
mov esi, eax
test esi, esi
js 0x406044
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00405540
mov esi, eax
test esi, esi
js 0x406044
push 0x7b
pop eax
cmp word [edi], ax
jne 0x405e8e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2268]
jne 0x405e3b
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x405e8e
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push ebx
push edi
call fcn.004059ec
mov esi, eax
test esi, esi
jns 0x405e78
cmp dword [ebp + 0x14], 0
je 0x406044
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00405896
mov esi, eax
test esi, esi
js 0x406044
mov eax, dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x226c]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x405ef7
test eax, eax
je 0x405eb8
test ecx, ecx
jne 0x405ef7
mov ecx, eax
call fcn.00405888
mov esi, eax
jmp 0x406044
test ecx, ecx
je 0x405f0b
push ebx
call fcn.0040576c
test eax, eax
je 0x405f0b
lea eax, [ebp - 0x218]
push eax
call fcn.004055a7
test eax, eax
je 0x405ef7
cmp dword [ebp - 0x2234], 0
je 0x405ef7
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00405697
mov ebx, dword [ebp - 0x2230]
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x405a7b
jmp 0x406044
push ebx
call fcn.0040576c
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2224], ecx
test ebx, ebx
je 0x405f36
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov ecx, dword [ebp - 0x2224]
mov dword [ebp - 0x2230], ebx
xor edx, edx
mov dword [ebp - 0x222c], edx
test eax, eax
jne 0x405eaa
cmp dword [ebp - 0x2234], edx
je 0x405ef7
test ecx, ecx
jne 0x405ef7
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2264]
mov dword [ebp - 0x2264], eax
xor ebx, ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2260], ebx
push eax
mov dword [ebp - 0x225c], ebx
call fcn.0040580f
mov dword [ebp - 0x2264], ebx
mov dword [ebp - 0x2260], ebx
mov dword [ebp - 0x225c], ebx
test eax, eax
jne 0x405eaa
mov dword [ebp - 0x2260], ebx
cmp dword [ebp + 0x10], 0
je 0x405ef1
push 0x7b
pop eax
cmp word [edi], ax
jne 0x405ef1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x405fb9
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x406004
mov ecx, dword [ebp - 0x221c]
push ebx
push dword [ebp + 0x10]
mov ebx, dword [ebp - 0x2230]
push ebx
push edi
call fcn.004059ec
mov esi, eax
test esi, esi
js 0x406044
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00405896
mov esi, eax
test esi, esi
jns 0x405ef7
jmp 0x406044
mov ebx, dword [ebp - 0x2230]
jmp 0x405efa
mov ecx, eax
call fcn.00405888
mov esi, eax
test ebx, ebx
je 0x406044
push ebx
jmp 0x406037
mov ecx, eax
call fcn.00405888
cmp dword [ebp - 0x224c], 0
mov esi, eax
je 0x406044
push dword [ebp - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406044
mov esi, 0x80020009
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x406055
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004282ce
mov esp, ebp
pop ebp
ret 0x10