Function at 0x403b40
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x408eb7
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.004080f0
mov eax, dword [0x40e4b8]
xor eax, esp
mov dword [esp + 0x2248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40e4b8]
xor eax, esp
push eax
lea eax, [esp + 0x2260]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2274]
mov edi, dword [esp + 0x2270]
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2268], ebx
mov edx, dword [esp + 0x227c]
push edi
mov dword [esp + 0x50], edx
call fcn.00401aa0
mov esi, eax
cmp esi, ebx
jge 0x403bcd
mov dword [esp + 0x2268], 0xffffffff
jmp 0x40425c
cmp word [edi], 0x7d
je 0x40423c
jmp 0x403be0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x38], 1
call esi
mov ebp, eax
neg ebp
push str.ForceRemove
sbb ebp, ebp
push edi
inc ebp
call esi
test eax, eax
je 0x403c11
cmp ebp, ebx
je 0x403d38
mov ecx, dword [esp + 0x14]
push edi
call fcn.00401aa0
mov esi, eax
cmp esi, ebx
jl 0x40423c
cmp dword [esp + 0x2278], ebx
je 0x403d38
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x2268], 1
movzx ecx, word [edi]
mov eax, edi
cmp cx, bx
je 0x403c6f
movzx ecx, cx
nop
cmp cx, 0x5c
je 0x403c67
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x403c50
jmp 0x403c6f
cmp eax, ebx
jne 0x404199
mov ecx, dword [esp + 0x14]
push edi
call fcn.00401c10
test eax, eax
je 0x403c9b
mov eax, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
call fcn.00401ff0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
cmp ebp, ebx
je 0x403d2d
mov ebp, dword [esp + 0x14]
push edi
mov ecx, ebp
call fcn.00401aa0
mov esi, eax
cmp esi, ebx
jl 0x4041c7
push edi
mov ecx, ebp
call fcn.00401ca0
mov esi, eax
cmp esi, ebx
jl 0x4041c7
mov byte [esp + 0x2268], bl
mov dword [esp + 0x2c], ebx
cmp word [edi], 0x7b
jne 0x403d1e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x403d1e
mov eax, dword [esp + 0x2278]
mov ecx, dword [esp + 0x18]
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x20]
push edi
call fcn.00403b40
mov esi, eax
cmp esi, ebx
jl 0x40423c
mov ecx, dword [esp + 0x14]
push edi
call fcn.00401aa0
mov esi, eax
cmp esi, ebx
jl 0x40423c
cmp word [edi], 0x7d
jne 0x403be0
jmp 0x40423c
mov byte [esp + 0x2268], bl
mov dword [esp + 0x2c], ebx
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403d60
mov ecx, dword [esp + 0x14]
push edi
mov dword [esp + 0x34], ebx
call fcn.00401aa0
mov esi, eax
cmp esi, ebx
jl 0x40423c
push 0x40a3b4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403e8f
lea ecx, [esp + 0x25c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00401aa0
mov esi, eax
cmp esi, ebx
jl 0x40423c
mov ecx, dword [esp + 0x14]
push edi
call fcn.00401aa0
mov esi, eax
cmp esi, ebx
jl 0x40423c
cmp word [edi], 0x3d
jne 0x4041a9
cmp dword [esp + 0x2278], ebx
je 0x403e0b
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x2268], 2
mov edx, dword [esp + 0x24]
push edi
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
call fcn.004037e0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
jl 0x4041d4
mov byte [esp + 0x2268], bl
mov dword [esp + 0x38], ebx
jmp 0x403cd6
cmp dword [esp + 0x227c], ebx
jne 0x403e80
cmp dword [esp + 0x30], ebx
je 0x403e80
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x2268], 3
mov edx, dword [esp + 0x24]
push 0x20006
push ebx
push edx
lea ecx, [esp + 0x50]
call fcn.00401630
cmp eax, ebx
jne 0x4041fc
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x25c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x403e66
cmp eax, 2
jne 0x4041fc
mov byte [esp + 0x2268], bl
cmp esi, ebx
je 0x403e7c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x14]
push edi
call fcn.00401ca0
jmp 0x403d14
movzx ecx, word [edi]
mov eax, edi
cmp cx, bx
je 0x403ebd
mov esi, dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, cx
cmp cx, 0x5c
je 0x403eb5
push eax
call esi
movzx ecx, word [eax]
cmp cx, bx
jne 0x403ea2
jmp 0x403ebd
cmp eax, ebx
jne 0x4041a9
cmp dword [esp + 0x2278], ebx
je 0x403fb7
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push 0x2001f
push ebx
push edi
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x403f12
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x403efe
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
cmp eax, ebx
je 0x403f7a
push 0x20019
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.00401630
cmp eax, ebx
je 0x403f7a
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push esi
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x404214
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x403f62
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jne 0x404214
mov ecx, dword [esp + 0x14]
push edi
call fcn.00401aa0
mov esi, eax
cmp esi, ebx
jl 0x40423c
cmp word [edi], 0x3d
jne 0x403cd6
mov ecx, dword [esp + 0x14]
push edi
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.004037e0
mov esi, eax
cmp esi, ebx
jl 0x40423c
jmp 0x403cd6
cmp dword [esp + 0x227c], ebx
jne 0x4040b1
mov ecx, dword [esp + 0x24]
push 0x20019
push edi
push ecx
lea ecx, [esp + 0x24]
call fcn.00401630
mov ebp, eax
mov dword [esp + 0x20], ebp
cmp ebp, ebx
je 0x403fed
mov dword [esp + 0x227c], 1
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x5c]
push 0x104
push edx
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
push eax
call fcn.00401280
mov ecx, dword [esp + 0x28]
add esp, 0x14
push edi
call fcn.00401aa0
mov esi, eax
cmp esi, ebx
jl 0x40423c
mov ecx, dword [esp + 0x14]
push edi
call fcn.00401ca0
mov esi, eax
cmp esi, ebx
jl 0x40423c
cmp word [edi], 0x7b
jne 0x404081
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x404081
mov ebp, dword [esp + 0x227c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebp
push ebx
push eax
push edi
call fcn.00403b40
mov esi, eax
cmp esi, ebx
jge 0x404069
cmp ebp, ebx
je 0x40423c
mov ecx, dword [esp + 0x14]
push edi
call fcn.00401aa0
mov esi, eax
cmp esi, ebx
jl 0x40423c
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x227c], ecx
cmp ebp, 2
je 0x403d1e
cmp ebp, ebx
je 0x4040c2
cmp ecx, ebx
jne 0x403d1e
push ebp
call fcn.00401450
add esp, 4
mov esi, eax
jmp 0x40423c
mov dword [esp + 0x20], 2
mov ebp, dword [esp + 0x20]
jmp 0x403fe2
mov ebp, dword [esp + 0x18]
cmp ecx, ebx
je 0x40410b
mov ecx, dword [esp + 0x14]
push ebp
call fcn.00401c50
test eax, eax
je 0x40410b
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x54]
push edx
call fcn.00401c10
test eax, eax
je 0x403d1e
cmp dword [esp + 0x30], ebx
je 0x403d1e
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ff0
jmp 0x403d1e
mov ecx, dword [esp + 0x14]
push ebp
call fcn.00401c50
mov dword [esp + 0x20], eax
xor eax, eax
cmp ebp, ebx
je 0x40412a
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jne 0x404214
cmp dword [esp + 0x30], ebx
je 0x403d1e
cmp dword [esp + 0x20], ebx
jne 0x403d1e
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x2268], 4
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x54]
mov dword [esp + 0x3c], ecx
push edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], ebx
call fcn.004015a0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
cmp eax, ebx
jne 0x404221
mov byte [esp + 0x2268], bl
lea ecx, [esp + 0x3c]
call fcn.00401fd0
jmp 0x403d1e
mov byte [esp + 0x2268], bl
lea ecx, [esp + 0x28]
call fcn.00401fd0
mov dword [esp + 0x2268], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00401fd0
mov eax, 0x80020009
jmp 0x404260
mov byte [esp + 0x2268], bl
lea ecx, [esp + 0x28]
jmp 0x404237
mov byte [esp + 0x2268], bl
lea ecx, [esp + 0x34]
call fcn.00401fd0
mov dword [esp + 0x2268], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00401fd0
mov eax, esi
jmp 0x404260
push eax
call fcn.00401450
add esp, 4
mov esi, eax
mov byte [esp + 0x2268], bl
lea ecx, [esp + 0x44]
jmp 0x404237
push eax
call fcn.00401450
add esp, 4
mov esi, eax
jmp 0x4041e4
push eax
call fcn.00401450
add esp, 4
mov esi, eax
mov byte [esp + 0x2268], bl
lea ecx, [esp + 0x3c]
call fcn.00401fd0
mov dword [esp + 0x2268], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40425a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov eax, esi
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x2260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2248]
xor ecx, esp
call fcn.004080de
add esp, 0x2258
ret 0x10