Function at 0x40fb80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b8cc
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x4921d0]
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 eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x820], ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor edi, edi
mov dword [ebp - 0x81c], eax
cmp dword [0x4989a0], edi
je 0x40ff05
cmp dword [0x49899c], edi
je 0x40ff05
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x814], ebx
mov eax, str.Fp_RegeditFun.cpp
mov dword [ebp - 4], edi
push edi
test eax, 0xffff0000
jne 0x40fc3b
mov ecx, eax
movzx esi, cx
push esi
call fcn.004016b0
add esp, 8
cmp eax, edi
je 0x40fcec
push esi
push eax
lea ecx, [ebp - 0x814]
call fcn.00401870
mov ebx, dword [ebp - 0x814]
jmp 0x40fcec
push edi
push 0xffffffffffffffff
push str.Fp_RegeditFun.cpp
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax - 1]
cmp esi, edi
jle 0x40fc98
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x40fc76
push esi
lea ecx, [ebp - 0x814]
call fcn.00401a70
mov ebx, dword [ebp - 0x814]
push esi
push ebx
push 0xffffffffffffffff
push str.Fp_RegeditFun.cpp
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, dword [ebx - 8]
jg 0x40fcb0
xor edx, edx
mov dword [ebx - 0xc], esi
mov word [ebx + esi*2], dx
jmp 0x40fcec
mov esi, dword [ebx - 0x10]
cmp dword [ebx - 0xc], edi
lea eax, [ebx - 0x10]
je 0x40fcec
cmp dword [eax + 0xc], edi
lea ecx, [eax + 0xc]
jge 0x40fcc4
cmp dword [ebx - 8], edi
jge 0x40fcba
push 0x80070057
call fcn.00401b10
xor eax, eax
mov dword [ebx - 0xc], edi
mov word [ebx], ax
jmp 0x40fcec
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fcda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x814], ebx
push 0x5c
push ebx
mov dword [ebp - 4], 1
call fcn.0044bce6
add esp, 8
cmp eax, edi
jne 0x40fd07
or eax, 0xffffffff
jmp 0x40fd0b
sub eax, ebx
sar eax, 1
lea ecx, [eax + 1]
lea esi, [ebp - 0x824]
lea edx, [ebp - 0x814]
call fcn.00401400
mov dword [ebp - 0x828], eax
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x818], esi
mov ecx, str.FpInstall::fpSHDeleteKeyW
mov byte [ebp - 4], 3
test ecx, 0xffff0000
jne 0x40fd83
mov edx, ecx
movzx edi, dx
push 0
push edi
call fcn.004016b0
add esp, 8
test eax, eax
je 0x40fe3b
push edi
push eax
lea ecx, [ebp - 0x818]
call fcn.00401870
mov esi, dword [ebp - 0x818]
jmp 0x40fe3b
push edi
push edi
push 0xffffffffffffffff
push str.FpInstall::fpSHDeleteKeyW
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [eax - 1]
test edi, edi
jle 0x40fde6
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40fdbf
push edi
lea ecx, [ebp - 0x818]
call fcn.00401a70
mov esi, dword [ebp - 0x818]
push edi
push esi
push 0xffffffffffffffff
push str.FpInstall::fpSHDeleteKeyW
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp edi, dword [esi - 8]
jg 0x40fcb0
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x40fe3b
cmp dword [esi - 0xc], 0
mov edi, dword [esi - 0x10]
lea eax, [esi - 0x10]
je 0x40fe3b
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40fe19
cmp dword [esi - 8], 0
jge 0x40fe0b
push 0x80070057
call fcn.00401b10
xor ecx, ecx
mov dword [esi - 0xc], 0
mov word [esi], cx
jmp 0x40fe3b
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
lea esi, [eax + 0x10]
mov ecx, dword [ebp - 0x820]
mov edx, dword [ebp - 0x82c]
mov eax, dword [ebp - 0x81c]
push ecx
mov ecx, dword [ebp - 0x828]
push edx
push eax
mov byte [ebp - 4], 2
mov edx, dword [ecx]
push 0x7b
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.LOG__u:_u__s__s:_u__SHDeleteKeyW_call:_ret_ld__0x_x__s_r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0044bc45
lea eax, [esi - 0x10]
add esp, 0x30
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fea5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x824]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fecb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x49899c]
test eax, eax
je 0x40fee2
lea ecx, [ebp - 0x810]
push ecx
push 0x20
call eax
add esp, 8
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40ff05
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [ebp - 0x81c]
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.0044b96b
mov esp, ebp
pop ebp
ret