Function at 0x403ea9
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40860b
mov eax, dword fs:[0]
push eax
mov eax, 0x2224
call fcn.00407ce0
mov eax, dword [0x40a0e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and dword [ebp - 0x2224], 0
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x222c], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov dword [ebp - 0x2230], eax
jmp 0x4043c4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4012c8
push edi
mov dword [ebp - 0x2228], 1
call esi
mov ebx, eax
neg ebx
push 0x4012ec
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x403f3b
test ebx, ebx
je 0x403fec
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040273c
mov esi, eax
test esi, esi
jl 0x404438
cmp dword [ebp + 0x10], 0
je 0x403fec
and dword [ebp - 0x2220], 0
push 0x5c
push edi
call fcn.004026b0
test eax, eax
jne 0x4043dc
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00402846
test eax, eax
je 0x403fa1
mov eax, dword [ebp - 0x222c]
push edi
lea ecx, [ebp - 0x2220]
mov dword [ebp - 0x2220], eax
call fcn.00402b9a
and dword [ebp - 0x2220], 0
test ebx, ebx
je 0x403fe1
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040273c
mov esi, eax
test esi, esi
jl 0x4043ee
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004028b8
lea ecx, [ebp - 0x2220]
mov esi, eax
call fcn.0040231c
test esi, esi
jl 0x404438
jmp 0x404389
lea ecx, [ebp - 0x2220]
call fcn.0040231c
push 0x4012d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404018
mov ecx, dword [ebp - 0x221c]
and dword [ebp - 0x2228], eax
push edi
call fcn.0040273c
mov esi, eax
test esi, esi
jl 0x404438
push 0x401304
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404129
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.0040273c
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x404438
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040273c
mov esi, eax
cmp esi, ebx
jl 0x404438
cmp word [edi], 0x3d
jne 0x4043e7
cmp dword [ebp + 0x10], ebx
je 0x4040b7
mov eax, dword [ebp - 0x222c]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2228], eax
push edi
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x2228]
push eax
mov byte [ebp - 4], 1
call fcn.00403b5a
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2228], ebx
lea ecx, [ebp - 0x2228]
jl 0x404433
mov byte [ebp - 4], bl
jmp 0x404384
cmp dword [ebp + 0x14], ebx
jne 0x404114
cmp dword [ebp - 0x2228], ebx
je 0x404114
push 0x20006
push ebx
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2220]
mov dword [ebp - 0x2220], ebx
call fcn.0040238f
cmp eax, ebx
jne 0x4043f6
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x404109
cmp eax, 2
jne 0x4043f6
lea ecx, [ebp - 0x2220]
call fcn.0040231c
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004028b8
mov esi, eax
cmp esi, ebx
jmp 0x4043ce
push 0x5c
push edi
call fcn.004026b0
test eax, eax
jne 0x4043e7
cmp dword [ebp + 0x10], eax
je 0x4041d8
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2224]
call fcn.0040238f
test eax, eax
je 0x40419c
push 0x20019
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2224]
call fcn.0040238f
test eax, eax
je 0x40419c
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2224]
call fcn.0040233a
mov esi, eax
cmp esi, ebx
jne 0x404404
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040273c
mov esi, eax
test esi, esi
jl 0x404438
cmp word [edi], 0x3d
jne 0x404389
mov ecx, dword [ebp - 0x221c]
push edi
push 0
lea eax, [ebp - 0x2224]
push eax
call fcn.00403b5a
mov esi, eax
jmp 0x403fd4
cmp dword [ebp + 0x14], 0
jne 0x4041f9
push 0x20019
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2224]
call fcn.0040238f
mov ebx, eax
jmp 0x4041fc
push 2
pop ebx
test ebx, ebx
je 0x404207
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
push eax
call fcn.00402126
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040273c
mov esi, eax
test esi, esi
jl 0x404438
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004028b8
mov esi, eax
test esi, esi
jl 0x404438
cmp word [edi], 0x7b
jne 0x40429f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40429f
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2224]
push edi
call fcn.00403ea9
mov esi, eax
test esi, esi
jge 0x404289
cmp dword [ebp + 0x14], 0
je 0x404438
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040273c
mov esi, eax
test esi, esi
jl 0x404438
cmp ebx, 2
mov eax, dword [ebp - 0x2230]
mov dword [ebp + 0x14], eax
je 0x4043d0
test ebx, ebx
je 0x4042ca
test eax, eax
jne 0x4043d0
push ebx
call fcn.0040227a
mov esi, eax
jmp 0x404438
test eax, eax
je 0x404321
push dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
call fcn.0040287c
test eax, eax
je 0x404321
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x218]
push eax
call fcn.00402846
test eax, eax
je 0x4043d0
cmp dword [ebp - 0x2228], 0
je 0x4043d0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2224]
call fcn.00402b9a
jmp 0x4043d0
push dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
call fcn.0040287c
lea ecx, [ebp - 0x2224]
mov dword [ebp - 0x2220], eax
call fcn.0040231c
mov ebx, eax
test ebx, ebx
jne 0x404417
cmp dword [ebp - 0x2228], eax
je 0x4043d0
cmp dword [ebp - 0x2220], eax
jne 0x4043d0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x222c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x2228], ebx
test eax, eax
jne 0x404425
lea ecx, [ebp - 0x2228]
call fcn.0040231c
cmp dword [ebp + 0x10], 0
je 0x4043d0
cmp word [edi], 0x7b
jne 0x4043d0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4043d0
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2224]
push edi
call fcn.00403ea9
mov esi, eax
test esi, esi
jl 0x404438
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040273c
mov esi, eax
test esi, esi
jl 0x404438
cmp word [edi], 0x7d
jne 0x403f08
jmp 0x404438
lea ecx, [ebp - 0x2220]
call fcn.0040231c
mov esi, 0x80020009
jmp 0x404438
lea ecx, [ebp - 0x2220]
jmp 0x404433
push eax
call fcn.0040227a
lea ecx, [ebp - 0x2220]
jmp 0x404431
lea ecx, [ebp - 0x2224]
call fcn.0040231c
push esi
call fcn.0040227a
jmp 0x404445
lea ecx, [ebp - 0x2224]
call fcn.0040231c
push ebx
jmp 0x404410
push eax
call fcn.0040227a
lea ecx, [ebp - 0x2228]
mov esi, eax
call fcn.0040231c
lea ecx, [ebp - 0x2224]
call fcn.0040231c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407ccc
leave
ret 0x10