Function at 0x10005f53
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002aea7
mov eax, dword fs:[0]
push eax
mov eax, 0x2254
call fcn.1002ade0
mov eax, dword [0x1002f538]
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, ecx
mov dword [ebp - 0x2220], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2224], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x223c], ecx
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ecx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.10005df1
mov esi, eax
test esi, esi
js 0x100065a4
jmp 0x10006550
push 0x10002164
push edi
mov dword [ebp - 0x2228], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x10002138
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x221c], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000600a
test esi, esi
je 0x100060a2
mov ecx, dword [ebp - 0x2220]
push edi
call fcn.10005df1
mov esi, eax
test esi, esi
js 0x10006599
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x100060a4
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2248], esi
mov dword [ebp - 0x2244], esi
mov dword [ebp - 0x2240], esi
call fcn.100055cc
test eax, eax
jne 0x10006594
push edi
call fcn.10005ba6
test eax, eax
je 0x10006073
mov eax, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2248]
push edi
mov dword [ebp - 0x2248], eax
call fcn.10005bd7
mov dword [ebp - 0x2248], esi
cmp dword [ebp - 0x221c], esi
je 0x100060a4
mov ecx, dword [ebp - 0x2220]
push edi
call fcn.10005df1
mov esi, eax
test esi, esi
js 0x10006599
mov ecx, dword [ebp - 0x2220]
push edi
call fcn.10005b3d
jmp 0x100062e8
xor esi, esi
push 0x10002150
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100060d0
mov ecx, dword [ebp - 0x2220]
push edi
mov dword [ebp - 0x2228], esi
call fcn.10005df1
mov esi, eax
test esi, esi
js 0x10006599
push 0x10002130
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100061f1
mov ecx, dword [ebp - 0x2220]
lea eax, [ebp - 0x2218]
push eax
call fcn.10005df1
mov esi, eax
test esi, esi
js 0x10006599
mov ecx, dword [ebp - 0x2220]
push edi
call fcn.10005df1
mov esi, eax
test esi, esi
js 0x10006599
push 0x3d
pop eax
cmp word [edi], ax
jne 0x10006594
cmp dword [ebp + 0x10], 0
je 0x1000616b
mov ecx, dword [ebp - 0x2220]
xor eax, eax
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
mov eax, dword [ebp - 0x2224]
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2254]
push eax
call fcn.1000572d
mov esi, eax
xor eax, eax
mov dword [ebp - 0x2254], eax
jmp 0x100062ea
cmp dword [ebp + 0x14], 0
jne 0x100061d6
cmp dword [ebp - 0x2228], 0
je 0x100061d6
lea eax, [ebp - 0x221c]
xor ecx, ecx
push eax
push 0x20006
push ecx
push ecx
push dword [ebp - 0x2224]
mov dword [ebp - 0x221c], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000657a
mov esi, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
push esi
mov dword [ebp - 0x2228], esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
je 0x100061cb
cmp eax, 2
jne 0x1000655e
test esi, esi
je 0x100061d6
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2220]
push edi
call fcn.10005b3d
mov esi, eax
test esi, esi
js 0x10006599
jmp 0x10006550
push 0x5c
pop edx
mov ecx, edi
call fcn.100055cc
test eax, eax
jne 0x10006594
cmp dword [ebp + 0x10], eax
je 0x1000634d
mov esi, dword [ebp - 0x2224]
lea eax, [ebp - 0x221c]
push eax
push 0x2001f
xor ecx, ecx
push ecx
push edi
push esi
mov dword [ebp - 0x221c], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000624e
test ebx, ebx
je 0x1000623e
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, dword [ebp - 0x221c]
mov dword [ebp - 0x2238], ebx
test eax, eax
je 0x100062ae
lea eax, [ebp - 0x221c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push edi
push esi
mov dword [ebp - 0x221c], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000628a
test ebx, ebx
je 0x1000627a
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, dword [ebp - 0x221c]
mov dword [ebp - 0x2238], ebx
test eax, eax
je 0x100062ae
push ecx
push ecx
push 0x2001f
push ecx
push ecx
push edi
push esi
lea ecx, [ebp - 0x2238]
call fcn.10005608
test eax, eax
jne 0x10006583
mov ebx, dword [ebp - 0x2238]
mov ecx, dword [ebp - 0x2220]
push edi
call fcn.10005df1
mov esi, eax
test esi, esi
js 0x10006599
push 0x3d
pop eax
cmp word [edi], ax
jne 0x100062f2
mov ecx, dword [ebp - 0x2220]
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x2238]
push eax
call fcn.1000572d
mov ebx, dword [ebp - 0x2238]
mov esi, eax
test esi, esi
js 0x10006599
push 0x7b
pop eax
cmp word [edi], ax
jne 0x10006550
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x223c]
jne 0x10006303
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10006550
mov ecx, dword [ebp - 0x2220]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.10003dc3
mov esi, eax
test esi, esi
js 0x10006599
mov ecx, dword [ebp - 0x2220]
push edi
call fcn.10005df1
jmp 0x100061e2
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x100063a5
lea eax, [ebp - 0x221c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push edi
push dword [ebp - 0x2224]
mov dword [ebp - 0x221c], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov dword [ebp - 0x222c], eax
test eax, eax
jne 0x100063ae
mov dword [ebp - 0x222c], eax
test ebx, ebx
je 0x10006397
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [ebp - 0x222c], eax
mov ebx, dword [ebp - 0x221c]
mov dword [ebp - 0x2238], ebx
jmp 0x100063ae
push 2
pop eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x221c], esi
test eax, eax
je 0x100063c2
mov dword [ebp - 0x221c], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
mov ecx, eax
call fcn.10005b0a
mov ecx, dword [ebp - 0x2220]
push edi
call fcn.10005df1
mov esi, eax
test esi, esi
js 0x10006599
mov ecx, dword [ebp - 0x2220]
push edi
call fcn.10005b3d
mov esi, eax
test esi, esi
js 0x10006599
push 0x7b
pop eax
cmp word [edi], ax
jne 0x10006471
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x223c]
jne 0x1000641a
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10006471
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2220]
xor eax, eax
push eax
push ebx
push edi
call fcn.10005f53
mov esi, eax
test esi, esi
jns 0x1000645b
cmp dword [ebp - 0x221c], 0
je 0x10006599
mov ecx, dword [ebp - 0x2220]
push edi
call fcn.10005df1
mov esi, eax
test esi, esi
js 0x10006599
mov ecx, dword [ebp - 0x222c]
cmp ecx, 2
je 0x10006550
test ecx, ecx
je 0x10006493
cmp dword [ebp + 0x14], 0
je 0x1000657c
jmp 0x10006550
cmp dword [ebp + 0x14], 0
je 0x100064de
push ebx
call fcn.10005ce5
test eax, eax
je 0x100064de
lea eax, [ebp - 0x218]
push eax
call fcn.10005ba6
test eax, eax
je 0x10006550
cmp dword [ebp - 0x2228], 0
je 0x10006550
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2238]
call fcn.10005bd7
mov ebx, dword [ebp - 0x2238]
jmp 0x10006550
push ebx
call fcn.10005ce5
mov dword [ebp - 0x221c], eax
test ebx, ebx
je 0x1000650b
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x2238], ebx
test eax, eax
jne 0x1000657a
mov eax, dword [ebp - 0x221c]
jmp 0x1000650d
xor ecx, ecx
cmp dword [ebp - 0x2228], 0
je 0x10006550
test eax, eax
jne 0x10006550
mov eax, dword [ebp - 0x2224]
mov dword [ebp - 0x2260], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x225c], ecx
mov dword [ebp - 0x2258], ecx
lea ecx, [ebp - 0x2260]
push eax
call fcn.10005d35
xor ecx, ecx
mov dword [ebp - 0x2260], ecx
test eax, eax
jne 0x1000657a
push 0x7d
pop eax
cmp word [edi], ax
jne 0x10005fd1
jmp 0x10006599
mov ecx, eax
call fcn.10005de1
mov esi, eax
mov eax, dword [ebp - 0x2228]
test eax, eax
je 0x10006599
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x10006599
mov ecx, eax
call fcn.10005de1
jmp 0x10006590
mov ecx, eax
call fcn.10005de1
mov ebx, dword [ebp - 0x2238]
mov esi, eax
jmp 0x10006599
mov esi, 0x80020009
test ebx, ebx
je 0x100065a4
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
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.10029f60
mov esp, ebp
pop ebp
ret 0x10