Function at 0x403813
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x406940
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x225c
call fcn.00401059
mov eax, dword [0x40706c]
xor eax, esp
mov dword [esp + 0x2258], eax
push ebx
push esi
push edi
mov eax, dword [0x40706c]
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 + 0x1c], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x2278], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, eax
push edi
call fcn.0040369e
mov esi, eax
test esi, esi
jns 0x403d69
jmp 0x403db8
push 0x403e14
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x403de8
sbb esi, esi
inc esi
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4038d8
test esi, esi
je 0x40395a
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040369e
mov esi, eax
test esi, esi
js 0x403dad
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40395c
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.00402daf
test eax, eax
jne 0x403da8
push edi
call fcn.00403367
test eax, eax
je 0x403931
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push edi
mov dword [esp + 0x3c], eax
call fcn.004033d0
mov dword [esp + 0x38], esi
cmp dword [esp + 0x18], esi
je 0x40395c
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040369e
mov esi, eax
test esi, esi
js 0x403dad
mov ecx, dword [esp + 0x10]
push edi
call fcn.004032fe
jmp 0x403b5b
xor esi, esi
push 0x403e00
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403984
mov ecx, dword [esp + 0x10]
push edi
mov dword [esp + 0x18], esi
call fcn.0040369e
mov esi, eax
test esi, esi
js 0x403dad
push 0x403de0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403a88
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x264]
push eax
call fcn.0040369e
mov esi, eax
test esi, esi
js 0x403dad
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040369e
mov esi, eax
test esi, esi
js 0x403dad
push 0x3d
pop eax
cmp word [edi], ax
jne 0x403da8
cmp dword [ebp + 0x10], 0
je 0x403a0f
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x264]
push edi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00402f3e
mov esi, eax
xor eax, eax
mov dword [esp + 0x50], eax
jmp 0x403b5d
cmp dword [ebp + 0x14], 0
jne 0x403a6f
cmp dword [esp + 0x14], 0
je 0x403a6f
lea eax, [esp + 0x14]
xor ecx, ecx
push eax
push 0x20006
push ecx
push ecx
push dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403d90
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x264]
push eax
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x403a64
cmp eax, 2
jne 0x403d76
test esi, esi
je 0x403a6f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
push edi
call fcn.004032fe
mov esi, eax
test esi, esi
jns 0x403d69
jmp 0x403dad
push 0x5c
pop edx
mov ecx, edi
call fcn.00402daf
test eax, eax
jne 0x403da8
cmp dword [ebp + 0x10], eax
je 0x403bba
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push 0x2001f
xor ecx, ecx
push ecx
push edi
push esi
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403adb
test ebx, ebx
je 0x403acf
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
test eax, eax
je 0x403b29
lea eax, [esp + 0x14]
xor ecx, ecx
push eax
push 0x20019
push ecx
push edi
push esi
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403b0f
test ebx, ebx
je 0x403b03
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
test eax, eax
je 0x403b29
sub esp, 0x14
lea ecx, [esp + 0x38]
push edi
push esi
call fcn.00402ddd
test eax, eax
jne 0x403d99
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040369e
mov esi, eax
test esi, esi
js 0x403dad
push 0x3d
pop eax
cmp word [edi], ax
jne 0x403b65
mov ecx, dword [esp + 0x10]
xor eax, eax
push edi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00402f3e
mov ebx, dword [esp + 0x24]
mov esi, eax
test esi, esi
js 0x403dad
push 0x7b
pop eax
cmp word [edi], ax
jne 0x403d69
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x30]
jne 0x403b76
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x403d69
mov ecx, dword [esp + 0x10]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.00403813
mov esi, eax
test esi, esi
js 0x403dad
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040369e
jmp 0x403a79
cmp dword [ebp + 0x14], 0
jne 0x403c03
lea eax, [esp + 0x18]
xor esi, esi
push eax
push 0x20019
push esi
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x403c0e
mov dword [esp + 0x20], esi
mov eax, esi
test ebx, ebx
je 0x403bf9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
jmp 0x403c0a
push 2
pop eax
mov dword [esp + 0x20], eax
test eax, eax
je 0x403c15
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
push eax
call fcn.00404421
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040369e
mov esi, eax
test esi, esi
js 0x403dad
mov ecx, dword [esp + 0x10]
push edi
call fcn.004032fe
mov esi, eax
test esi, esi
js 0x403dad
push 0x7b
pop eax
cmp word [edi], ax
jne 0x403cb1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x30]
jne 0x403c66
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x403cb1
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
push ebx
push edi
call fcn.00403813
mov esi, eax
test esi, esi
jns 0x403c9d
cmp dword [ebp + 0x14], 0
je 0x403dad
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040369e
mov esi, eax
test esi, esi
js 0x403dad
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x14], eax
cmp ecx, 2
je 0x403d69
test ecx, ecx
je 0x403cd6
test eax, eax
jne 0x403d69
jmp 0x403d92
test eax, eax
je 0x403d0d
push ebx
call fcn.0040352c
test eax, eax
je 0x403d0d
lea eax, [esp + 0x5c]
push eax
call fcn.00403367
test eax, eax
je 0x403d69
cmp dword [esp + 0x14], 0
je 0x403d69
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
call fcn.004033d0
mov ebx, dword [esp + 0x24]
jmp 0x403d69
push ebx
call fcn.0040352c
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x403d34
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x24], ebx
test eax, eax
jne 0x403d90
mov eax, dword [esp + 0x18]
jmp 0x403d36
xor ecx, ecx
cmp dword [esp + 0x14], 0
je 0x403d69
test eax, eax
jne 0x403d69
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x44]
push eax
call fcn.0040357c
xor ecx, ecx
mov dword [esp + 0x44], ecx
test eax, eax
jne 0x403d90
push 0x7d
pop eax
cmp word [edi], ax
je 0x403dad
jmp 0x4038a3
mov ecx, eax
call fcn.0040368e
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403dad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403dad
mov ecx, eax
call fcn.0040368e
jmp 0x403da4
mov ecx, eax
call fcn.0040368e
mov ebx, dword [esp + 0x24]
mov esi, eax
jmp 0x403dad
mov esi, 0x80020009
test ebx, ebx
je 0x403db8
push ebx
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.00405dd4
mov esp, ebp
pop ebp
ret 0x10