Function at 0x408c10
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x98
mov ebx, dword [sym.imp.kernel32.dll_GetCommandLineW]
call ebx
mov dword [esp], eax
call fcn.004097b0
mov dword [ebp - 0x70], eax
test eax, eax
je 0x408c50
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x70]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea eax, [ebp - 0x6c]
mov dword [esp], 0xffffffff
lea esi, [ebp - 0x50]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
sub esp, 8
test eax, eax
je 0x408c79
mov edi, dword [ebp - 0x6c]
test edi, edi
jne 0x409030
mov edx, dword [0x417420]
lea edi, [ebp - 0x44]
mov dword [ebp - 0x74], edx
call edx
mov eax, dword [ebp + 8]
mov ebx, dword [0x4176c0]
mov dword [esp + 0xc], 0x64
mov dword [esp + 8], 0x416ce0
mov dword [esp + 4], 0x67
mov dword [esp], eax
call ebx
mov eax, dword [ebp + 8]
sub esp, 0x10
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x416c60
mov dword [esp + 4], 0xa1
mov dword [esp], eax
call ebx
mov eax, dword [ebp + 8]
mov ecx, 9
sub esp, 0x10
mov dword [0x416c54], eax
xor eax, eax
mov word [ebp - 0x60], ax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], 0x30
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0x406130
mov dword [ebp - 0x3c], eax
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [0x4176b4]
sub esp, 8
mov dword [ebp - 0x38], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [0x4176b0]
mov edi, dword [0x417684]
mov dword [ebp - 0x28], str.RegEdit_RegEdit
sub esp, 8
mov dword [ebp - 0x34], eax
mov dword [esp], 0x32
call edi
sub esp, 4
mov ebx, eax
mov dword [esp], 0x31
call edi
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x8000
mov dword [esp + 8], 1
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [0x4176b8]
mov ebx, dword [0x4176dc]
sub esp, 0x18
mov dword [ebp - 0x24], eax
mov dword [esp], esi
call ebx
mov dword [ebp - 0x48], 0x4016c0
sub esp, 4
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x28], 0x412980
mov dword [ebp - 0x30], 0x10
mov dword [esp], esi
call ebx
mov eax, dword [ebp + 8]
mov ebx, dword [0x4176bc]
sub esp, 4
mov dword [esp + 4], 0x82
mov dword [esp], eax
call ebx
mov dword [0x416c48], eax
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp + 4], 0x89
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x74]
sub esp, 8
mov dword [0x416c44], eax
call edx
call fcn.00407970
mov dword [esp], str.TODO:_Set_correct_format
call dword [0x4176e4]
mov dword [0x416c40], eax
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov eax, dword [0x416c48]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0200
mov dword [esp + 8], 0x416ce0
mov dword [esp + 4], str.RegEdit_RegEdit
mov dword [esp], 0
call dword [0x417610]
mov dword [0x416c50], eax
sub esp, 0x30
test eax, eax
je 0x408c3a
mov dword [esp + 8], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0xc], 0x7d1
mov dword [esp + 4], eax
mov dword [esp], 0x54000100
call dword [0x417424]
mov dword [0x416c4c], eax
sub esp, 0x10
test eax, eax
je 0x408f02
mov eax, dword [0x416c50]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404d60
mov eax, dword [0x416c48]
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x41767c]
sub esp, 8
mov dword [esp + 8], 8
mov dword [esp + 4], 0x8006
mov dword [esp], eax
call dword [0x4175fc]
sub esp, 0xc
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [0x416c50]
mov dword [esp], eax
call dword [0x417730]
mov eax, dword [0x416c50]
sub esp, 8
mov dword [esp], eax
call dword [0x417740]
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esp + 4], 0x6d
mov dword [esp], eax
call dword [0x4176ac]
mov edi, dword [0x417738]
sub esp, 8
mov ebx, eax
jmp 0x408f69
mov eax, dword [0x416c50]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x408fb8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [0x417670]
sub esp, 0x10
test eax, eax
jne 0x408f50
mov eax, dword [0x416c48]
mov dword [esp], eax
call dword [0x417624]
mov eax, dword [ebp - 0x48]
sub esp, 4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
cmp dword [ebp - 0x4c], 0x100
je 0x408fe0
mov dword [esp], esi
call dword [0x41773c]
sub esp, 4
mov dword [esp], esi
call dword [0x417630]
sub esp, 4
jmp 0x408f69
cmp dword [ebp - 0x48], 9
jne 0x408fc1
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [0x417674]
mov edx, dword [section..bss]
sub esp, 4
cmp eax, dword [edx]
jne 0x408fc1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8067
mov dword [esp + 4], 0x111
mov dword [esp], eax
call dword [0x4176d4]
sub esp, 0x10
jmp 0x408f69
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x70]
mov ecx, 0x10
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x50], 0x44
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call ebx
lea edx, [ebp - 0x60]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], str.C:windows_regedit.exe
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x409103
test byte [0x410178], 2
jne 0x4090c7
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
jmp 0x408c79
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
call fcn.00408950
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x41290c
mov dword [esp + 4], 0x410178
mov dword [esp], 1
call fcn.00408bb0
jmp 0x4090b3
test byte [0x410178], 8
jne 0x409143
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x64]
push edx
push edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x64]
push ecx
push ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
call fcn.00408950
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x41290c
mov dword [esp + 4], 0x410178
mov dword [esp], 3
call fcn.00408bb0
jmp 0x40910c