Function at 0x4059d3
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2264
call fcn.0040ee50
mov eax, dword [0x411090]
xor eax, esp
mov dword [esp + 0x2260], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [esp + 0x38], eax
mov eax, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.004058a6
mov ebx, eax
cmp ebx, edi
jl 0x405dd5
cmp word [esi], 0x7d
je 0x405dd3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x403498
push esi
mov dword [esp + 0x30], 1
call ebx
neg eax
push 0x4034bc
sbb edi, edi
push esi
inc edi
call ebx
test eax, eax
je 0x405a63
test edi, edi
je 0x405b0e
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.004058a6
mov ebx, eax
test ebx, ebx
js 0x405dc2
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x405b10
push 0x5c
mov eax, esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.00404f1a
test eax, eax
jne 0x405f02
push esi
call fcn.00405544
test eax, eax
je 0x405ad0
mov eax, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.00405639
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp edi, ebx
je 0x405b08
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.004058a6
mov ebx, eax
test ebx, ebx
js 0x405dc2
mov ecx, dword [esp + 0x10]
mov edi, esi
call fcn.004054e0
mov ebx, eax
test ebx, ebx
js 0x405dc2
and dword [esp + 0x40], 0
jmp 0x405ea9
mov dword [esp + 0x40], ebx
jmp 0x405b10
xor ebx, ebx
push 0x4034a8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405b3b
and dword [esp + 0x28], eax
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.004058a6
mov ebx, eax
test ebx, ebx
js 0x405dc2
xor ebx, ebx
push 0x4034d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405c4d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x268]
call fcn.004058a6
mov ebx, eax
xor edi, edi
cmp ebx, edi
jl 0x405dc2
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.004058a6
mov ebx, eax
cmp ebx, edi
jl 0x405dc2
cmp word [esi], 0x3d
jne 0x405f1c
cmp dword [ebp + 0x10], edi
je 0x405bd4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
push esi
lea eax, [esp + 0x26c]
push eax
lea edx, [esp + 0x50]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.004050ce
mov ebx, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
cmp ebx, edi
jl 0x405f22
mov dword [esp + 0x4c], edi
jmp 0x405ea9
cmp dword [ebp + 0x14], edi
jne 0x405c3d
cmp dword [esp + 0x28], edi
je 0x405c3d
push edi
push dword [esp + 0x24]
mov eax, 0x20006
lea ebx, [esp + 0x34]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.004055e0
cmp eax, edi
jne 0x405f2b
lea eax, [esp + 0x268]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x405c25
cmp eax, 2
jne 0x405f2b
cmp dword [esp + 0x2c], edi
je 0x405c39
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov edi, esi
call fcn.004054e0
jmp 0x405ee9
push 0x5c
mov eax, esi
call fcn.00404f1a
test eax, eax
jne 0x405f02
cmp dword [ebp + 0x10], ebx
je 0x405cdf
push esi
push dword [esp + 0x24]
mov eax, 0x2001f
lea ebx, [esp + 0x1c]
call fcn.004055e0
test eax, eax
je 0x405ca1
push esi
push dword [esp + 0x24]
mov eax, 0x20019
call fcn.004055e0
test eax, eax
je 0x405ca1
push esi
push dword [esp + 0x24]
mov eax, ebx
call fcn.00404fc3
test eax, eax
jne 0x405f4b
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.004058a6
mov ebx, eax
test ebx, ebx
js 0x405dc2
cmp word [esi], 0x3d
jne 0x405ea9
mov ecx, dword [esp + 0x10]
push esi
push 0
lea edx, [esp + 0x1c]
call fcn.004050ce
mov ebx, eax
test ebx, ebx
js 0x405dc2
jmp 0x405ea9
cmp dword [ebp + 0x14], ebx
jne 0x405cfd
push esi
push dword [esp + 0x24]
mov eax, 0x20019
lea ebx, [esp + 0x1c]
call fcn.004055e0
mov dword [esp + 0x24], eax
jmp 0x405d05
mov dword [esp + 0x24], 2
cmp dword [esp + 0x24], 0
je 0x405d13
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x68]
push 0x104
push eax
call fcn.00407eb0
add esp, 0x10
call fcn.004054aa
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.004058a6
mov ebx, eax
test ebx, ebx
js 0x405dc2
mov ecx, dword [esp + 0x10]
mov edi, esi
call fcn.004054e0
mov ebx, eax
test ebx, ebx
js 0x405dc2
cmp word [esi], 0x7b
jne 0x405d95
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x405d95
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x1c]
push esi
call fcn.004059d3
mov ebx, eax
test ebx, ebx
jns 0x405d84
cmp dword [ebp + 0x14], 0
je 0x405dc2
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.004058a6
mov ebx, eax
test ebx, ebx
js 0x405dc2
cmp dword [esp + 0x24], 2
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x14], eax
je 0x405ef3
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
je 0x405dec
cmp dword [esp + 0x38], edi
jne 0x405ef3
call fcn.00405892
mov ebx, eax
cmp dword [esp + 0x14], 0
je 0x405dd3
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x226c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407e9c
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x38], edi
je 0x405e2e
push dword [esp + 0x14]
call fcn.00405771
test eax, eax
je 0x405e2e
lea eax, [esp + 0x60]
push eax
call fcn.00405544
test eax, eax
je 0x405ef3
cmp dword [esp + 0x28], edi
je 0x405ef3
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x18]
call fcn.00405639
jmp 0x405ef3
push dword [esp + 0x14]
call fcn.00405771
mov dword [esp + 0x24], eax
xor eax, eax
cmp dword [esp + 0x14], edi
je 0x405e51
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
cmp eax, edi
jne 0x405f57
cmp dword [esp + 0x28], edi
je 0x405ef3
cmp dword [esp + 0x24], edi
jne 0x405ef3
mov eax, dword [esp + 0x20]
and dword [esp + 0x58], edi
and dword [esp + 0x5c], edi
mov dword [esp + 0x54], eax
lea eax, [esp + 0x60]
push eax
lea edi, [esp + 0x58]
call fcn.0040581d
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
cmp eax, ecx
jne 0x405dbb
and dword [esp + 0x58], ecx
cmp dword [ebp + 0x10], 0
je 0x405ef3
cmp word [esi], 0x7b
jne 0x405ef3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x405ef3
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x1c]
push esi
call fcn.004059d3
mov ebx, eax
test ebx, ebx
js 0x405dc2
mov ecx, dword [esp + 0x10]
mov eax, esi
call fcn.004058a6
mov ebx, eax
test ebx, ebx
js 0x405dc2
cmp word [esi], 0x7d
jne 0x405a34
jmp 0x405dc2
cmp dword [esp + 0x14], ebx
je 0x405f12
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x405dd5
cmp dword [esp + 0x14], edi
jmp 0x405f06
cmp dword [esp + 0x14], edi
jmp 0x405dc7
call fcn.00405892
mov ebx, eax
cmp dword [esp + 0x2c], edi
je 0x405dc2
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405dc2
call fcn.00405892
cmp dword [esp + 0x14], 0
jmp 0x405f60
call fcn.00405892
cmp dword [esp + 0x14], edi
mov esi, eax
je 0x405f6e
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x405dd5