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

Disassembly:
mov eax, 0x404f59
call fcn.00404e90
sub esp, 0x21c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
call fcn.00402527
jmp 0x40327a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4011c4
push edi
call esi
mov ebx, eax
neg ebx
push 0x4011e8
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4030ee
test ebx, ebx
je 0x403186
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402527
mov esi, eax
test esi, esi
jl 0x4034d4
cmp dword [ebp + 0x10], 0
je 0x403186
and dword [ebp + 8], 0
push 0x5c
push edi
mov byte [ebp - 4], 1
call fcn.004024b9
test eax, eax
jne 0x4034c7
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004027ba
test eax, eax
je 0x40313f
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00402fad
and dword [ebp + 8], 0
test ebx, ebx
je 0x40317a
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402527
mov esi, eax
test esi, esi
jl 0x403505
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402891
mov esi, eax
test esi, esi
lea ecx, [ebp + 8]
jl 0x403508
and byte [ebp - 4], 0
call fcn.0040204e
jmp 0x40347d
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040204e
push 0x4011d4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4031ac
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], eax
push edi
call fcn.00402527
mov esi, eax
test esi, esi
jl 0x4034d4
push 0x401200
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403283
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x228]
push eax
call fcn.00402527
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x4034d4
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402527
mov esi, eax
cmp esi, ebx
jl 0x4034d4
cmp word [edi], 0x3d
jne 0x4034cf
cmp dword [ebp + 0x10], ebx
je 0x40322b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00402619
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.0040204e
cmp esi, ebx
jmp 0x40347b
cmp dword [ebp + 0x14], ebx
jne 0x403271
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.004020b3
cmp eax, ebx
jne 0x4034f7
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x403269
cmp eax, 2
jne 0x4034f5
lea ecx, [ebp + 8]
call fcn.0040204e
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402891
mov esi, eax
cmp esi, ebx
jmp 0x4034b9
push 0x5c
push edi
call fcn.004024b9
test eax, eax
jne 0x4034cf
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x403311
mov esi, 0xf003f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004020b3
test eax, eax
je 0x4032e0
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004020b3
test eax, eax
je 0x4032e0
xor eax, eax
push eax
push eax
push esi
push eax
push eax
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00402065
test eax, eax
jne 0x4034cf
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402527
mov esi, eax
test esi, esi
jl 0x4034d4
cmp word [edi], 0x3d
jne 0x40347d
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00402619
jmp 0x403477
cmp dword [ebp + 0x14], esi
jne 0x403332
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004020b3
test eax, eax
je 0x403332
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x18], esi
jne 0x403344
mov eax, 0x208
call fcn.00404e40
mov dword [ebp - 0x18], esp
push 0x104
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], esi
jne 0x40337a
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.004027e6
test eax, eax
jne 0x40337a
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.0040281b
test eax, eax
je 0x403432
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402527
mov esi, eax
test esi, esi
jl 0x4034d4
mov ebx, dword [ebp - 0x10]
push edi
mov ecx, ebx
call fcn.00402891
mov esi, eax
test esi, esi
jl 0x4034d4
cmp word [edi], 0x7b
jne 0x4033ed
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x14]
push edi
call fcn.00403089
mov esi, eax
test esi, esi
jl 0x4034d4
cmp dword [ebp + 0x14], 0
je 0x4033fa
mov eax, dword [ebp - 0x20]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.00402527
mov esi, eax
test esi, esi
jl 0x4034d4
push edi
mov ecx, ebx
call fcn.00402891
jmp 0x4034b5
cmp dword [ebp + 0x14], 0
jne 0x4034bb
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.004027e6
test eax, eax
je 0x403428
push dword [ebp - 0x18]
mov ecx, ebx
call fcn.004027ba
test eax, eax
je 0x403421
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.00402fad
mov ecx, ebx
jmp 0x4034af
cmp dword [ebp + 0x14], 0
jne 0x4034bb
lea ecx, [ebp - 0x14]
call fcn.0040204e
test eax, eax
jne 0x4034cf
cmp dword [ebp - 0x1c], eax
je 0x40345f
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
call fcn.0040204e
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402527
mov esi, eax
test esi, esi
jl 0x4034d4
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402891
mov esi, eax
test esi, esi
jl 0x4034d4
cmp dword [ebp + 0x10], 0
je 0x4034bb
cmp word [edi], 0x7b
jne 0x4034bb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4034bb
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push edi
call fcn.00403089
mov esi, eax
test esi, esi
jl 0x4034d4
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00402527
mov esi, eax
test esi, esi
jl 0x4034d4
cmp word [edi], 0x7d
jne 0x4030c5
jmp 0x4034d4
lea ecx, [ebp + 8]
call fcn.0040204e
mov esi, 0x80020009
lea ecx, [ebp - 0x14]
call fcn.0040204e
mov eax, esi
lea esp, [ebp - 0x234]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x403503
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp + 8]
call fcn.0040204e
jmp 0x4034d4