Function at 0x4046d0
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2248]
mov eax, 0x2248
call fcn.0040afd0
push 0xffffffffffffffff
push 0x40b280
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x411028]
xor eax, ebp
mov dword [ebp + 0x2244], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x2254]
xorps xmm0, xmm0
mov edi, dword [ebp + 0x2250]
movq qword [ebp], xmm0
mov dword [ebp + 8], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov dword [ebp + 8], 0
mov ecx, dword [ebp + 0x225c]
mov dword [ebp - 0x1c], ecx
mov ecx, eax
push edi
mov dword [ebp - 4], 0
call fcn.00404540
mov esi, eax
test esi, esi
js 0x404d32
cmp word [edi], 0x7d
je 0x404d22
push str.Delete
push edi
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4047a1
test ebx, ebx
je 0x40489e
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00404540
mov esi, eax
test esi, esi
js 0x404d22
cmp dword [ebp + 0x2258], 0
je 0x40489e
movzx eax, word [edi]
xorps xmm0, xmm0
movq qword [ebp + 0x30], xmm0
mov ecx, edi
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
test ax, ax
je 0x404811
nop
cmp ax, 0x5c
je 0x404809
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x4047f0
jmp 0x404811
test ecx, ecx
jne 0x404cd0
mov esi, 0x40ce20
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404860
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x404816
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x30]
push edi
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
call fcn.00404260
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
test ebx, ebx
je 0x404897
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
call fcn.00404540
mov esi, eax
test esi, esi
js 0x404cdf
push edi
mov ecx, ebx
call fcn.004040c0
mov esi, eax
test esi, esi
js 0x404cdf
mov dword [ebp + 0x34], 0
jmp 0x404abc
mov dword [ebp + 0x34], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x10]
test eax, eax
jne 0x4048c6
push edi
mov ecx, ebx
mov dword [ebp - 0x18], eax
call fcn.00404540
mov esi, eax
test esi, esi
js 0x404d22
push 0x40cd0c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404a12
lea eax, [ebp + 0x3c]
mov ecx, ebx
push eax
call fcn.00404540
mov esi, eax
test esi, esi
js 0x404d22
push edi
mov ecx, ebx
call fcn.00404540
mov esi, eax
test esi, esi
js 0x404d22
cmp word [edi], 0x3d
jne 0x404cd8
cmp dword [ebp + 0x2258], 0
je 0x40497a
xorps xmm0, xmm0
mov dword [ebp + 0x2c], 0
movq qword [ebp + 0x24], xmm0
mov eax, dword [ebp - 0x14]
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebp + 0x24], eax
lea eax, [ebp + 0x3c]
push edi
push eax
lea eax, [ebp + 0x24]
mov dword [ebp + 0x28], 0
push eax
mov dword [ebp + 0x2c], 0
call fcn.00403c70
mov esi, eax
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
test esi, esi
js 0x404ce9
mov byte [ebp - 4], 0
mov dword [ebp + 0x28], 0
jmp 0x404abc
cmp dword [ebp + 0x225c], 0
jne 0x4049fb
cmp dword [ebp - 0x18], 0
je 0x4049fb
push 0x20006
push 0
push dword [ebp - 0x14]
xorps xmm0, xmm0
mov dword [ebp + 0x20], 0
movq qword [ebp + 0x18], xmm0
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
call fcn.00404180
test eax, eax
jne 0x404cf3
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0x3c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4049e2
cmp eax, 2
jne 0x404cf3
test esi, esi
je 0x4049f4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
push edi
mov ecx, ebx
call fcn.004040c0
mov esi, eax
test esi, esi
js 0x404d22
jmp 0x404cc4
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x404a41
nop dword [eax]
cmp ax, 0x5c
je 0x404a39
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x404a20
jmp 0x404a41
test ecx, ecx
jne 0x404cd8
cmp dword [ebp + 0x2258], 0
je 0x404b1c
mov esi, dword [ebp - 0x14]
lea ecx, [ebp]
push 0x2001f
push edi
push esi
call fcn.00404180
test eax, eax
je 0x404a8c
push 0x20019
push edi
push esi
lea ecx, [ebp]
call fcn.00404180
test eax, eax
je 0x404a8c
sub esp, 0x14
lea ecx, [ebp]
push edi
push esi
call fcn.00403900
test eax, eax
jne 0x404d19
push edi
mov ecx, ebx
call fcn.00404540
mov esi, eax
test esi, esi
js 0x404d22
cmp word [edi], 0x3d
jne 0x404abc
push edi
push 0
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.00403c70
mov esi, eax
test esi, esi
js 0x404d22
cmp word [edi], 0x7b
jne 0x404cc4
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404ad0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x404cc4
push 0
push dword [ebp + 0x2258]
mov ecx, ebx
push dword [ebp]
push edi
call fcn.004046d0
mov esi, eax
test esi, esi
js 0x404d22
push edi
mov ecx, ebx
call fcn.00404540
mov esi, eax
test esi, esi
js 0x404d22
jmp 0x404cc4
cmp dword [ebp + 0x225c], 0
jne 0x404b3e
push 0x20019
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.00404180
mov ebx, eax
test ebx, ebx
jne 0x404b43
jmp 0x404b4d
mov ebx, 2
mov dword [ebp + 0x225c], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x203c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov ecx, eax
call fcn.00404030
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00404540
mov esi, eax
test esi, esi
js 0x404d22
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004040c0
mov esi, eax
test esi, esi
js 0x404d22
cmp word [edi], 0x7b
jne 0x404bee
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404ba0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x404bee
push dword [ebp + 0x225c]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp]
push edi
call fcn.004046d0
mov esi, eax
test esi, esi
jns 0x404bdb
cmp dword [ebp + 0x225c], 0
je 0x404d22
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00404540
mov esi, eax
test esi, esi
js 0x404d22
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x225c], eax
cmp ebx, 2
je 0x404cc4
test ebx, ebx
je 0x404c13
test eax, eax
jne 0x404cc4
mov ecx, ebx
jmp 0x404d1b
test eax, eax
je 0x404c52
push dword [ebp]
call fcn.00404390
test eax, eax
je 0x404c52
lea eax, [ebp + 0x203c]
push eax
call fcn.00404140
test eax, eax
je 0x404cc4
cmp dword [ebp - 0x18], 0
je 0x404cc4
lea eax, [ebp + 0x203c]
push eax
lea ecx, [ebp]
call fcn.00404260
jmp 0x404cc4
push dword [ebp]
call fcn.00404390
mov ecx, dword [ebp]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x404c71
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp], ecx
mov dword [ebp + 4], 0
test eax, eax
jne 0x404d19
cmp dword [ebp - 0x18], eax
je 0x404cc4
test ebx, ebx
jne 0x404cc4
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp + 0x14], ebx
movq qword [ebp + 0xc], xmm0
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x203c]
push eax
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
call fcn.00404450
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
test eax, eax
jne 0x404d06
lea ecx, [ebp + 0xc]
call fcn.00404430
cmp word [edi], 0x7d
jne 0x404771
jmp 0x404d22
lea ecx, [ebp + 0x30]
call fcn.00404430
mov esi, 0x80020009
jmp 0x404d22
lea ecx, [ebp + 0x30]
call fcn.00404430
jmp 0x404d22
lea ecx, [ebp + 0x24]
call fcn.00404430
jmp 0x404d22
mov ecx, eax
call fcn.00404530
lea ecx, [ebp + 0x18]
mov esi, eax
call fcn.00404430
jmp 0x404d22
mov ecx, eax
call fcn.00404530
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.00404430
jmp 0x404d22
mov ecx, eax
call fcn.00404530
mov esi, eax
mov eax, dword [ebp]
test eax, eax
je 0x404d30
push eax
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 + 0x2244]
xor ecx, ebp
call fcn.00409f4b
lea esp, [ebp + 0x2248]
pop ebp
ret 0x10