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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1005084]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x230], eax
call fcn.0100200b
jmp 0x1003421
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1001204
push edi
call esi
mov ebx, eax
neg ebx
push 0x1001228
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x1003252
test ebx, ebx
je 0x10032fa
mov ecx, dword [ebp - 0x214]
push edi
call fcn.0100200b
mov esi, eax
test esi, esi
jl 0x100374a
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x10032fa
push 0x5c
push edi
mov dword [ebp - 0x210], esi
call fcn.01001ee6
test eax, eax
jne 0x100373a
mov ecx, dword [ebp - 0x214]
push edi
call fcn.0100211d
test eax, eax
je 0x10032b7
mov eax, dword [ebp - 0x21c]
push edi
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], eax
call fcn.01002795
mov dword [ebp - 0x210], esi
cmp ebx, esi
je 0x10032ef
mov ecx, dword [ebp - 0x214]
push edi
call fcn.0100200b
mov esi, eax
test esi, esi
jl 0x1003787
mov ecx, dword [ebp - 0x214]
push edi
call fcn.0100221a
lea ecx, [ebp - 0x210]
mov esi, eax
call fcn.01001ac3
jmp 0x10036e3
lea ecx, [ebp - 0x210]
call fcn.01001ac3
push 0x1001214
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003326
mov ecx, dword [ebp - 0x214]
and dword [ebp - 0x228], eax
push edi
call fcn.0100200b
mov esi, eax
test esi, esi
jl 0x100374a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1001240
push edi
xor ebx, ebx
call esi
test eax, eax
jne 0x100342a
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call fcn.0100200b
mov esi, eax
cmp esi, ebx
jl 0x100374a
mov ecx, dword [ebp - 0x214]
push edi
call fcn.0100200b
mov esi, eax
cmp esi, ebx
jl 0x100374a
cmp word [edi], 0x3d
jne 0x1003745
cmp dword [ebp + 0x10], ebx
je 0x10033c0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
push ebx
mov dword [ebp - 0x210], eax
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.01002f24
lea ecx, [ebp - 0x210]
mov esi, eax
mov dword [ebp - 0x210], ebx
call fcn.01001ac3
cmp esi, ebx
jmp 0x10036e5
cmp dword [ebp + 0x14], ebx
jne 0x1003415
push 0x20006
push ebx
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
call fcn.01001b36
cmp eax, ebx
jne 0x1003779
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x100340a
cmp eax, 2
jne 0x1003777
lea ecx, [ebp - 0x210]
call fcn.01001ac3
mov ecx, dword [ebp - 0x214]
push edi
call fcn.0100221a
mov esi, eax
cmp esi, ebx
jmp 0x100372c
push 0x5c
push edi
call fcn.01001ee6
test eax, eax
jne 0x1003745
cmp dword [ebp + 0x10], ebx
je 0x1003505
push 0xf003f
push edi
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
call fcn.01001b36
test eax, eax
je 0x100349c
push 0x20019
push edi
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
call fcn.01001b36
test eax, eax
je 0x100349c
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push edi
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
call fcn.01001ae1
test eax, eax
jne 0x1003745
mov ax, word [edi]
cmp ax, 0x4c
mov byte [ebp - 0x224], 0
je 0x10034b2
cmp ax, 0x6c
jne 0x10034c5
push 0x10014dc
push edi
call esi
test eax, eax
jne 0x10034c5
mov byte [ebp - 0x224], 1
mov ecx, dword [ebp - 0x214]
push edi
call fcn.0100200b
mov esi, eax
test esi, esi
jl 0x100374a
cmp word [edi], 0x3d
jne 0x10036e7
push dword [ebp - 0x224]
mov ecx, dword [ebp - 0x214]
push edi
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.01002f24
jmp 0x10036e1
cmp dword [ebp + 0x14], ebx
jne 0x100352c
push 0x20019
push edi
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
call fcn.01001b36
test eax, eax
je 0x100352c
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x220], ebx
jne 0x1003570
mov esi, 0x208
push esi
call fcn.01001904
test al, al
je 0x1003552
mov eax, esi
call fcn.010045f0
mov dword [ebp - 0x220], esp
jmp 0x1003564
push esi
lea ecx, [ebp - 0x22c]
call fcn.01002ede
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], ebx
je 0x1003794
push 0x104
push edi
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], ebx
jne 0x10035b5
push dword [ebp - 0x218]
mov ecx, dword [ebp - 0x214]
call fcn.01002153
test eax, eax
jne 0x10035b5
push dword [ebp - 0x218]
mov ecx, dword [ebp - 0x214]
call fcn.0100218f
test eax, eax
je 0x1003684
mov ebx, dword [ebp - 0x214]
push edi
mov ecx, ebx
call fcn.0100200b
mov esi, eax
test esi, esi
jl 0x100374a
push edi
mov ecx, ebx
call fcn.0100221a
mov esi, eax
test esi, esi
jl 0x100374a
cmp word [edi], 0x7b
jne 0x1003630
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x218]
push edi
call fcn.010031cf
mov esi, eax
test esi, esi
jl 0x100374a
cmp dword [ebp + 0x14], 0
je 0x1003640
mov eax, dword [ebp - 0x230]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.0100200b
mov esi, eax
test esi, esi
jl 0x100374a
push edi
mov ecx, ebx
call fcn.0100221a
jmp 0x1003728
cmp dword [ebp + 0x14], 0
jne 0x100372e
mov ebx, dword [ebp - 0x214]
push dword [ebp - 0x218]
mov ecx, ebx
call fcn.01002153
test eax, eax
je 0x100367a
push dword [ebp - 0x220]
mov ecx, ebx
call fcn.0100211d
test eax, eax
je 0x1003673
push dword [ebp - 0x220]
lea ecx, [ebp - 0x218]
call fcn.01002795
mov ecx, ebx
jmp 0x1003722
cmp dword [ebp + 0x14], 0
jne 0x100372e
lea ecx, [ebp - 0x218]
call fcn.01001ac3
test eax, eax
jne 0x1003745
cmp dword [ebp - 0x228], eax
je 0x10036c3
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x210], 0
lea ecx, [ebp - 0x210]
call fcn.01001ac3
mov ecx, dword [ebp - 0x214]
push edi
call fcn.0100200b
mov esi, eax
test esi, esi
jl 0x100374a
mov ecx, dword [ebp - 0x214]
push edi
call fcn.0100221a
mov esi, eax
test esi, esi
jl 0x100374a
cmp dword [ebp + 0x10], 0
je 0x100372e
cmp word [edi], 0x7b
jne 0x100372e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x100372e
mov ecx, dword [ebp - 0x214]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x218]
push edi
call fcn.010031cf
mov esi, eax
test esi, esi
jl 0x100374a
mov ecx, dword [ebp - 0x214]
push edi
call fcn.0100200b
mov esi, eax
test esi, esi
jl 0x100374a
cmp word [edi], 0x7d
jne 0x1003229
jmp 0x100374a
lea ecx, [ebp - 0x210]
call fcn.01001ac3
mov esi, 0x80020009
lea ecx, [ebp - 0x218]
call fcn.01001ac3
lea ecx, [ebp - 0x22c]
call fcn.010026e9
mov eax, esi
lea esp, [ebp - 0x23c]
mov ecx, dword [ebp - 4]
call fcn.010042c9
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x1003785
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp - 0x210]
call fcn.01001ac3
jmp 0x100374a
mov esi, 0x8007000e
jmp 0x100374a