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

Disassembly:
mov eax, 0x101cac5
call fcn.01018068
sub esp, 0x228
mov eax, dword [0x1020128]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], ebx
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x234], eax
call fcn.010123c1
jmp 0x1013afe
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x10014b4
push edi
call esi
mov ebx, eax
neg ebx
push 0x10014d8
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x101391d
test ebx, ebx
je 0x10139da
mov ecx, dword [ebp - 0x220]
push edi
call fcn.010123c1
mov esi, eax
test esi, esi
jl 0x1013dd1
cmp dword [ebp + 0x10], 0
je 0x10139da
and dword [ebp - 0x21c], 0
push 0x5c
push edi
mov byte [ebp - 4], 1
call fcn.01012339
test eax, eax
jne 0x1013dc1
mov ecx, dword [ebp - 0x220]
push edi
call fcn.01012662
test eax, eax
je 0x1013987
mov eax, dword [ebp - 0x228]
push edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], eax
call fcn.010137a9
and dword [ebp - 0x21c], 0
test ebx, ebx
je 0x10139cb
mov ecx, dword [ebp - 0x220]
push edi
call fcn.010123c1
mov esi, eax
test esi, esi
jl 0x1013e0d
mov ecx, dword [ebp - 0x220]
push edi
call fcn.01012774
mov esi, eax
test esi, esi
lea ecx, [ebp - 0x21c]
jl 0x1013e13
mov byte [ebp - 4], 0
call fcn.01011a8b
jmp 0x1013d6e
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call fcn.01011a8b
push 0x10014c4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1013a06
mov ecx, dword [ebp - 0x220]
and dword [ebp - 0x230], eax
push edi
call fcn.010123c1
mov esi, eax
test esi, esi
jl 0x1013dd1
push 0x10014f0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1013b07
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call fcn.010123c1
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x1013dd1
mov ecx, dword [ebp - 0x220]
push edi
call fcn.010123c1
mov esi, eax
cmp esi, ebx
jl 0x1013dd1
cmp word [edi], 0x3d
jne 0x1013dcc
cmp dword [ebp + 0x10], ebx
je 0x1013a9d
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x21c], eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.010124ba
lea ecx, [ebp - 0x21c]
mov esi, eax
mov dword [ebp - 0x21c], ebx
call fcn.01011a8b
cmp esi, ebx
jmp 0x1013d6c
cmp dword [ebp + 0x14], ebx
jne 0x1013af2
push 0x20006
push ebx
push dword [ebp - 0x228]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
call fcn.01011afe
cmp eax, ebx
jne 0x1013dff
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x1013ae7
cmp eax, 2
jne 0x1013dfd
lea ecx, [ebp - 0x21c]
call fcn.01011a8b
mov ecx, dword [ebp - 0x220]
push edi
call fcn.01012774
mov esi, eax
cmp esi, ebx
jmp 0x1013db3
push 0x5c
push edi
call fcn.01012339
test eax, eax
jne 0x1013dcc
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x1013bb4
mov esi, 0xf003f
push esi
push edi
push dword [ebp - 0x228]
lea ecx, [ebp - 0x224]
call fcn.01011afe
test eax, eax
je 0x1013b7a
push 0x20019
push edi
push dword [ebp - 0x228]
lea ecx, [ebp - 0x224]
call fcn.01011afe
test eax, eax
je 0x1013b7a
xor eax, eax
push eax
push eax
push esi
push eax
push eax
push edi
push dword [ebp - 0x228]
lea ecx, [ebp - 0x224]
call fcn.01011aa9
test eax, eax
jne 0x1013dcc
mov ecx, dword [ebp - 0x220]
push edi
call fcn.010123c1
mov esi, eax
test esi, esi
jl 0x1013dd1
cmp word [edi], 0x3d
jne 0x1013d6e
mov ecx, dword [ebp - 0x220]
push edi
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.010124ba
jmp 0x1013d68
cmp dword [ebp + 0x14], esi
jne 0x1013bdb
push 0x20019
push edi
push dword [ebp - 0x228]
lea ecx, [ebp - 0x224]
call fcn.01011afe
test eax, eax
je 0x1013bdb
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x22c], esi
jne 0x1013bf3
mov eax, 0x208
call fcn.01018150
mov dword [ebp - 0x22c], esp
push 0x104
push edi
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], esi
jne 0x1013c38
push dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
call fcn.01012698
test eax, eax
jne 0x1013c38
push dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
call fcn.010126d4
test eax, eax
je 0x1013d0b
mov ecx, dword [ebp - 0x220]
push edi
call fcn.010123c1
mov esi, eax
test esi, esi
jl 0x1013dd1
mov ebx, dword [ebp - 0x220]
push edi
mov ecx, ebx
call fcn.01012774
mov esi, eax
test esi, esi
jl 0x1013dd1
cmp word [edi], 0x7b
jne 0x1013cb7
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x224]
push edi
call fcn.01013898
mov esi, eax
test esi, esi
jl 0x1013dd1
cmp dword [ebp + 0x14], 0
je 0x1013cc7
mov eax, dword [ebp - 0x234]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.010123c1
mov esi, eax
test esi, esi
jl 0x1013dd1
push edi
mov ecx, ebx
call fcn.01012774
jmp 0x1013daf
cmp dword [ebp + 0x14], 0
jne 0x1013db5
mov ebx, dword [ebp - 0x220]
push dword [ebp - 0x224]
mov ecx, ebx
call fcn.01012698
test eax, eax
je 0x1013d01
push dword [ebp - 0x22c]
mov ecx, ebx
call fcn.01012662
test eax, eax
je 0x1013cfa
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x224]
call fcn.010137a9
mov ecx, ebx
jmp 0x1013da9
cmp dword [ebp + 0x14], 0
jne 0x1013db5
lea ecx, [ebp - 0x224]
call fcn.01011a8b
test eax, eax
jne 0x1013dcc
cmp dword [ebp - 0x230], eax
je 0x1013d4a
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x21c]
call fcn.01011a8b
mov ecx, dword [ebp - 0x220]
push edi
call fcn.010123c1
mov esi, eax
test esi, esi
jl 0x1013dd1
mov ecx, dword [ebp - 0x220]
push edi
call fcn.01012774
mov esi, eax
test esi, esi
jl 0x1013dd1
cmp dword [ebp + 0x10], 0
je 0x1013db5
cmp word [edi], 0x7b
jne 0x1013db5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x1013db5
mov ecx, dword [ebp - 0x220]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x224]
push edi
call fcn.01013898
mov esi, eax
test esi, esi
jl 0x1013dd1
mov ecx, dword [ebp - 0x220]
push edi
call fcn.010123c1
mov esi, eax
test esi, esi
jl 0x1013dd1
cmp word [edi], 0x7d
jne 0x10138f4
jmp 0x1013dd1
lea ecx, [ebp - 0x21c]
call fcn.01011a8b
mov esi, 0x80020009
lea ecx, [ebp - 0x224]
call fcn.01011a8b
mov eax, esi
lea esp, [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01017bb1
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x1013e0b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp - 0x21c]
call fcn.01011a8b
jmp 0x1013dd1