Function at 0x100041a0
Capabilities:
Delete registry value
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10017697
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.1000d270
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x2278]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2280], 0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x60], ecx
mov ecx, eax
push edi
call fcn.10004000
mov esi, eax
test esi, esi
js 0x100048b2
cmp word [edi], 0x7d
je 0x100048b2
lea ecx, [ecx]
push str.Delete
push edi
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10004271
test ebx, ebx
je 0x10004389
mov ecx, dword [esp + 0x14]
push edi
call fcn.10004000
mov esi, eax
test esi, esi
js 0x100048b2
cmp dword [ebp + 0x10], 0
je 0x10004389
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x2280], 1
mov ecx, edi
movzx eax, word [edi]
test ax, ax
je 0x100042e1
lea esp, [esp]
cmp ax, 0x5c
je 0x100042d9
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x100042c0
jmp 0x100042e1
test ecx, ecx
jne 0x10004833
mov esi, 0x1001e970
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10004338
add esi, 4
cmp esi, str.APPID
jl 0x100042e6
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.10003cc0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x10004379
mov ebx, dword [esp + 0x14]
mov ecx, ebx
push edi
call fcn.10004000
mov esi, eax
test esi, esi
js 0x1000484b
push edi
mov ecx, ebx
call fcn.10003b40
mov esi, eax
test esi, esi
js 0x1000484b
mov byte [esp + 0x2280], 0
mov dword [esp + 0x2c], 0
jmp 0x100045de
mov byte [esp + 0x2280], 0
mov dword [esp + 0x2c], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x100043b3
push edi
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.10004000
mov esi, eax
test esi, esi
js 0x100048b2
push 0x1001e878
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004531
lea eax, [esp + 0x26c]
mov ecx, ebx
push eax
call fcn.10004000
mov esi, eax
test esi, esi
js 0x100048b2
push edi
mov ecx, ebx
call fcn.10004000
mov esi, eax
test esi, esi
js 0x100048b2
cmp word [edi], 0x3d
jne 0x10004844
cmp dword [ebp + 0x10], 0
je 0x1000448a
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x2280], 2
mov ecx, ebx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x26c]
push edi
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x4c], 0
call fcn.100035c0
mov esi, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
test esi, esi
js 0x1000485e
mov byte [esp + 0x2280], 0
mov dword [esp + 0x3c], 0
jmp 0x100045de
cmp dword [ebp + 0x14], 0
jne 0x1000451a
cmp dword [esp + 0x34], 0
je 0x1000451a
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov byte [esp + 0x2280], 3
lea ecx, [esp + 0x50]
push 0x20006
push 0
push dword [esp + 0x20]
call fcn.10003c00
test eax, eax
jne 0x10004871
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x26c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100044f7
cmp eax, 2
jne 0x10004871
mov byte [esp + 0x2280], 0
test esi, esi
je 0x10004512
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
push edi
mov ecx, ebx
call fcn.10003b40
mov esi, eax
test esi, esi
js 0x100048b2
jmp 0x10004824
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x10004561
jmp 0x10004540
cmp ax, 0x5c
je 0x10004559
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x10004540
jmp 0x10004561
test ecx, ecx
jne 0x10004844
cmp dword [ebp + 0x10], 0
je 0x1000463a
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 0x2001f
push edi
push esi
call fcn.10003c00
test eax, eax
je 0x100045ad
push 0x20019
push edi
push esi
lea ecx, [esp + 0x28]
call fcn.10003c00
test eax, eax
je 0x100045ad
sub esp, 0x14
lea ecx, [esp + 0x30]
push edi
push esi
call fcn.100032c0
test eax, eax
jne 0x100048a9
push edi
mov ecx, ebx
call fcn.10004000
mov esi, eax
test esi, esi
js 0x100048b2
cmp word [edi], 0x3d
jne 0x100045de
push edi
push 0
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.100035c0
mov esi, eax
test esi, esi
js 0x100048b2
cmp word [edi], 0x7b
jne 0x10004824
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100045f0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10004824
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esp + 0x24]
push edi
call fcn.100041a0
mov esi, eax
test esi, esi
js 0x100048b2
push edi
mov ecx, ebx
call fcn.10004000
mov esi, eax
test esi, esi
js 0x100048b2
jmp 0x10004824
cmp dword [ebp + 0x14], 0
jne 0x1000465b
push 0x20019
push edi
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.10003c00
mov ebx, eax
test ebx, ebx
jne 0x10004660
jmp 0x10004667
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x6c]
push 0x104
push eax
call fcn.1000944d
push eax
call fcn.10003a90
mov ecx, dword [esp + 0x28]
add esp, 0x14
push edi
call fcn.10004000
mov esi, eax
test esi, esi
js 0x100048b2
mov ecx, dword [esp + 0x14]
push edi
call fcn.10003b40
mov esi, eax
test esi, esi
js 0x100048b2
cmp word [edi], 0x7b
jne 0x10004700
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100046b5
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10004700
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push dword [esp + 0x24]
push edi
call fcn.100041a0
mov esi, eax
test esi, esi
jns 0x100046ec
cmp dword [ebp + 0x14], 0
je 0x100048b2
mov ecx, dword [esp + 0x14]
push edi
call fcn.10004000
mov esi, eax
test esi, esi
js 0x100048b2
mov eax, dword [esp + 0x60]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x10004824
test ebx, ebx
je 0x10004723
test eax, eax
jne 0x10004824
mov ecx, ebx
jmp 0x100048ab
test eax, eax
je 0x10004764
push dword [esp + 0x1c]
call fcn.10003e50
test eax, eax
je 0x10004764
lea eax, [esp + 0x64]
push eax
call fcn.10003bb0
test eax, eax
je 0x10004824
cmp dword [esp + 0x34], 0
je 0x10004824
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x20]
call fcn.10003cc0
jmp 0x10004824
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x78]
mov dword [esp + 0x78], 0
push eax
push 0
push 0
push 0
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10004797
xor ebx, ebx
jmp 0x100047a1
xor eax, eax
cmp eax, dword [esp + 0x5c]
sbb ebx, ebx
neg ebx
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
je 0x100047b8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
test eax, eax
jne 0x100048a9
cmp dword [esp + 0x34], eax
je 0x10004824
test ebx, ebx
jne 0x10004824
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x2280], 4
lea ecx, [esp + 0x44]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.10003f00
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
test eax, eax
jne 0x1000488d
mov byte [esp + 0x2280], al
lea ecx, [esp + 0x44]
call fcn.10003ed0
cmp word [edi], 0x7d
jne 0x10004240
jmp 0x100048b2
mov byte [esp + 0x2280], 0
lea ecx, [esp + 0x28]
call fcn.10003ed0
mov esi, 0x80020009
jmp 0x100048b2
mov byte [esp + 0x2280], 0
lea ecx, [esp + 0x28]
call fcn.10003ed0
jmp 0x100048b2
mov byte [esp + 0x2280], 0
lea ecx, [esp + 0x38]
call fcn.10003ed0
jmp 0x100048b2
mov ecx, eax
call fcn.10003fe0
mov esi, eax
mov byte [esp + 0x2280], 0
lea ecx, [esp + 0x50]
call fcn.10003ed0
jmp 0x100048b2
mov ecx, eax
call fcn.10003fe0
mov esi, eax
mov byte [esp + 0x2280], 0
lea ecx, [esp + 0x44]
call fcn.10003ed0
jmp 0x100048b2
mov ecx, eax
call fcn.10003fe0
mov esi, eax
mov dword [esp + 0x2280], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100048d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
mov eax, esi
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x2278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2260]
xor ecx, esp
call fcn.10009163
mov esp, ebp
pop ebp
ret 0x10