Function at 0x408c50
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.004097f0
mov dword [ebp - 0x70], eax
test eax, eax
je 0x408c90
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 0x408cb9
mov edi, dword [ebp - 0x6c]
test edi, edi
jne 0x409070
mov edx, dword [0x417428]
lea edi, [ebp - 0x44]
mov dword [ebp - 0x74], edx
call edx
mov eax, dword [ebp + 8]
mov ebx, dword [0x4176d0]
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], 0x406110
mov dword [ebp - 0x3c], eax
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [0x4176c4]
sub esp, 8
mov dword [ebp - 0x38], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [0x4176c0]
mov edi, dword [0x417694]
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 [0x4176c8]
mov ebx, dword [0x4176ec]
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], 0x4119a0
mov dword [ebp - 0x30], 0x10
mov dword [esp], esi
call ebx
mov eax, dword [ebp + 8]
mov ebx, dword [0x4176cc]
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.004079b0
mov dword [esp], str.TODO:_Set_correct_format
call dword [0x4176f4]
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 [0x417620]
mov dword [0x416c50], eax
sub esp, 0x30
test eax, eax
je 0x408c7a
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 [0x41742c]
mov dword [0x416c4c], eax
sub esp, 0x10
test eax, eax
je 0x408f42
mov eax, dword [0x416c50]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404d40
mov eax, dword [0x416c48]
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x41768c]
sub esp, 8
mov dword [esp + 8], 8
mov dword [esp + 4], 0x8006
mov dword [esp], eax
call dword [0x41760c]
sub esp, 0xc
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [0x416c50]
mov dword [esp], eax
call dword [0x417740]
mov eax, dword [0x416c50]
sub esp, 8
mov dword [esp], eax
call dword [0x417750]
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esp + 4], 0x6d
mov dword [esp], eax
call dword [0x4176bc]
mov edi, dword [0x417748]
sub esp, 8
mov ebx, eax
jmp 0x408fa9
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 0x408ff8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [0x417680]
sub esp, 0x10
test eax, eax
jne 0x408f90
mov eax, dword [0x416c48]
mov dword [esp], eax
call dword [0x417634]
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 0x409020
mov dword [esp], esi
call dword [0x41774c]
sub esp, 4
mov dword [esp], esi
call dword [0x417640]
sub esp, 4
jmp 0x408fa9
cmp dword [ebp - 0x48], 9
jne 0x409001
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [0x417684]
mov edx, dword [section..bss]
sub esp, 4
cmp eax, dword [edx]
jne 0x409001
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8067
mov dword [esp + 4], 0x111
mov dword [esp], eax
call dword [0x4176e4]
sub esp, 0x10
jmp 0x408fa9
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 0x409143
test byte [0x410178], 2
jne 0x409107
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
jmp 0x408cb9
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
call fcn.00408990
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], 0x41192c
mov dword [esp + 4], 0x410178
mov dword [esp], 1
call fcn.00408bf0
jmp 0x4090f3
test byte [0x410178], 8
jne 0x409183
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.00408990
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x41192c
mov dword [esp + 4], 0x410178
mov dword [esp], 3
call fcn.00408bf0
jmp 0x40914c