Function at 0x1005e855
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018b8b6
mov eax, dword fs:[0]
push eax
mov eax, 0x2264
call fcn.10189950
mov eax, dword [0x101d5abc]
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 - 0x221c], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2220], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x2248], ecx
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.1005de5f
mov esi, eax
test esi, esi
js 0x1005ee86
jmp 0x1005ee37
push 0x1001bfac
push edi
mov dword [ebp - 0x2238], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x1001bf80
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2228], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1005e90c
test esi, esi
je 0x1005e9ac
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1005de5f
mov esi, eax
test esi, esi
js 0x1005ee7b
cmp dword [ebp + 0x10], 0
je 0x1005e9ac
xor eax, eax
mov ecx, edi
push 0x5c
pop edx
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
call fcn.1005ddc3
test eax, eax
jne 0x1005ee76
push edi
call fcn.1005e45f
test eax, eax
je 0x1005e97c
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2254]
push edi
mov dword [ebp - 0x2254], eax
call fcn.1005d6d3
xor eax, eax
mov dword [ebp - 0x2254], eax
cmp dword [ebp - 0x2228], 0
je 0x1005e9ac
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1005de5f
mov esi, eax
test esi, esi
js 0x1005ee7b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1005e4d3
jmp 0x1005ebf6
push 0x1001bf98
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1005e9d8
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2238], eax
call fcn.1005de5f
mov esi, eax
test esi, esi
js 0x1005ee7b
push 0x1001bf78
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1005eb13
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.1005de5f
mov esi, eax
test esi, esi
js 0x1005ee7b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1005de5f
mov esi, eax
test esi, esi
js 0x1005ee7b
push 0x3d
pop eax
cmp word [edi], ax
jne 0x1005ee76
cmp dword [ebp + 0x10], 0
je 0x1005ea82
xor eax, eax
mov dword [ebp - 0x225c], eax
mov dword [ebp - 0x2258], eax
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2260], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2260]
push eax
call fcn.1005dfae
mov esi, eax
xor eax, eax
mov dword [ebp - 0x2260], eax
test esi, esi
js 0x1005ee7b
mov byte [ebp - 4], al
jmp 0x1005ec00
cmp dword [ebp + 0x14], 0
jne 0x1005eaf8
cmp dword [ebp - 0x2238], 0
je 0x1005eaf8
xor eax, eax
lea ecx, [ebp - 0x2244]
push 0x20006
push eax
push dword [ebp - 0x2220]
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], eax
call fcn.1005d620
test eax, eax
jne 0x1005ee45
mov esi, dword [ebp - 0x2244]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1005eae5
cmp eax, 2
jne 0x1005ee45
test esi, esi
je 0x1005eaf8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2244], eax
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1005e4d3
mov esi, eax
test esi, esi
js 0x1005ee7b
jmp 0x1005ee37
push 0x5c
pop edx
mov ecx, edi
call fcn.1005ddc3
test eax, eax
jne 0x1005ee76
cmp dword [ebp + 0x10], eax
je 0x1005ec5b
mov ebx, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2234]
mov esi, 0x2001f
push esi
push edi
push ebx
call fcn.1005d620
test eax, eax
je 0x1005ebb6
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2234]
call fcn.1005d620
test eax, eax
je 0x1005ebb6
lea eax, [ebp - 0x2270]
xor ecx, ecx
push eax
lea eax, [ebp - 0x2224]
mov dword [ebp - 0x2224], ecx
push eax
push ecx
push esi
push ecx
push ecx
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1005ee65
cmp dword [ebp - 0x2234], eax
je 0x1005eba0
push dword [ebp - 0x2234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2224]
mov dword [ebp - 0x2234], ebx
test eax, eax
jne 0x1005ee6b
jmp 0x1005ebbc
mov ebx, dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1005de5f
mov esi, eax
test esi, esi
js 0x1005ee7b
push 0x3d
pop eax
cmp word [edi], ax
jne 0x1005ec00
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x2234]
push eax
call fcn.1005dfae
mov ebx, dword [ebp - 0x2234]
mov esi, eax
test esi, esi
js 0x1005ee7b
push 0x7b
pop eax
cmp word [edi], ax
jne 0x1005ee37
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2248]
jne 0x1005ec11
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x1005ee37
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.1005e855
mov esi, eax
test esi, esi
js 0x1005ee7b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1005de5f
jmp 0x1005eb04
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x1005ec91
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x2234]
call fcn.1005d620
mov ebx, dword [ebp - 0x2234]
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], esi
test eax, eax
jne 0x1005ec9b
jmp 0x1005eca5
mov dword [ebp - 0x2228], 2
mov dword [ebp - 0x2224], 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.1005d119
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1005de5f
mov esi, eax
test esi, esi
js 0x1005ee7b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1005e4d3
mov esi, eax
test esi, esi
js 0x1005ee7b
push 0x7b
pop eax
cmp word [edi], ax
jne 0x1005ed54
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2248]
jne 0x1005ecfd
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x1005ed54
push dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push ebx
push edi
call fcn.1005e855
mov esi, eax
test esi, esi
jns 0x1005ed3e
cmp dword [ebp - 0x2224], 0
je 0x1005ee7b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1005de5f
mov esi, eax
test esi, esi
js 0x1005ee7b
mov eax, dword [ebp - 0x2228]
cmp eax, 2
je 0x1005ee37
test eax, eax
je 0x1005ed76
cmp dword [ebp + 0x14], 0
je 0x1005ee6b
jmp 0x1005ee37
cmp dword [ebp + 0x14], 0
je 0x1005edc1
push ebx
call fcn.1005e496
test eax, eax
je 0x1005edc1
lea eax, [ebp - 0x218]
push eax
call fcn.1005e45f
test eax, eax
je 0x1005ee37
cmp dword [ebp - 0x2238], 0
je 0x1005ee37
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.1005d6d3
mov ebx, dword [ebp - 0x2234]
jmp 0x1005ee37
push ebx
call fcn.1005e496
mov dword [ebp - 0x2228], eax
test ebx, ebx
je 0x1005edf2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x2234], ebx
test eax, eax
jne 0x1005ee6b
mov eax, dword [ebp - 0x2228]
jmp 0x1005edf4
xor ecx, ecx
cmp dword [ebp - 0x2238], 0
je 0x1005ee37
test eax, eax
jne 0x1005ee37
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 0x226c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2268], ecx
mov dword [ebp - 0x2264], ecx
lea ecx, [ebp - 0x226c]
push eax
call fcn.1005d556
xor ecx, ecx
mov dword [ebp - 0x226c], ecx
test eax, eax
jne 0x1005ee6b
push 0x7d
pop eax
cmp word [edi], ax
jne 0x1005e8d3
jmp 0x1005ee7b
mov ecx, eax
call fcn.1005d1d6
cmp dword [ebp - 0x2244], 0
mov esi, eax
je 0x1005ee7b
push dword [ebp - 0x2244]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005ee7b
mov ebx, dword [ebp - 0x2234]
mov ecx, eax
call fcn.1005d1d6
mov esi, eax
jmp 0x1005ee7b
mov esi, 0x80020009
test ebx, ebx
je 0x1005ee86
push ebx
call dword [sym.imp.ADVAPI32.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.101885f0
leave
ret 0x10