Function at 0x40f220
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x450956
mov eax, dword fs:[0]
push eax
mov eax, 0x2254
call fcn.0043a2b0
mov eax, dword [0x468850]
xor eax, esp
mov dword [esp + 0x2250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468850]
xor eax, esp
push eax
lea eax, [esp + 0x2268]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2278]
mov eax, dword [esp + 0x227c]
xor esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x2284]
mov eax, edi
mov dword [esp + 0x2270], esi
mov dword [esp + 0x34], edx
call fcn.0040e7c0
mov ebp, eax
cmp ebp, esi
jl 0x40f923
cmp word [edi], 0x7d
je 0x40f921
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x38], 1
call ebp
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call ebp
test eax, eax
je 0x40f2e1
cmp ebx, esi
je 0x40f406
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040e7c0
mov ebp, eax
cmp ebp, esi
jl 0x40f912
cmp dword [esp + 0x2280], esi
je 0x40f406
movzx ecx, word [edi]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov eax, edi
cmp cx, si
je 0x40f33b
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, cx
mov edi, edi
cmp cx, 0x5c
je 0x40f333
push eax
call ebp
movzx ecx, word [eax]
cmp cx, si
jne 0x40f320
jmp 0x40f33b
cmp eax, esi
jne 0x40f88d
mov ebp, 0x4599f8
mov eax, dword [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40f378
add ebp, 4
cmp ebp, 0x459a28
jl 0x40f340
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], esi
call fcn.0040db70
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
cmp ebx, esi
je 0x40f402
mov ebx, dword [esp + 0x18]
mov eax, edi
mov ecx, ebx
call fcn.0040e7c0
mov ebp, eax
cmp ebp, esi
jl 0x40f8a9
mov ecx, ebx
call fcn.0040ed20
mov ebp, eax
cmp ebp, esi
jl 0x40f8a9
mov dword [esp + 0x2c], esi
cmp word [edi], 0x7b
jne 0x40f807
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40f807
mov edx, dword [esp + 0x2280]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push edx
push eax
push edi
call fcn.0040f220
mov ebp, eax
cmp ebp, esi
jl 0x40f912
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040e7c0
mov ebp, eax
cmp ebp, esi
jl 0x40f912
jmp 0x40f807
mov dword [esp + 0x2c], esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40f42f
mov ecx, dword [esp + 0x18]
mov eax, edi
mov dword [esp + 0x30], esi
call fcn.0040e7c0
mov ebp, eax
cmp ebp, esi
jl 0x40f912
push 0x4598a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40f561
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x264]
call fcn.0040e7c0
mov ebp, eax
cmp ebp, esi
jl 0x40f912
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040e7c0
mov ebp, eax
cmp ebp, esi
jl 0x40f912
cmp word [edi], 0x3d
jne 0x40f896
cmp dword [esp + 0x2280], esi
je 0x40f4d4
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x264]
mov byte [esp + 0x2270], 1
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, edi
mov dword [esp + 0x4c], esi
call fcn.0040e930
mov ebp, eax
cmp ebp, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
jl 0x40f8b4
mov byte [esp + 0x2270], 0
mov dword [esp + 0x44], esi
jmp 0x40f3ac
cmp dword [esp + 0x2284], esi
jne 0x40f549
cmp dword [esp + 0x30], esi
je 0x40f549
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x20006
push esi
push esi
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40f8c8
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x264]
push ecx
push ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x40f536
cmp eax, 2
jne 0x40f8c8
cmp ebx, esi
je 0x40f545
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x18]
call fcn.0040ed20
mov ebp, eax
cmp ebp, esi
jl 0x40f912
jmp 0x40f807
movzx ecx, word [edi]
mov eax, edi
cmp cx, si
je 0x40f58f
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, cx
cmp cx, 0x5c
je 0x40f587
push eax
call ebx
movzx ecx, word [eax]
cmp cx, si
jne 0x40f574
jmp 0x40f58f
cmp eax, esi
jne 0x40f896
cmp dword [esp + 0x2280], esi
je 0x40f6a9
mov ebx, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push esi
push edi
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40f5e2
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, esi
je 0x40f5cc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
cmp eax, esi
je 0x40f66a
jmp 0x40f5e6
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
push edi
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40f61e
xor eax, eax
cmp ebp, esi
je 0x40f60e
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
cmp eax, esi
je 0x40f66a
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push ebx
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x40f8da
xor eax, eax
cmp ebp, esi
je 0x40f654
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
cmp eax, esi
jne 0x40f8da
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040e7c0
mov ebp, eax
cmp ebp, esi
jl 0x40f912
cmp word [edi], 0x3d
jne 0x40f3ac
push esi
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
mov ecx, edi
call fcn.0040e930
mov ebp, eax
cmp ebp, esi
jl 0x40f912
jmp 0x40f3ac
cmp dword [esp + 0x2284], esi
jne 0x40f7c1
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
push edi
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40f6f2
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, esi
je 0x40f6e6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp eax, esi
je 0x40f707
mov dword [esp + 0x2284], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.004393af
push eax
call fcn.00401000
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov eax, edi
call fcn.0040e7c0
mov ebp, eax
cmp ebp, esi
jl 0x40f912
mov ecx, dword [esp + 0x18]
call fcn.0040ed20
mov ebp, eax
cmp ebp, esi
jl 0x40f912
cmp word [edi], 0x7b
jne 0x40f79b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40f79b
mov ebx, dword [esp + 0x2284]
mov ecx, dword [esp + 0x1c]
push ebx
push esi
push ecx
mov ecx, dword [esp + 0x24]
push edi
call fcn.0040f220
mov ebp, eax
cmp ebp, esi
jge 0x40f782
cmp ebx, esi
je 0x40f912
mov ecx, dword [esp + 0x18]
mov eax, edi
call fcn.0040e7c0
mov ebp, eax
cmp ebp, esi
jl 0x40f912
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2284], edx
cmp ebx, 2
je 0x40f807
cmp ebx, esi
je 0x40f7d2
cmp edx, esi
jne 0x40f807
mov eax, ebx
call fcn.0040d8a0
mov ebp, eax
jmp 0x40f912
mov dword [esp + 0x14], 2
mov ebx, dword [esp + 0x14]
jmp 0x40f6fc
mov ebx, dword [esp + 0x1c]
cmp edx, esi
je 0x40f816
mov ecx, ebx
call fcn.0040ece0
test eax, eax
je 0x40f816
lea ebx, [esp + 0x5c]
call fcn.0040eca0
test eax, eax
je 0x40f805
cmp dword [esp + 0x30], 0
je 0x40f805
mov eax, ebx
push eax
lea ecx, [esp + 0x20]
call fcn.0040db70
xor esi, esi
cmp word [edi], 0x7d
jne 0x40f2b0
jmp 0x40f912
mov ecx, ebx
call fcn.0040ece0
mov dword [esp + 0x50], eax
mov dword [esp + 0x14], esi
cmp ebx, esi
je 0x40f838
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x14], esi
jne 0x40f8ec
cmp dword [esp + 0x30], esi
je 0x40f807
cmp dword [esp + 0x50], esi
jne 0x40f807
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], esi
lea edi, [esp + 0x5c]
lea esi, [esp + 0x48]
mov dword [esp + 0x48], ecx
call fcn.0040dac0
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
cmp eax, ecx
jne 0x40f900
mov ecx, esi
call fcn.0040daa0
mov edi, dword [esp + 0x54]
jmp 0x40f805
lea ecx, [esp + 0x28]
call fcn.0040daa0
lea ecx, [esp + 0x1c]
call fcn.0040daa0
mov eax, 0x80020009
jmp 0x40f923
lea ecx, [esp + 0x28]
call fcn.0040daa0
jmp 0x40f912
lea ecx, [esp + 0x40]
call fcn.0040daa0
lea ecx, [esp + 0x1c]
call fcn.0040daa0
jmp 0x40f921
call fcn.0040d8a0
lea ecx, [esp + 0x38]
mov ebp, eax
call fcn.0040daa0
jmp 0x40f912
lea ecx, [esp + 0x1c]
call fcn.0040daa0
mov eax, ebx
call fcn.0040d8a0
jmp 0x40f923
lea ecx, [esp + 0x1c]
call fcn.0040daa0
mov eax, dword [esp + 0x14]
call fcn.0040d8a0
jmp 0x40f923
call fcn.0040d8a0
lea ecx, [esp + 0x48]
mov ebp, eax
call fcn.0040daa0
xor esi, esi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x40f921
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x2268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2250]
xor ecx, esp
call fcn.00437d66
add esp, 0x2260
ret 0x10