Function at 0x40f5c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430028
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x43c4c0]
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]
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x6c], eax
or edi, 0xffffffff
mov dword [ebp - 0x68], 0
call fcn.0040ee40
mov dword [ebp - 0x74], eax
test eax, eax
je 0x40f7ab
xor ecx, ecx
push ecx
mov word [ebp - 0x48], cx
push esi
or eax, edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
call fcn.00406970
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x10]
push str.HKEY_CURRENT_USER
mov edi, 0x11
mov ecx, ebx
call fcn.00409300
test eax, eax
jne 0x40f680
lea edx, [ebp - 0x2c]
push edx
mov ebx, esi
call fcn.0040fc90
add esp, 4
mov edi, eax
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00402a70
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x40f680
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00418932
add esp, 4
push str.IsWow64Process
xor ebx, ebx
push str.kernel32
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40f6af
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x40f6bb
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x70]
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x68]
push edx
mov edx, dword [ebp - 0x74]
and ecx, 0x100
or ecx, 0x20006
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x40f795
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x40f6f8
mov ecx, dword [eax]
jmp 0x40f6fa
mov ecx, eax
mov esi, dword [eax + 0x10]
lea ecx, [ecx + esi*2]
cmp edx, 8
jb 0x40f707
mov eax, dword [eax]
mov edx, dword [ebp - 0x6c]
push edx
push ecx
push eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.0040fd40
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 2
call section..text
mov edi, 0x10
add esp, 8
cmp dword [ebp - 0x50], edi
jb 0x40f74d
mov eax, dword [ebp - 0x64]
push eax
call fcn.00418932
add esp, 4
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40f758
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x14], 8
jb 0x40f763
mov eax, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x68]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], edi
jb 0x40f795
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00418932
add esp, 4
cmp dword [ebp - 0x34], 8
jb 0x40f7a7
mov edx, dword [ebp - 0x48]
push edx
call fcn.00418932
add esp, 4
mov eax, esi
jmp 0x40f7ad
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.0041893d
mov esp, ebp
pop ebp
ret