Function at 0x403521
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2264
call fcn.004330f0
mov eax, dword [0x46f06c]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [esp + 0xc], ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
call fcn.00402b81
mov esi, eax
test esi, esi
js 0x403aa8
push 0x7d
pop eax
cmp word [edi], ax
je 0x403a99
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x466b7c
sbb esi, esi
inc esi
push edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4035b8
test esi, esi
je 0x403664
mov ecx, dword [esp + 0xc]
push edi
call fcn.00402b81
mov esi, eax
test esi, esi
js 0x403a99
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x403666
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00402b2c
test eax, eax
jne 0x403a94
push edi
call fcn.00403091
test eax, eax
je 0x403625
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.004024c3
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
cmp dword [esp + 0x14], esi
je 0x40365e
mov ebx, dword [esp + 0xc]
mov ecx, ebx
push edi
call fcn.00402b81
mov esi, eax
test esi, esi
js 0x403a99
push edi
mov ecx, ebx
call fcn.004030f7
mov esi, eax
test esi, esi
js 0x403a99
xor ebx, ebx
mov dword [esp + 0x2c], ebx
jmp 0x403a0b
mov dword [esp + 0x2c], esi
jmp 0x403666
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40368e
mov ecx, dword [esp + 0xc]
push edi
mov dword [esp + 0x28], esi
call fcn.00402b81
mov esi, eax
test esi, esi
js 0x403a99
push 0x466b74
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4037b1
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x268]
push eax
call fcn.00402b81
mov esi, eax
test esi, esi
js 0x403a99
mov ecx, dword [esp + 0xc]
push edi
call fcn.00402b81
mov esi, eax
test esi, esi
js 0x403a99
push 0x3d
pop eax
cmp word [edi], ax
jne 0x403a94
cmp dword [ebp + 0x10], 0
je 0x40372b
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x268]
push edi
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], ebx
push eax
mov dword [esp + 0x58], ebx
call fcn.00402cd7
mov esi, eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
test esi, esi
js 0x403a99
mov dword [esp + 0x48], ebx
jmp 0x403a0b
cmp dword [ebp + 0x14], 0
jne 0x403798
cmp dword [esp + 0x24], 0
je 0x403798
xor esi, esi
lea ecx, [esp + 0x38]
push 0x20006
push esi
push dword [esp + 0x18]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.00402407
test eax, eax
jne 0x403a78
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x268]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x403781
cmp eax, 2
jne 0x403a68
test ebx, ebx
je 0x403790
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x38], esi
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0xc]
push edi
call fcn.004030f7
mov esi, eax
test esi, esi
js 0x403a99
jmp 0x403578
push 0x5c
pop edx
mov ecx, edi
call fcn.00402b2c
test eax, eax
jne 0x403a94
cmp dword [ebp + 0x10], eax
je 0x40384d
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0x2001f
push edi
push ebx
call fcn.00402407
test eax, eax
je 0x40380e
push 0x20019
push edi
push ebx
lea ecx, [esp + 0x24]
call fcn.00402407
test eax, eax
je 0x40380e
sub esp, 0x14
lea ecx, [esp + 0x2c]
push edi
push ebx
call fcn.004023a4
test eax, eax
jne 0x40393c
mov ebx, dword [esp + 0xc]
mov ecx, ebx
push edi
call fcn.00402b81
mov esi, eax
test esi, esi
js 0x403a99
push 0x3d
pop eax
cmp word [edi], ax
jne 0x403846
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00402cd7
mov esi, eax
test esi, esi
js 0x403a99
xor ebx, ebx
jmp 0x403a0b
cmp dword [ebp + 0x14], 0
jne 0x40386c
push 0x20019
push edi
push dword [esp + 0x18]
lea ecx, [esp + 0x24]
call fcn.00402407
mov ebx, dword [esp + 0x18]
jmp 0x40386f
push 2
pop eax
mov ecx, dword [ebp + 0x14]
test eax, eax
push 1
mov dword [esp + 0x18], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [esp + 0x64]
push edi
push 0x104
push eax
mov dword [esp + 0x44], ecx
call fcn.00437c79
push eax
call fcn.00401fc7
mov ecx, dword [esp + 0x20]
add esp, 0x14
push edi
call fcn.00402b81
mov esi, eax
test esi, esi
js 0x403a99
mov ecx, dword [esp + 0xc]
push edi
call fcn.004030f7
mov esi, eax
test esi, esi
js 0x403a99
push 0x7b
pop eax
cmp word [edi], ax
jne 0x403921
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x5c]
jne 0x4038d2
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x403921
push dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
xor eax, eax
push eax
push ebx
push edi
call fcn.00403521
mov esi, eax
test esi, esi
jns 0x40390d
cmp dword [esp + 0x34], 0
je 0x403a99
mov ecx, dword [esp + 0xc]
push edi
call fcn.00402b81
mov esi, eax
test esi, esi
js 0x403a99
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x403578
test eax, eax
je 0x40394a
cmp dword [ebp + 0x14], 0
jne 0x403578
mov ecx, eax
call fcn.0040206a
mov esi, eax
jmp 0x403a99
cmp dword [ebp + 0x14], 0
je 0x40398e
push ebx
call fcn.004030c0
test eax, eax
je 0x40398e
lea eax, [esp + 0x60]
push eax
call fcn.00403091
test eax, eax
je 0x403578
cmp dword [esp + 0x24], 0
je 0x403578
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.004024c3
mov ebx, dword [esp + 0x18]
jmp 0x403578
push ebx
call fcn.004030c0
mov ecx, eax
xor eax, eax
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x4039b3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
xor edx, edx
mov dword [esp + 0x1c], edx
test eax, eax
jne 0x40393c
cmp dword [esp + 0x24], edx
je 0x403578
test ecx, ecx
jne 0x403578
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], eax
xor ebx, ebx
lea eax, [esp + 0x60]
mov dword [esp + 0x54], ebx
push eax
mov dword [esp + 0x5c], ebx
call fcn.00402311
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
test eax, eax
jne 0x40393c
mov dword [esp + 0x54], ebx
cmp dword [ebp + 0x10], 0
je 0x403985
push 0x7b
pop eax
cmp word [edi], ax
jne 0x403985
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x403a26
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x403985
mov ecx, dword [esp + 0xc]
push ebx
push dword [ebp + 0x10]
mov ebx, dword [esp + 0x20]
push ebx
push edi
call fcn.00403521
mov esi, eax
test esi, esi
js 0x403a99
mov ecx, dword [esp + 0xc]
push edi
call fcn.00402b81
jmp 0x4037a2
mov ecx, eax
call fcn.0040206a
mov esi, eax
test ebx, ebx
je 0x403a99
push ebx
jmp 0x403a8c
mov ecx, eax
call fcn.0040206a
cmp dword [esp + 0x38], 0
mov esi, eax
je 0x403a99
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403a99
mov esi, 0x80020009
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x403aa8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x226c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043223c
mov esp, ebp
pop ebp
ret 0x10