Function at 0x40b4d1
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x415259
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.00414c20
mov eax, dword [0x417008]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [0x417008]
xor eax, esp
push eax
lea eax, [esp + 0x2278]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2280], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, eax
push edi
call fcn.0040b38c
mov esi, eax
test esi, esi
js 0x40baae
jmp 0x40ba6b
push 0x40122c
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x401200
sbb esi, esi
inc esi
push edi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40b596
test esi, esi
je 0x40b61c
mov ecx, dword [esp + 0x18]
push edi
call fcn.0040b38c
mov esi, eax
test esi, esi
js 0x40baa3
cmp dword [ebp + 0x10], 0
je 0x40b61c
xor eax, eax
mov ecx, edi
push 0x5c
pop edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.0040aa20
test eax, eax
jne 0x40ba9e
push edi
call fcn.0040b0fa
test eax, eax
je 0x40b5f2
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push edi
mov dword [esp + 0x40], eax
call fcn.0040b130
xor eax, eax
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x1c], 0
je 0x40b61c
mov ecx, dword [esp + 0x18]
push edi
call fcn.0040b38c
mov esi, eax
test esi, esi
js 0x40baa3
mov ecx, dword [esp + 0x18]
push edi
call fcn.0040b08c
jmp 0x40b85c
push 0x401218
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b644
mov ecx, dword [esp + 0x18]
push edi
mov dword [esp + 0x18], eax
call fcn.0040b38c
mov esi, eax
test esi, esi
js 0x40baa3
push 0x4011f8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b75f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x26c]
push eax
call fcn.0040b38c
mov esi, eax
test esi, esi
js 0x40baa3
mov ecx, dword [esp + 0x18]
push edi
call fcn.0040b38c
mov esi, eax
test esi, esi
js 0x40baa3
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40ba9e
cmp dword [ebp + 0x10], 0
je 0x40b6e6
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x2280], 1
mov dword [esp + 0x48], eax
lea eax, [esp + 0x26c]
push edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0040ab7b
mov esi, eax
xor eax, eax
mov dword [esp + 0x48], eax
test esi, esi
js 0x40baa3
mov byte [esp + 0x2280], al
jmp 0x40b866
cmp dword [ebp + 0x14], 0
jne 0x40b746
cmp dword [esp + 0x14], 0
je 0x40b746
lea eax, [esp + 0x14]
xor ecx, ecx
push eax
push 0x20006
push ecx
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ba93
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x26c]
push eax
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40b73b
cmp eax, 2
jne 0x40ba79
test esi, esi
je 0x40b746
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push edi
call fcn.0040b08c
mov esi, eax
test esi, esi
js 0x40baa3
jmp 0x40ba6b
push 0x5c
pop edx
mov ecx, edi
call fcn.0040aa20
test eax, eax
jne 0x40ba9e
cmp dword [ebp + 0x10], eax
je 0x40b8bb
mov esi, dword [esp + 0x20]
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 0x40b7b2
test ebx, ebx
je 0x40b7a6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
test eax, eax
je 0x40b82a
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 0x40b7e6
test ebx, ebx
je 0x40b7da
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
test eax, eax
je 0x40b82a
lea eax, [esp + 0x60]
xor ecx, ecx
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ba93
test ebx, ebx
je 0x40b81a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
test eax, eax
jne 0x40ba93
mov ecx, dword [esp + 0x18]
push edi
call fcn.0040b38c
mov esi, eax
test esi, esi
js 0x40baa3
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40b866
mov ecx, dword [esp + 0x18]
xor eax, eax
push edi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040ab7b
mov ebx, dword [esp + 0x28]
mov esi, eax
test esi, esi
js 0x40baa3
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40ba6b
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x34]
jne 0x40b877
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40ba6b
mov ecx, dword [esp + 0x18]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.0040b4d1
mov esi, eax
test esi, esi
js 0x40baa3
mov ecx, dword [esp + 0x18]
push edi
call fcn.0040b38c
jmp 0x40b750
cmp dword [ebp + 0x14], 0
jne 0x40b904
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push 0x20019
push esi
push edi
push dword [esp + 0x30]
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x40b90f
mov dword [esp + 0x24], esi
mov eax, esi
test ebx, ebx
je 0x40b8fa
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
jmp 0x40b90b
push 2
pop eax
mov dword [esp + 0x24], eax
test eax, eax
je 0x40b916
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x6c]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
mov ecx, eax
call fcn.0040b054
mov ecx, dword [esp + 0x18]
push edi
call fcn.0040b38c
mov esi, eax
test esi, esi
js 0x40baa3
mov ecx, dword [esp + 0x18]
push edi
call fcn.0040b08c
mov esi, eax
test esi, esi
js 0x40baa3
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40b9b3
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x34]
jne 0x40b968
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40b9b3
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
xor eax, eax
push eax
push ebx
push edi
call fcn.0040b4d1
mov esi, eax
test esi, esi
jns 0x40b99f
cmp dword [ebp + 0x14], 0
je 0x40baa3
mov ecx, dword [esp + 0x18]
push edi
call fcn.0040b38c
mov esi, eax
test esi, esi
js 0x40baa3
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x14], eax
cmp ecx, 2
je 0x40ba6b
test ecx, ecx
je 0x40b9d8
test eax, eax
je 0x40ba95
jmp 0x40ba6b
test eax, eax
je 0x40ba0f
push ebx
call fcn.0040b26c
test eax, eax
je 0x40ba0f
lea eax, [esp + 0x64]
push eax
call fcn.0040b0fa
test eax, eax
je 0x40ba6b
cmp dword [esp + 0x14], 0
je 0x40ba6b
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040b130
mov ebx, dword [esp + 0x28]
jmp 0x40ba6b
push ebx
call fcn.0040b26c
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x40ba36
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x28], ebx
test eax, eax
jne 0x40ba93
mov eax, dword [esp + 0x1c]
jmp 0x40ba38
xor ecx, ecx
cmp dword [esp + 0x14], 0
je 0x40ba6b
test eax, eax
jne 0x40ba6b
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x54]
push eax
call fcn.0040b2c6
xor ecx, ecx
mov dword [esp + 0x54], ecx
test eax, eax
jne 0x40ba93
push 0x7d
pop eax
cmp word [edi], ax
jne 0x40b561
jmp 0x40baa3
mov ecx, eax
call fcn.0040b377
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40baa3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40baa3
mov ecx, eax
call fcn.0040b377
mov esi, eax
jmp 0x40baa3
mov esi, 0x80020009
test ebx, ebx
je 0x40baae
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x2278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2260]
xor ecx, esp
call fcn.00414190
mov esp, ebp
pop ebp
ret 0x10