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

Disassembly:
mov eax, 0x40caac
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x21c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
call fcn.004040ab
jmp 0x40581a
mov esi, dword [sym.imp.mssws.dll_lstrcmpiW]
push 0x401304
push edi
call esi
mov ebx, eax
neg ebx
push 0x401328
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x405687
test ebx, ebx
je 0x40570d
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004040ab
mov esi, eax
test esi, esi
jl 0x405a84
cmp dword [ebp + 0x10], 0
je 0x40570d
and dword [ebp + 8], 0
mov byte [ebp - 4], 1
push 0x5c
push edi
call fcn.0040403d
test eax, eax
jne 0x405a73
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00404313
test eax, eax
je 0x4056d8
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.004053d4
and dword [ebp + 8], 0
test ebx, ebx
je 0x405701
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004040ab
mov esi, eax
test esi, esi
jl 0x405ab9
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004043ea
mov esi, eax
test esi, esi
jmp 0x4057ac
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403b67
push 0x401314
push edi
call dword [sym.imp.mssws.dll_lstrcmpiW]
test eax, eax
jne 0x405733
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], eax
push edi
call fcn.004040ab
mov esi, eax
test esi, esi
jl 0x405a84
push 0x401340
push edi
call dword [sym.imp.mssws.dll_lstrcmpiW]
test eax, eax
jne 0x405823
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x228]
push eax
call fcn.004040ab
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x405a84
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004040ab
mov esi, eax
cmp esi, ebx
jl 0x405a84
cmp word [edi], 0x3d
jne 0x405a7f
cmp dword [ebp + 0x10], ebx
je 0x4057c3
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 2
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.0040419d
mov esi, eax
mov dword [ebp + 8], ebx
cmp esi, ebx
jl 0x405ab9
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403b67
jmp 0x405a29
cmp dword [ebp + 0x14], ebx
jne 0x405811
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 3
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
call fcn.00403bcc
cmp eax, ebx
jne 0x405aab
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
call dword [sym.imp.mssws.dll_RegDeleteValueW]
cmp eax, ebx
je 0x405805
cmp eax, 2
jne 0x405aa9
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403b67
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004043ea
mov esi, eax
cmp esi, ebx
jmp 0x405a65
push 0x5c
push edi
call fcn.0040403d
test eax, eax
jne 0x405a7f
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4058b1
mov esi, 0xf003f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00403bcc
xor ebx, ebx
cmp eax, ebx
je 0x405880
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00403bcc
cmp eax, ebx
je 0x405880
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00403b7e
cmp eax, ebx
jne 0x405a7f
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004040ab
mov esi, eax
test esi, esi
jl 0x405a84
cmp word [edi], 0x3d
jne 0x405a29
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.0040419d
jmp 0x405a23
cmp dword [ebp + 0x14], esi
jne 0x4058d2
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00403bcc
test eax, eax
je 0x4058d2
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x18], esi
jne 0x4058e4
mov eax, 0x208
call fcn.004086b0
mov dword [ebp - 0x18], esp
push 0x104
push edi
push dword [ebp - 0x18]
call dword [sym.imp.mssws.dll_lstrcpynW]
cmp dword [ebp + 0x14], esi
jne 0x40591a
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.0040433f
test eax, eax
jne 0x40591a
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.00404374
test eax, eax
je 0x4059d2
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004040ab
mov esi, eax
test esi, esi
jl 0x405a84
mov ebx, dword [ebp - 0x10]
push edi
mov ecx, ebx
call fcn.004043ea
mov esi, eax
test esi, esi
jl 0x405a84
cmp word [edi], 0x7b
jne 0x40598d
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x14]
push edi
call fcn.00405622
mov esi, eax
test esi, esi
jl 0x405a84
cmp dword [ebp + 0x14], 0
je 0x40599a
mov eax, dword [ebp - 0x20]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.004040ab
mov esi, eax
test esi, esi
jl 0x405a84
push edi
mov ecx, ebx
call fcn.004043ea
jmp 0x405a61
cmp dword [ebp + 0x14], 0
jne 0x405a67
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.0040433f
test eax, eax
je 0x4059c8
push dword [ebp - 0x18]
mov ecx, ebx
call fcn.00404313
test eax, eax
je 0x4059c1
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.004053d4
mov ecx, ebx
jmp 0x405a5b
cmp dword [ebp + 0x14], 0
jne 0x405a67
lea ecx, [ebp - 0x14]
call fcn.00403b67
test eax, eax
jne 0x405a7f
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x405a0b
mov dword [ebp + 8], esi
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.mssws.dll_RegDeleteKeyW]
mov dword [ebp + 8], esi
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403b67
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004040ab
mov esi, eax
test esi, esi
jl 0x405a84
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004043ea
mov esi, eax
test esi, esi
jl 0x405a84
cmp dword [ebp + 0x10], 0
je 0x405a67
cmp word [edi], 0x7b
jne 0x405a67
push edi
call dword [sym.imp.mssws.dll_lstrlenW]
cmp eax, 1
jne 0x405a67
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push edi
call fcn.00405622
mov esi, eax
test esi, esi
jl 0x405a84
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004040ab
mov esi, eax
test esi, esi
jl 0x405a84
cmp word [edi], 0x7d
jne 0x40565e
jmp 0x405a84
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403b67
mov esi, 0x80020009
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403b67
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 0x405ab7
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403b67
jmp 0x405a84