Function at 0x40510a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41894b
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.00418070
mov eax, dword [0x42300c]
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 dword [ebp - 0x2258], ecx
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x2254]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x225c], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0x2268], eax
mov dword [ebp - 0x2254], edi
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
push ebx
mov dword [ebp - 4], eax
call fcn.00404fca
mov esi, eax
test esi, esi
js 0x405749
push 0x7d
pop eax
cmp word [ebx], ax
je 0x405738
push str.Delete
push ebx
mov dword [ebp - 0x2264], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.ForceRemove
mov esi, eax
push ebx
mov dword [ebp - 0x2260], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4051ca
test esi, esi
jne 0x405286
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00404fca
mov esi, eax
test esi, esi
js 0x405738
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x405288
push 0x5c
pop edx
mov ecx, ebx
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x221c], esi
call fcn.004045c7
test eax, eax
jne 0x40572c
push ebx
call fcn.00404cad
test eax, eax
je 0x40523d
mov eax, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2224]
push ebx
mov dword [ebp - 0x2224], eax
mov dword [ebp - 0x2220], esi
call fcn.00404d96
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x221c], esi
cmp dword [ebp - 0x2260], esi
jne 0x40527e
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00404fca
mov esi, eax
test esi, esi
js 0x405738
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00404c41
mov esi, eax
test esi, esi
js 0x405738
xor eax, eax
mov dword [ebp - 0x2220], eax
jmp 0x4054b7
mov dword [ebp - 0x2220], esi
jmp 0x405288
xor esi, esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4052b4
mov ecx, dword [ebp - 0x2258]
push ebx
mov dword [ebp - 0x2264], esi
call fcn.00404fca
mov esi, eax
test esi, esi
js 0x405738
push 0x41f764
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405410
mov ecx, dword [ebp - 0x2258]
lea eax, [ebp - 0x2218]
push eax
call fcn.00404fca
mov esi, eax
test esi, esi
js 0x405738
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00404fca
mov esi, eax
test esi, esi
js 0x405738
push 0x3d
pop eax
cmp word [ebx], ax
jne 0x40572c
cmp dword [ebp + 0x10], 0
je 0x40537b
xor eax, eax
lea edi, [ebp - 0x2230]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x225c]
mov ecx, dword [ebp - 0x2258]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2230], eax
xor eax, eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2230]
push eax
call fcn.00404760
mov esi, eax
xor eax, eax
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
test esi, esi
js 0x405738
mov byte [ebp - 4], al
mov dword [ebp - 0x222c], eax
jmp 0x4054b1
cmp dword [ebp + 0x14], 0
jne 0x4053f5
cmp dword [ebp - 0x2264], 0
je 0x4053f5
xor esi, esi
lea ecx, [ebp - 0x223c]
push 0x20006
push esi
push dword [ebp - 0x225c]
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
call fcn.00404cdc
test eax, eax
jne 0x40570c
mov edi, dword [ebp - 0x223c]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4053de
cmp eax, 2
jne 0x4056fc
test edi, edi
je 0x4053ef
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00404c41
mov esi, eax
test esi, esi
js 0x405738
jmp 0x4056e9
push 0x5c
pop edx
mov ecx, ebx
call fcn.004045c7
test eax, eax
jne 0x405733
cmp dword [ebp + 0x10], eax
je 0x405510
mov esi, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2254]
push 0x2001f
push ebx
push esi
call fcn.00404cdc
test eax, eax
je 0x405475
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x2254]
call fcn.00404cdc
test eax, eax
je 0x405475
sub esp, 0x14
lea ecx, [ebp - 0x2254]
push ebx
push esi
call fcn.00404601
test eax, eax
jne 0x405617
mov edi, dword [ebp - 0x2258]
mov ecx, edi
push ebx
call fcn.00404fca
mov esi, eax
test esi, esi
js 0x405738
push 0x3d
pop eax
cmp word [ebx], ax
jne 0x4054b1
push ebx
xor eax, eax
mov ecx, edi
push eax
lea eax, [ebp - 0x2254]
push eax
call fcn.00404760
mov esi, eax
test esi, esi
js 0x405738
mov edi, dword [ebp - 0x2254]
push 0x7b
pop eax
cmp word [ebx], ax
jne 0x4056e9
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2268]
jne 0x4054c8
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4056e9
xor eax, eax
push eax
push dword [ebp + 0x10]
push edi
mov edi, dword [ebp - 0x2258]
mov ecx, edi
push ebx
call fcn.0040510a
mov esi, eax
test esi, esi
js 0x405738
push ebx
mov ecx, edi
call fcn.00404fca
jmp 0x405401
cmp dword [ebp + 0x14], 0
jne 0x405535
push 0x20019
push ebx
push dword [ebp - 0x225c]
lea ecx, [ebp - 0x2254]
call fcn.00404cdc
mov edi, dword [ebp - 0x2254]
jmp 0x405538
push 2
pop eax
xor ecx, ecx
mov dword [ebp - 0x2260], eax
push 0xffffffffffffffff
inc ecx
test eax, eax
push ebx
cmove ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x218]
push 0x104
push eax
mov dword [ebp - 0x226c], ecx
call fcn.0040c4ca
push eax
call fcn.00401866
mov ecx, dword [ebp - 0x2258]
add esp, 0x14
push ebx
call fcn.00404fca
mov esi, eax
test esi, esi
js 0x405738
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00404c41
mov esi, eax
test esi, esi
js 0x405738
push 0x7b
pop eax
cmp word [ebx], ax
jne 0x4055fa
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2268]
jne 0x4055a3
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4055fa
push dword [ebp - 0x226c]
mov ecx, dword [ebp - 0x2258]
xor eax, eax
push eax
push edi
push ebx
call fcn.0040510a
mov esi, eax
test esi, esi
jns 0x4055e4
cmp dword [ebp - 0x226c], 0
je 0x405738
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.00404fca
mov esi, eax
test esi, esi
js 0x405738
mov eax, dword [ebp - 0x2260]
cmp eax, 2
je 0x4056e9
test eax, eax
je 0x405625
cmp dword [ebp + 0x14], 0
jne 0x4056e9
mov ecx, eax
call fcn.00404fb9
mov esi, eax
jmp 0x405738
cmp dword [ebp + 0x14], 0
je 0x40566a
push edi
call fcn.00404e7b
test eax, eax
je 0x40566a
lea eax, [ebp - 0x218]
push eax
call fcn.00404cad
test eax, eax
je 0x4056e9
cmp dword [ebp - 0x2264], 0
je 0x4056e9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2254]
call fcn.00404d96
jmp 0x4056e9
push edi
call fcn.00404e7b
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2260], ecx
test edi, edi
je 0x405695
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2260]
xor edi, edi
mov dword [ebp - 0x2254], edi
jmp 0x405697
xor edi, edi
mov dword [ebp - 0x2250], edi
test eax, eax
jne 0x405617
cmp dword [ebp - 0x2264], eax
je 0x4056e9
test ecx, ecx
jne 0x4056e9
mov eax, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2248]
mov dword [ebp - 0x2248], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x2244], edi
mov dword [ebp - 0x2240], edi
call fcn.00404ee5
mov dword [ebp - 0x2248], edi
test eax, eax
jne 0x405617
push 0x7d
pop eax
cmp word [ebx], ax
je 0x405738
mov edi, dword [ebp - 0x2254]
jmp 0x405194
mov ecx, eax
call fcn.00404fb9
mov esi, eax
test edi, edi
je 0x405738
push edi
jmp 0x405724
mov ecx, eax
call fcn.00404fb9
cmp dword [ebp - 0x223c], 0
mov esi, eax
je 0x405738
push dword [ebp - 0x223c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405738
mov esi, 0x80020009
jmp 0x40573e
mov esi, 0x80020009
mov edi, dword [ebp - 0x2254]
test edi, edi
je 0x405749
push edi
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.004061a0
leave
ret 0x10