Function at 0x4138fd
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2264
call fcn.0042fc60
mov eax, dword [0x44a2f0]
xor eax, esp
mov dword [esp + 0x2260], eax
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [esp + 8], ecx
xor ecx, ecx
push esi
mov ebx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x5c], ecx
mov ecx, eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
call fcn.00412f4b
mov esi, eax
test esi, esi
js 0x413e85
push 0x7d
pop eax
cmp word [edi], ax
je 0x413e76
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x44316c
sbb esi, esi
inc esi
push edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41399b
test esi, esi
je 0x413a47
mov ecx, dword [esp + 0xc]
push edi
call fcn.00412f4b
mov esi, eax
test esi, esi
js 0x413e76
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x413a49
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00412ef6
test eax, eax
jne 0x413e71
push edi
call fcn.00413466
test eax, eax
je 0x413a08
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.0041287e
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
cmp dword [esp + 0x14], esi
je 0x413a41
mov ebx, dword [esp + 0xc]
mov ecx, ebx
push edi
call fcn.00412f4b
mov esi, eax
test esi, esi
js 0x413e76
push edi
mov ecx, ebx
call fcn.004134cc
mov esi, eax
test esi, esi
js 0x413e76
xor ebx, ebx
mov dword [esp + 0x2c], ebx
jmp 0x413de8
mov dword [esp + 0x2c], esi
jmp 0x413a49
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x413a71
mov ecx, dword [esp + 0xc]
push edi
mov dword [esp + 0x28], esi
call fcn.00412f4b
mov esi, eax
test esi, esi
js 0x413e76
push 0x443164
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x413b94
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x268]
push eax
call fcn.00412f4b
mov esi, eax
test esi, esi
js 0x413e76
mov ecx, dword [esp + 0xc]
push edi
call fcn.00412f4b
mov esi, eax
test esi, esi
js 0x413e76
push 0x3d
pop eax
cmp word [edi], ax
jne 0x413e71
cmp dword [ebp + 0x10], 0
je 0x413b0e
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x268]
push edi
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], ebx
push eax
mov dword [esp + 0x54], ebx
call fcn.0041309d
mov esi, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
test esi, esi
js 0x413e76
mov dword [esp + 0x44], ebx
jmp 0x413de8
cmp dword [ebp + 0x14], 0
jne 0x413b7b
cmp dword [esp + 0x24], 0
je 0x413b7b
xor esi, esi
lea ecx, [esp + 0x34]
push 0x20006
push esi
push dword [esp + 0x18]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call fcn.004127c2
test eax, eax
jne 0x413e55
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x268]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x413b64
cmp eax, 2
jne 0x413e45
test ebx, ebx
je 0x413b73
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], esi
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0xc]
push edi
call fcn.004134cc
mov esi, eax
test esi, esi
js 0x413e76
jmp 0x41395b
push 0x5c
pop edx
mov ecx, edi
call fcn.00412ef6
test eax, eax
jne 0x413e71
cmp dword [ebp + 0x10], eax
je 0x413c30
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0x2001f
push edi
push ebx
call fcn.004127c2
test eax, eax
je 0x413bf1
push 0x20019
push edi
push ebx
lea ecx, [esp + 0x24]
call fcn.004127c2
test eax, eax
je 0x413bf1
sub esp, 0x14
lea ecx, [esp + 0x2c]
push edi
push ebx
call fcn.0041275f
test eax, eax
jne 0x413d1f
mov ebx, dword [esp + 0xc]
mov ecx, ebx
push edi
call fcn.00412f4b
mov esi, eax
test esi, esi
js 0x413e76
push 0x3d
pop eax
cmp word [edi], ax
jne 0x413c29
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041309d
mov esi, eax
test esi, esi
js 0x413e76
xor ebx, ebx
jmp 0x413de8
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x413c50
push 0x20019
push edi
push dword [esp + 0x18]
lea ecx, [esp + 0x24]
call fcn.004127c2
mov ebx, dword [esp + 0x18]
jmp 0x413c53
push 2
pop eax
push 1
test eax, eax
mov dword [esp + 0x18], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [esp + 0x64]
push edi
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.00420c03
push eax
call fcn.004123c9
mov ecx, dword [esp + 0x20]
add esp, 0x14
push edi
call fcn.00412f4b
mov esi, eax
test esi, esi
js 0x413e76
mov ecx, dword [esp + 0xc]
push edi
call fcn.004134cc
mov esi, eax
test esi, esi
js 0x413e76
push 0x7b
pop eax
cmp word [edi], ax
jne 0x413cff
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x58]
jne 0x413cb2
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x413cff
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
xor eax, eax
push eax
push ebx
push edi
call fcn.004138fd
mov esi, eax
test esi, esi
jns 0x413ceb
cmp dword [ebp + 0x14], 0
je 0x413e76
mov ecx, dword [esp + 0xc]
push edi
call fcn.00412f4b
mov esi, eax
test esi, esi
js 0x413e76
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x41395b
test eax, eax
je 0x413d2d
test ecx, ecx
jne 0x41395b
mov ecx, eax
call fcn.0041241b
mov esi, eax
jmp 0x413e76
test ecx, ecx
je 0x413d6f
push ebx
call fcn.00413495
test eax, eax
je 0x413d6f
lea eax, [esp + 0x60]
push eax
call fcn.00413466
test eax, eax
je 0x41395b
cmp dword [esp + 0x24], 0
je 0x41395b
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041287e
mov ebx, dword [esp + 0x18]
jmp 0x41395b
push ebx
call fcn.00413495
mov ecx, eax
xor eax, eax
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x413d94
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
xor edx, edx
mov dword [esp + 0x1c], edx
test eax, eax
jne 0x413d1f
cmp dword [esp + 0x24], edx
je 0x41395b
test ecx, ecx
jne 0x41395b
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
xor ebx, ebx
lea eax, [esp + 0x60]
mov dword [esp + 0x50], ebx
push eax
mov dword [esp + 0x58], ebx
call fcn.004126cc
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
test eax, eax
jne 0x413d1f
mov dword [esp + 0x50], ebx
cmp dword [ebp + 0x10], 0
je 0x413d66
push 0x7b
pop eax
cmp word [edi], ax
jne 0x413d66
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x413e03
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x413d66
mov ecx, dword [esp + 0xc]
push ebx
push dword [ebp + 0x10]
mov ebx, dword [esp + 0x20]
push ebx
push edi
call fcn.004138fd
mov esi, eax
test esi, esi
js 0x413e76
mov ecx, dword [esp + 0xc]
push edi
call fcn.00412f4b
jmp 0x413b85
mov ecx, eax
call fcn.0041241b
mov esi, eax
test ebx, ebx
je 0x413e76
push ebx
jmp 0x413e69
mov ecx, eax
call fcn.0041241b
cmp dword [esp + 0x34], 0
mov esi, eax
je 0x413e76
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413e76
mov esi, 0x80020009
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x413e85
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x226c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041e398
mov esp, ebp
pop ebp
ret 0x10