Function at 0x100396cf
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a36a6
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.100040cc
mov eax, dword [0x100b7c0c]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x221c], eax
xor eax, eax
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2268], eax
call fcn.100369ff
mov esi, eax
test esi, esi
js 0x10039ca8
push 0x7d
pop eax
cmp word [edi], ax
je 0x10039ca8
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x2224], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x100bfb88
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2220], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10039789
test esi, esi
je 0x10039853
push edi
mov ecx, ebx
call fcn.100369ff
mov esi, eax
test esi, esi
js 0x10039ca8
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x10039855
push 0x5c
push edi
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
call fcn.1003c720
test eax, eax
jne 0x10039c98
push edi
mov ecx, ebx
call fcn.1002d8d8
test eax, eax
je 0x1003980a
mov eax, dword [ebp - 0x221c]
lea ecx, [ebp - 0x2230]
push edi
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
call fcn.10039296
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
cmp dword [ebp - 0x2220], esi
je 0x10039846
push edi
mov ecx, ebx
call fcn.100369ff
mov esi, eax
test esi, esi
js 0x10039c90
push edi
mov ecx, ebx
call fcn.1003c1e7
lea ecx, [ebp - 0x2230]
mov esi, eax
call fcn.10006dcf
test esi, esi
jns 0x10039c2b
jmp 0x10039ca8
lea ecx, [ebp - 0x2230]
call fcn.10006dcf
jmp 0x10039855
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003987d
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], esi
call fcn.100369ff
mov esi, eax
test esi, esi
js 0x10039ca8
push 0x100bfb80
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100399a9
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.100369ff
mov esi, eax
test esi, esi
js 0x10039ca8
push edi
mov ecx, ebx
call fcn.100369ff
mov esi, eax
test esi, esi
js 0x10039ca8
push 0x3d
pop eax
cmp word [edi], ax
jne 0x10039ca3
cmp dword [ebp + 0x10], 0
je 0x1003992f
xor eax, eax
mov ecx, ebx
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x224c], eax
xor eax, eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x224c]
push eax
call fcn.1002c647
mov esi, eax
lea ecx, [ebp - 0x224c]
xor eax, eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], eax
test esi, esi
js 0x10039ce1
mov byte [ebp - 4], al
jmp 0x10039c26
cmp dword [ebp + 0x14], 0
jne 0x1003999c
cmp dword [ebp - 0x2224], 0
je 0x1003999c
xor eax, eax
lea ecx, [ebp - 0x2264]
push 0x20006
push eax
push dword [ebp - 0x221c]
mov dword [ebp - 0x2264], eax
mov dword [ebp - 0x2260], eax
mov dword [ebp - 0x225c], eax
call fcn.10006d64
test eax, eax
jne 0x10039cd3
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2264]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10039991
cmp eax, 2
jne 0x10039cd3
lea ecx, [ebp - 0x2264]
call fcn.10006dcf
push edi
mov ecx, ebx
call fcn.1003c1e7
jmp 0x10039c7a
push 0x5c
push edi
call fcn.1003c720
test eax, eax
jne 0x10039ca3
cmp dword [ebp + 0x10], eax
je 0x10039a4b
mov esi, dword [ebp - 0x221c]
lea ecx, [ebp - 0x223c]
push 0x2001f
push edi
push esi
call fcn.10006d64
test eax, eax
je 0x10039a14
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x223c]
call fcn.10006d64
test eax, eax
je 0x10039a14
xor eax, eax
lea ecx, [ebp - 0x223c]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.10009041
test eax, eax
jne 0x10039b42
push edi
mov ecx, ebx
call fcn.100369ff
mov esi, eax
test esi, esi
js 0x10039ca8
push 0x3d
pop eax
cmp word [edi], ax
jne 0x10039c2b
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x223c]
push eax
call fcn.1002c647
mov esi, eax
jmp 0x10039839
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x10039a6b
push 0x20019
push edi
push dword [ebp - 0x221c]
lea ecx, [ebp - 0x223c]
call fcn.10006d64
jmp 0x10039a6e
push 2
pop eax
push 1
test eax, eax
mov dword [ebp - 0x2220], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
push eax
call fcn.100102d4
push edi
mov ecx, ebx
call fcn.100369ff
mov esi, eax
test esi, esi
js 0x10039ca8
push edi
mov ecx, ebx
call fcn.1003c1e7
mov esi, eax
test esi, esi
js 0x10039ca8
push 0x7b
pop eax
cmp word [edi], ax
jne 0x10039b1e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2240]
jne 0x10039ace
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x10039b1e
push dword [ebp + 0x14]
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp - 0x223c]
push edi
call fcn.100396cf
mov esi, eax
test esi, esi
jns 0x10039b0c
cmp dword [ebp + 0x14], 0
je 0x10039ca8
push edi
mov ecx, ebx
call fcn.100369ff
mov esi, eax
test esi, esi
js 0x10039ca8
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x2268]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x10039c80
test eax, eax
je 0x10039b4f
test ecx, ecx
jne 0x10039c80
push eax
call fcn.1002d585
mov esi, eax
jmp 0x10039ca8
test ecx, ecx
je 0x10039b9e
push dword [ebp - 0x223c]
mov ecx, ebx
call fcn.10033cf1
test eax, eax
je 0x10039b9e
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.1002d8d8
test eax, eax
je 0x10039c80
cmp dword [ebp - 0x2224], 0
je 0x10039c80
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x223c]
call fcn.10039296
jmp 0x10039c80
push dword [ebp - 0x223c]
mov ecx, ebx
call fcn.10033cf1
lea ecx, [ebp - 0x223c]
mov dword [ebp - 0x2220], eax
call fcn.10006dcf
test eax, eax
jne 0x10039b42
cmp dword [ebp - 0x2224], eax
je 0x10039c80
cmp dword [ebp - 0x2220], eax
jne 0x10039c80
mov eax, dword [ebp - 0x221c]
lea ecx, [ebp - 0x2258]
mov dword [ebp - 0x2258], eax
xor eax, eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x218]
push eax
call fcn.10011b1f
xor ecx, ecx
mov dword [ebp - 0x2258], ecx
mov dword [ebp - 0x2254], ecx
mov dword [ebp - 0x2250], ecx
test eax, eax
jne 0x10039ce8
lea ecx, [ebp - 0x2258]
call fcn.10006dcf
cmp dword [ebp + 0x10], 0
je 0x10039c80
push 0x7b
pop eax
cmp word [edi], ax
jne 0x10039c80
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2240]
jne 0x10039c3e
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x10039c83
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x223c]
push edi
call fcn.100396cf
mov esi, eax
test esi, esi
js 0x10039ca8
push edi
mov ecx, ebx
call fcn.100369ff
mov esi, eax
test esi, esi
js 0x10039ca8
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
je 0x10039ca8
jmp 0x10039754
lea ecx, [ebp - 0x2230]
jmp 0x10039ce1
lea ecx, [ebp - 0x2230]
call fcn.10006dcf
mov esi, 0x80020009
lea ecx, [ebp - 0x223c]
call fcn.10006dcf
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.10001550
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.1002d585
lea ecx, [ebp - 0x2264]
mov esi, eax
call fcn.10006dcf
jmp 0x10039ca8
push eax
call fcn.1002d585
lea ecx, [ebp - 0x2258]
jmp 0x10039cdf