Function at 0x418138
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x225c
call fcn.00522d80
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x2210], ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2220], ecx
mov ecx, eax
push edi
mov dword [ebp - 0x2218], eax
call fcn.004174cd
mov esi, eax
test esi, esi
js 0x4186bd
push ebx
jmp 0x418696
push str.Delete
push edi
mov dword [ebp - 0x221c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x52977c
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4181c4
test ebx, ebx
je 0x41828e
mov ecx, dword [ebp - 0x2218]
push edi
call fcn.004174cd
mov esi, eax
test esi, esi
js 0x4186bc
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x418290
push 0x5c
push edi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
mov dword [ebp - 0x2230], esi
call fcn.00418db6
pop ecx
pop ecx
test eax, eax
jne 0x4186ac
mov ecx, dword [ebp - 0x2218]
push edi
call fcn.004142ad
test eax, eax
je 0x418243
mov eax, dword [ebp - 0x2210]
lea ecx, [ebp - 0x2238]
push edi
mov dword [ebp - 0x2238], eax
call fcn.00417cfb
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
mov dword [ebp - 0x2230], esi
test ebx, ebx
je 0x418281
mov ebx, dword [ebp - 0x2218]
mov ecx, ebx
push edi
call fcn.004174cd
mov esi, eax
test esi, esi
js 0x4186a4
push edi
mov ecx, ebx
call fcn.00418bbe
mov esi, eax
lea ecx, [ebp - 0x2238]
call fcn.0041435f
test esi, esi
js 0x4186bc
jmp 0x418655
lea ecx, [ebp - 0x2238]
call fcn.0041435f
jmp 0x418290
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2218]
test eax, eax
jne 0x4182be
push edi
mov ecx, ebx
mov dword [ebp - 0x221c], esi
call fcn.004174cd
mov esi, eax
test esi, esi
js 0x4186bc
push 0x529774
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4183d9
lea eax, [ebp - 0x220c]
mov ecx, ebx
push eax
call fcn.004174cd
mov esi, eax
test esi, esi
js 0x4186bc
push edi
mov ecx, ebx
call fcn.004174cd
mov esi, eax
test esi, esi
js 0x4186bc
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4186b7
cmp dword [ebp + 0x10], 0
je 0x41835f
mov eax, dword [ebp - 0x2210]
mov ecx, ebx
and dword [ebp - 0x2240], 0
and dword [ebp - 0x223c], 0
mov dword [ebp - 0x2244], eax
lea eax, [ebp - 0x220c]
push edi
push eax
lea eax, [ebp - 0x2244]
push eax
call fcn.00413b91
mov esi, eax
lea ecx, [ebp - 0x2244]
xor eax, eax
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], eax
jmp 0x41826f
cmp dword [ebp + 0x14], 0
jne 0x4183cc
cmp dword [ebp - 0x221c], 0
je 0x4183cc
xor eax, eax
lea ecx, [ebp - 0x2250]
push 0x20006
push eax
push dword [ebp - 0x2210]
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
call fcn.00417632
test eax, eax
jne 0x4186da
lea eax, [ebp - 0x220c]
push eax
push dword [ebp - 0x2250]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4183c1
cmp eax, 2
jne 0x4186da
lea ecx, [ebp - 0x2250]
call fcn.0041435f
push edi
mov ecx, ebx
call fcn.00418bbe
jmp 0x418690
push 0x5c
push edi
call fcn.00418db6
pop ecx
pop ecx
test eax, eax
jne 0x4186b7
cmp dword [ebp + 0x10], eax
je 0x41847c
mov esi, dword [ebp - 0x2210]
lea ecx, [ebp - 0x2228]
push 0x2001f
push edi
push esi
call fcn.00417632
test eax, eax
je 0x418446
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2228]
call fcn.00417632
test eax, eax
je 0x418446
xor eax, eax
lea ecx, [ebp - 0x2228]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.004144ec
test eax, eax
jne 0x418566
push edi
mov ecx, ebx
call fcn.004174cd
mov esi, eax
test esi, esi
js 0x4186bc
push 0x3d
pop eax
cmp word [edi], ax
jne 0x418655
push edi
push 0
lea eax, [ebp - 0x2228]
mov ecx, ebx
push eax
call fcn.00413b91
mov esi, eax
jmp 0x418274
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x41849c
push 0x20019
push edi
push dword [ebp - 0x2210]
lea ecx, [ebp - 0x2228]
call fcn.00417632
jmp 0x41849f
push 2
pop eax
mov dword [ebp - 0x2214], eax
mov dword [ebp - 0x222c], esi
test eax, eax
je 0x4184b9
mov dword [ebp - 0x222c], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00516d90
push eax
call fcn.00402e01
add esp, 0x14
mov ecx, ebx
push edi
call fcn.004174cd
mov esi, eax
test esi, esi
js 0x4186bc
push edi
mov ecx, ebx
call fcn.00418bbe
mov esi, eax
test esi, esi
js 0x4186bc
push 0x7b
pop eax
cmp word [edi], ax
jne 0x418549
push edi
call sub.msvcrt.dll_wcslen
pop ecx
cmp eax, 1
jne 0x418549
push dword [ebp - 0x222c]
mov ecx, ebx
push 0
push dword [ebp - 0x2228]
push edi
call fcn.00418138
mov esi, eax
test esi, esi
jns 0x418537
cmp dword [ebp - 0x222c], 0
je 0x4186bc
push edi
mov ecx, ebx
call fcn.004174cd
mov esi, eax
test esi, esi
js 0x4186bc
mov eax, dword [ebp - 0x2214]
cmp eax, 2
je 0x418696
test eax, eax
je 0x418574
cmp dword [ebp + 0x14], 0
jne 0x418696
push eax
call fcn.0041409c
pop ecx
mov esi, eax
jmp 0x4186bc
cmp dword [ebp + 0x14], 0
je 0x4185c5
push dword [ebp - 0x2228]
mov ecx, ebx
call fcn.004162cf
test eax, eax
je 0x4185c5
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004142ad
test eax, eax
je 0x418696
cmp dword [ebp - 0x221c], 0
je 0x418696
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2228]
call fcn.00417cfb
jmp 0x418696
push dword [ebp - 0x2228]
mov ecx, ebx
call fcn.004162cf
lea ecx, [ebp - 0x2228]
mov dword [ebp - 0x2214], eax
call fcn.0041435f
test eax, eax
jne 0x418566
cmp dword [ebp - 0x221c], eax
je 0x418696
cmp dword [ebp - 0x2214], eax
jne 0x418696
mov eax, dword [ebp - 0x2210]
lea ecx, [ebp - 0x225c]
and dword [ebp - 0x2258], 0
and dword [ebp - 0x2254], 0
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00414fca
and dword [ebp - 0x225c], 0
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x2214], eax
call fcn.0041435f
mov eax, dword [ebp - 0x2214]
test eax, eax
jne 0x418566
cmp dword [ebp + 0x10], 0
je 0x418696
push 0x7b
pop eax
cmp word [edi], ax
jne 0x418696
push edi
call sub.msvcrt.dll_wcslen
pop ecx
cmp eax, 1
jne 0x418696
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2228]
push edi
call fcn.00418138
mov esi, eax
test esi, esi
js 0x4186bc
push edi
mov ecx, ebx
call fcn.004174cd
mov esi, eax
test esi, esi
js 0x4186bc
push 0x7d
pop eax
cmp word [edi], ax
jne 0x418191
jmp 0x4186bc
lea ecx, [ebp - 0x2238]
jmp 0x4186e9
lea ecx, [ebp - 0x2238]
call fcn.0041435f
mov esi, 0x80020009
pop ebx
lea ecx, [ebp - 0x2228]
call fcn.0041435f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00522d04
leave
ret 0x10
push eax
call fcn.0041409c
pop ecx
mov esi, eax
lea ecx, [ebp - 0x2250]
call fcn.0041435f
jmp 0x4186bc