Function at 0x40f800
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x452504]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [esp + 0x214], eax
lea eax, [esp + 0xc]
push eax
push 0x20006
mov ebx, ecx
push 0
lea edi, [ebx + 0x52f0]
push edi
push SysReAllocString
call ebp
test eax, eax
je 0x40f887
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40f887
push 0x13000e
call fcn.0041a6e0
add esp, 4
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
call fcn.00435083
add esp, 0x20c
ret
lea edx, [ebx + 0x55fa]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f893
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.Home
push eax
call esi
test eax, eax
je 0x40f8ea
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x13000e
call fcn.0041a6e0
add esp, 4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
call fcn.00435083
add esp, 0x20c
ret
fld qword [ebx + 0xa3b0]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x20]
push str._.2f
push edx
call fcn.004352bf
lea eax, [esp + 0x28]
add esp, 0x10
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f910
mov ecx, dword [esp + 0x10]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push str.NVersion
push ecx
call esi
test eax, eax
jne 0x40fa76
lea eax, [esp + 0x18]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f940
mov ecx, dword [esp + 0x10]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push 0x4466f4
push ecx
call esi
test eax, eax
jne 0x40fa76
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebx + 0x8163]
push ecx
call fcn.00442d15
push eax
push edi
lea edx, [esp + 0x124]
push 0x446508
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
lea ecx, [esp + 0x124]
push ecx
push SysReAllocString
call ebp
test eax, eax
je 0x40f9e8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x134]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40f8c4
lea eax, [ebx + 0xa37b]
lea edx, [esp + 0x18]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40f9f4
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fa05
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push str.Name
push eax
call esi
test eax, eax
jne 0x40f8b9
fld qword [ebx + 0xa3b8]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x20]
push str._.2f
push edx
call fcn.004352bf
lea eax, [esp + 0x28]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fa52
mov ecx, dword [esp + 0x10]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push 0x4466f4
push ecx
call esi
test eax, eax
je 0x40fa80
mov edx, dword [esp + 0x10]
push edx
jmp 0x40f8be
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
call fcn.00435083
add esp, 0x20c
ret