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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2254
call fcn.0041b110
mov eax, dword [0x42f064]
xor eax, esp
mov dword [esp + 0x2250], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov dword [esp + 0x34], eax
mov eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.0040501f
mov esi, eax
cmp esi, edi
jl 0x405dca
cmp word [ebx], 0x7d
je 0x405dc8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x429abc
push ebx
mov dword [esp + 0x2c], 1
call esi
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x405a0a
test edi, edi
je 0x405b06
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.0040501f
mov esi, eax
test esi, esi
js 0x405db7
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x405b06
push 0x5c
mov eax, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00404fd0
pop ecx
test eax, eax
jne 0x405e82
push ebx
call fcn.004054d6
test eax, eax
je 0x405a78
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00404951
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
cmp edi, esi
je 0x405b02
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.0040501f
mov esi, eax
test esi, esi
js 0x405db7
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.0040553a
mov esi, eax
test esi, esi
js 0x405db7
and dword [esp + 0x2c], 0
cmp word [ebx], 0x7b
jne 0x405af3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x405af3
mov ecx, dword [esp + 0xc]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x18]
push ebx
call fcn.0040597c
mov esi, eax
test esi, esi
js 0x405db7
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.0040501f
mov esi, eax
test esi, esi
js 0x405db7
cmp word [ebx], 0x7d
jne 0x4059db
jmp 0x405db7
mov dword [esp + 0x2c], esi
push 0x429acc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405b2f
and dword [esp + 0x24], eax
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.0040501f
mov esi, eax
test esi, esi
js 0x405db7
push 0x429af8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405c3f
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x258]
call fcn.0040501f
mov esi, eax
test esi, esi
js 0x405db7
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.0040501f
mov esi, eax
test esi, esi
js 0x405db7
cmp word [ebx], 0x3d
jne 0x405e9c
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x405bc8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], eax
push ebx
lea eax, [esp + 0x25c]
push eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call fcn.00405145
mov esi, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
cmp esi, edi
jl 0x405edd
mov dword [esp + 0x48], edi
jmp 0x405aaf
cmp dword [ebp + 0x14], edi
jne 0x405c2f
cmp dword [esp + 0x24], edi
je 0x405c2f
xor esi, esi
push 0x20006
push esi
push dword [esp + 0x24]
lea edi, [esp + 0x44]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.004048a2
cmp eax, esi
jne 0x405eb5
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x258]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x405c1c
cmp eax, 2
jne 0x405ea3
cmp edi, esi
je 0x405c2b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.0040553a
jmp 0x405ae9
push 0x5c
mov eax, ebx
call fcn.00404fd0
pop ecx
test eax, eax
jne 0x405e9c
cmp dword [ebp + 0x10], eax
je 0x405cd2
push 0x2001f
push ebx
push dword [esp + 0x24]
lea edi, [esp + 0x1c]
call fcn.004048a2
test eax, eax
je 0x405c94
push 0x20019
push ebx
push dword [esp + 0x24]
call fcn.004048a2
test eax, eax
je 0x405c94
push ebx
push dword [esp + 0x20]
mov eax, edi
call fcn.0040484e
test eax, eax
jne 0x405db0
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.0040501f
mov esi, eax
test esi, esi
js 0x405db7
cmp word [ebx], 0x3d
jne 0x405aaf
mov ecx, dword [esp + 0xc]
push ebx
push 0
lea edx, [esp + 0x18]
call fcn.00405145
mov esi, eax
test esi, esi
js 0x405db7
jmp 0x405aaf
cmp dword [ebp + 0x14], 0
jne 0x405cf1
push 0x20019
push ebx
push dword [esp + 0x24]
lea edi, [esp + 0x1c]
call fcn.004048a2
mov dword [esp + 0x20], eax
jmp 0x405cf9
mov dword [esp + 0x20], 2
cmp dword [esp + 0x20], 0
je 0x405d07
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
push 0x104
push eax
call fcn.004158be
push eax
call fcn.00401781
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov eax, ebx
call fcn.0040501f
mov esi, eax
test esi, esi
js 0x405db7
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.0040553a
mov esi, eax
test esi, esi
js 0x405db7
cmp word [ebx], 0x7b
jne 0x405d8a
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x405d8a
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push dword [esp + 0x18]
push ebx
call fcn.0040597c
mov esi, eax
test esi, esi
jns 0x405d79
cmp dword [ebp + 0x14], 0
je 0x405db7
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.0040501f
mov esi, eax
test esi, esi
js 0x405db7
cmp dword [esp + 0x20], 2
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x14], eax
je 0x405af3
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
je 0x405de1
cmp dword [esp + 0x34], edi
jne 0x405af3
call fcn.004041b4
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x405dc8
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x225c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00414657
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x34], edi
je 0x405e23
push dword [esp + 0x10]
call fcn.00405505
test eax, eax
je 0x405e23
lea eax, [esp + 0x50]
push eax
call fcn.004054d6
test eax, eax
je 0x405af3
cmp dword [esp + 0x24], edi
je 0x405af3
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x14]
call fcn.00404951
jmp 0x405af3
push dword [esp + 0x10]
call fcn.00405505
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x10], edi
je 0x405e46
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x405ed6
cmp dword [esp + 0x24], edi
je 0x405af3
cmp dword [esp + 0x20], edi
jne 0x405af3
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x405db0
jmp 0x405af3
cmp dword [esp + 0x10], esi
je 0x405e92
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x405dca
cmp dword [esp + 0x10], 0
jmp 0x405e86
call fcn.004041b4
mov esi, eax
test edi, edi
je 0x405db7
push edi
jmp 0x405ecb
call fcn.004041b4
cmp dword [esp + 0x38], 0
mov esi, eax
je 0x405db7
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405db7
call fcn.004041b4
mov esi, eax
cmp dword [esp + 0x10], edi
jmp 0x405dbc