Function at 0x40f720
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b958
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.0045f5d0
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 esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
push edi
push esi
push edx
push ecx
push eax
mov dword [ebp - 0x1030], eax
mov dword [ebp - 0x1020], ecx
mov dword [ebp - 0x1024], edx
mov dword [ebp - 0x1028], edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0x102c], eax
cmp esi, 1
jne 0x40f95f
cmp dword [0x4989a0], 0
je 0x40fb5c
cmp dword [0x49899c], 0
je 0x40fb5c
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x1014], eax
mov eax, str.Fp_RegeditFun.cpp
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x40f7f9
mov ecx, eax
movzx esi, cx
push 0
push esi
call fcn.004016b0
add esp, 8
test eax, eax
je 0x40f809
push esi
push eax
lea ecx, [ebp - 0x1014]
call fcn.00401870
jmp 0x40f809
mov ebx, str.Fp_RegeditFun.cpp
lea edi, [ebp - 0x1014]
call fcn.00401420
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x1014]
push 0x5c
push esi
call fcn.0044bce6
add esp, 8
test eax, eax
jne 0x40f82a
or eax, 0xffffffff
jmp 0x40f82e
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
lea esi, [ebp - 0x101c]
lea edx, [ebp - 0x1014]
call fcn.00401400
mov esi, eax
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x1018], eax
mov ecx, str.FpInstall::fpSHSetValueW
mov byte [ebp - 4], 3
test ecx, 0xffff0000
jne 0x40f895
mov edx, ecx
movzx edi, dx
push 0
push edi
call fcn.004016b0
add esp, 8
test eax, eax
je 0x40f8a5
push edi
push eax
lea ecx, [ebp - 0x1018]
call fcn.00401870
jmp 0x40f8a5
mov ebx, str.FpInstall::fpSHSetValueW
lea edi, [ebp - 0x1018]
call fcn.00401420
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x1028]
mov edx, dword [ebp - 0x1024]
mov edi, dword [ebp - 0x102c]
push eax
mov eax, dword [ebp - 0x1020]
push ecx
mov ecx, dword [ebp - 0x1030]
push edx
push eax
push ecx
push edi
mov byte [ebp - 4], 2
mov edx, dword [esi]
mov esi, dword [ebp - 0x1018]
push 0x58
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__SHSetValueW_string_value_call:_ret_ld__0x_x__s__s__s__lu_r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0044bc45
lea eax, [esi - 0x10]
add esp, 0x3c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f921
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 - 0x101c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f947
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 0x40fb31
lea ecx, [ebp - 0x810]
jmp 0x40fb29
cmp esi, 4
jne 0x40fb5c
cmp dword [0x4989a0], 0
je 0x40fb5c
cmp dword [0x49899c], 0
je 0x40fb5c
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x1014], eax
mov ecx, str.Fp_RegeditFun.cpp
mov dword [ebp - 4], esi
test ecx, 0xffff0000
jne 0x40f9ce
mov edx, ecx
movzx esi, dx
push 0
push esi
call fcn.004016b0
add esp, 8
test eax, eax
je 0x40f9de
push esi
push eax
lea ecx, [ebp - 0x1014]
call fcn.00401870
jmp 0x40f9de
mov ebx, str.Fp_RegeditFun.cpp
lea edi, [ebp - 0x1014]
call fcn.00401420
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x1014]
push 0x5c
push esi
call fcn.0044bce6
add esp, 8
test eax, eax
jne 0x40f9ff
or eax, 0xffffffff
jmp 0x40fa03
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
lea esi, [ebp - 0x101c]
lea edx, [ebp - 0x1014]
call fcn.00401400
mov esi, eax
mov byte [ebp - 4], 6
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x1018], eax
mov eax, str.FpInstall::fpSHSetValueW
mov byte [ebp - 4], 7
test eax, 0xffff0000
jne 0x40fa68
mov ecx, eax
movzx edi, cx
push 0
push edi
call fcn.004016b0
add esp, 8
test eax, eax
je 0x40fa78
push edi
push eax
lea ecx, [ebp - 0x1018]
call fcn.00401870
jmp 0x40fa78
mov ebx, str.FpInstall::fpSHSetValueW
lea edi, [ebp - 0x1018]
call fcn.00401420
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1028]
mov ecx, dword [ebp - 0x1024]
mov edi, dword [ebp - 0x102c]
push edx
mov edx, dword [ebp - 0x1020]
push eax
mov eax, dword [ebp - 0x1030]
push ecx
push edx
push eax
push edi
mov byte [ebp - 4], 6
mov ecx, dword [esi]
mov esi, dword [ebp - 0x1018]
push 0x5d
push ecx
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__SHSetValueW_dword_value_call:_ret_ld__0x_x__s__s__lu__lu_r_n
push 0xffffffffffffffff
lea edx, [ebp - 0x1010]
push 0x400
push edx
call fcn.0044bc45
lea eax, [esi - 0x10]
add esp, 0x3c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40faf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x101c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb1a
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 0x40fb31
lea ecx, [ebp - 0x1010]
push ecx
push 0x20
call eax
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fb5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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