Function at 0x4048f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4277a6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x225c
call fcn.0041f590
mov eax, dword [0x4375dc]
xor eax, esp
mov dword [esp + 0x2258], eax
push ebx
push esi
push edi
mov eax, dword [0x4375dc]
xor eax, esp
push eax
lea eax, [esp + 0x2270]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x58], ecx
mov ecx, eax
push edi
mov dword [esp + 0x227c], 0
call fcn.00404760
mov esi, eax
test esi, esi
js 0x404f48
cmp word [edi], 0x7d
je 0x404f37
jmp 0x404990
push 0x42f930
push edi
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x42f940
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4049c1
test ebx, ebx
je 0x404aba
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404760
mov esi, eax
test esi, esi
js 0x404f37
cmp dword [ebp + 0x10], 0
je 0x404aba
movzx eax, word [edi]
mov ecx, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
test ax, ax
je 0x404a22
cmp ax, 0x5c
je 0x404a1a
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x404a01
jmp 0x404a22
test ecx, ecx
jne 0x404ee0
mov esi, 0x431080
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404a79
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x404a27
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00404480
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
test ebx, ebx
je 0x404ab2
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
call fcn.00404760
mov esi, eax
test esi, esi
js 0x404ef0
push edi
mov ecx, ebx
call fcn.00404320
mov esi, eax
test esi, esi
js 0x404ef0
mov dword [esp + 0x28], 0
jmp 0x404cde
mov dword [esp + 0x28], 0
push 0x42f958
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x404ae4
push edi
mov ecx, ebx
mov dword [esp + 0x34], eax
call fcn.00404760
mov esi, eax
test esi, esi
js 0x404f37
push 0x42f96c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404c32
lea eax, [esp + 0x264]
mov ecx, ebx
push eax
call fcn.00404760
mov esi, eax
test esi, esi
js 0x404f37
push edi
mov ecx, ebx
call fcn.00404760
mov esi, eax
test esi, esi
js 0x404f37
cmp word [edi], 0x3d
jne 0x404ee9
cmp dword [ebp + 0x10], 0
je 0x404b9f
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov byte [esp + 0x2278], 1
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x264]
push edi
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x58], 0
push eax
mov dword [esp + 0x60], 0
call fcn.00403e90
mov esi, eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
test esi, esi
js 0x404efb
mov byte [esp + 0x2278], 0
mov dword [esp + 0x50], 0
jmp 0x404cde
cmp dword [ebp + 0x14], 0
jne 0x404c1b
cmp dword [esp + 0x30], 0
je 0x404c1b
push 0x20006
push 0
push dword [esp + 0x1c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.004043d0
test eax, eax
jne 0x404f06
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x264]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x404c00
cmp eax, 2
jne 0x404f06
test esi, esi
je 0x404c13
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
push edi
mov ecx, ebx
call fcn.00404320
mov esi, eax
test esi, esi
js 0x404f37
jmp 0x404ed4
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x404c61
lea esp, [esp]
cmp ax, 0x5c
je 0x404c59
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x404c40
jmp 0x404c61
test ecx, ecx
jne 0x404ee9
cmp dword [ebp + 0x10], 0
je 0x404d3a
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0x2001f
push edi
push esi
call fcn.004043d0
test eax, eax
je 0x404cad
push 0x20019
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.004043d0
test eax, eax
je 0x404cad
sub esp, 0x14
lea ecx, [esp + 0x2c]
push edi
push esi
call fcn.00403b80
test eax, eax
jne 0x404f2e
push edi
mov ecx, ebx
call fcn.00404760
mov esi, eax
test esi, esi
js 0x404f37
cmp word [edi], 0x3d
jne 0x404cde
push edi
push 0
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.00403e90
mov esi, eax
test esi, esi
js 0x404f37
cmp word [edi], 0x7b
jne 0x404ed4
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404cf0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x404ed4
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esp + 0x20]
push edi
call fcn.004048f0
mov esi, eax
test esi, esi
js 0x404f37
push edi
mov ecx, ebx
call fcn.00404760
mov esi, eax
test esi, esi
js 0x404f37
jmp 0x404ed4
cmp dword [ebp + 0x14], 0
jne 0x404d5b
push 0x20019
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.004043d0
mov ebx, eax
test ebx, ebx
jne 0x404d60
jmp 0x404d67
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.0040f007
push eax
call fcn.00404280
mov ecx, dword [esp + 0x24]
add esp, 0x14
push edi
call fcn.00404760
mov esi, eax
test esi, esi
js 0x404f37
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404320
mov esi, eax
test esi, esi
js 0x404f37
cmp word [edi], 0x7b
jne 0x404e00
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404db5
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x404e00
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x20]
push edi
call fcn.004048f0
mov esi, eax
test esi, esi
jns 0x404dec
cmp dword [ebp + 0x14], 0
je 0x404f37
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404760
mov esi, eax
test esi, esi
js 0x404f37
mov eax, dword [esp + 0x58]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x404ed4
test ebx, ebx
je 0x404e23
test eax, eax
jne 0x404ed4
mov ecx, ebx
jmp 0x404f30
test eax, eax
je 0x404e61
push dword [esp + 0x18]
call fcn.004045d0
test eax, eax
je 0x404e61
lea eax, [esp + 0x5c]
push eax
call fcn.00404390
test eax, eax
je 0x404ed4
cmp dword [esp + 0x30], 0
je 0x404ed4
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404480
jmp 0x404ed4
push dword [esp + 0x18]
call fcn.004045d0
mov ecx, dword [esp + 0x18]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x404e83
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x404f2e
cmp dword [esp + 0x30], eax
je 0x404ed4
test ebx, ebx
jne 0x404ed4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.00404670
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
test eax, eax
jne 0x404f1a
lea ecx, [esp + 0x40]
call fcn.00404650
cmp word [edi], 0x7d
jne 0x404990
jmp 0x404f37
lea ecx, [esp + 0x24]
call fcn.00404650
mov esi, 0x80020009
jmp 0x404f37
lea ecx, [esp + 0x24]
call fcn.00404650
jmp 0x404f37
lea ecx, [esp + 0x4c]
call fcn.00404650
jmp 0x404f37
mov ecx, eax
call fcn.00404750
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00404650
jmp 0x404f37
mov ecx, eax
call fcn.00404750
lea ecx, [esp + 0x40]
mov esi, eax
call fcn.00404650
jmp 0x404f37
mov ecx, eax
call fcn.00404750
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404f46
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x2270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2258]
xor ecx, esp
call fcn.0040eff8
mov esp, ebp
pop ebp
ret 0x10