Function at 0x4070c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b78b
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x5ef220]
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, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.00402a30
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x420]
push str..reg
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x628]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x65c]
call fcn.00432d9e
push 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x65c]
call fcn.0043303b
test eax, eax
je 0x4073ca
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x4071b0
lea ecx, [ebp - 0x65c]
call fcn.004331e3
mov dword [ebp - 0x63c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x218]
push str._s__
push eax
call esi
lea eax, [ebp - 0x640]
push eax
lea ecx, [ebp - 0x65c]
call fcn.004332fc
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call esi
mov edx, dword [ebp - 0x640]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40722a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5c428c
lea eax, [ebp - 0x218]
push eax
call esi
push 0
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x5c4290
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x62c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
mov esi, eax
test esi, esi
je 0x40728d
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x62c], 0
je 0x407369
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x62c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4072d7
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x62c], 0
je 0x407310
push str.Wow64DisableWow64FsRedirection
push 0x5cbfb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call edi
test eax, eax
jne 0x4072ff
mov dword [ebp - 0x634], eax
jmp 0x407369
lea ecx, [ebp - 0x630]
push ecx
call eax
mov dword [ebp - 0x634], eax
jmp 0x407316
mov eax, dword [ebp - 0x634]
test eax, eax
je 0x407369
push 0x32
call ebx
push 0
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x5c4290
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x634], 0
je 0x407369
mov esi, dword [ebp - 0x630]
push str.Wow64RevertWow64FsRedirection
push 0x5cbfb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call edi
test eax, eax
je 0x407369
push esi
call eax
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x65c]
call fcn.004332fc
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push str.MSG:_regedit_succeed__file_s__code_d
call fcn.0042abd0
mov edx, dword [ebp - 0x638]
add esp, 0xc
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4073b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x32
call ebx
cmp dword [ebp - 0x63c], 0
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
jne 0x4071b0
lea ecx, [ebp - 0x65c]
call fcn.00432fef
lea ecx, [ebp - 0x65c]
mov dword [ebp - 4], 0xffffffff
call fcn.00432f4f
mov al, 1
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.00557f7f
mov esp, ebp
pop ebp
ret