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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xa0
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx]
mov esi, dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [ebp - 0x7c], eax
call esi
mov dword [esp], eax
call fcn.00409940
test eax, eax
mov dword [ebp - 0x78], eax
je 0x408dd0
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea eax, [ebp - 0x74]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
mov edx, dword [ebp - 0x78]
sub esp, 8
test eax, eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x78], eax
je 0x408dff
mov edi, dword [ebp - 0x74]
test edi, edi
jne 0x4091b0
mov edx, dword [0x416420]
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x80], edx
call edx
mov esi, dword [0x4166c0]
mov dword [esp], ebx
mov dword [esp + 0xc], 0x64
mov dword [esp + 8], 0x415ce0
mov dword [esp + 4], 0x67
call esi
sub esp, 0x10
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x415c60
mov dword [esp + 4], 0xa1
mov dword [esp], ebx
call esi
xor eax, eax
mov ecx, 9
mov esi, 0x30
sub esp, 0x10
mov word [ebp - 0x68], ax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, 3
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], edi
mov dword [0x415c54], ebx
mov dword [ebp - 0x50], 0x406120
mov dword [ebp - 0x44], ebx
mov dword [esp + 4], 0x64
mov dword [esp], ebx
call dword [0x4166b4]
sub esp, 8
mov dword [ebp - 0x40], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [0x4166b0]
mov edi, dword [0x416684]
sub esp, 8
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], str.RegEdit_RegEdit
mov dword [esp], 0x32
call edi
sub esp, 4
mov esi, eax
mov dword [esp], 0x31
call edi
sub esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x64
mov dword [esp], ebx
call dword [0x4166b8]
mov edi, dword [ebp - 0x78]
sub esp, 0x18
mov esi, dword [0x4166dc]
mov dword [ebp - 0x2c], eax
mov dword [esp], edi
call esi
sub esp, 4
mov dword [ebp - 0x50], 0x401750
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x30], 0x4129e0
mov dword [ebp - 0x38], 0x10
mov dword [esp], edi
call esi
mov esi, dword [0x4166bc]
sub esp, 4
mov dword [esp + 4], 0x82
mov dword [esp], ebx
call esi
sub esp, 8
mov dword [0x415c48], eax
mov dword [esp + 4], 0x89
mov dword [esp], ebx
call esi
mov edx, dword [ebp - 0x80]
sub esp, 8
mov dword [0x415c44], eax
call edx
call fcn.00407a80
mov dword [esp], str.TODO:_Set_correct_format
call dword [0x4166e4]
sub esp, 4
mov dword [0x415c40], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ebx
mov eax, dword [0x415c48]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0200
mov dword [esp + 8], 0x415ce0
mov dword [esp + 4], str.RegEdit_RegEdit
mov dword [esp], 0
call dword [0x416610]
sub esp, 0x30
mov dword [0x415c50], eax
test eax, eax
je 0x408db6
mov dword [esp + 8], eax
lea eax, [ebp - 0x68]
mov dword [esp + 0xc], 0x7d1
mov dword [esp + 4], eax
mov dword [esp], 0x54000100
call dword [0x416424]
sub esp, 0x10
mov dword [0x415c4c], eax
test eax, eax
je 0x409076
mov dword [esp + 4], 0
mov eax, dword [0x415c50]
mov dword [esp], eax
call fcn.00404d60
mov dword [esp + 4], 2
mov eax, dword [0x415c48]
mov dword [esp], eax
call dword [0x41667c]
sub esp, 8
mov dword [esp + 8], 8
mov dword [esp + 4], 0x8006
mov dword [esp], eax
call dword [0x4165fc]
sub esp, 0xc
mov eax, dword [ebp - 0x7c]
mov dword [esp + 4], eax
mov eax, dword [0x415c50]
mov dword [esp], eax
call dword [0x416730]
mov eax, dword [0x415c50]
sub esp, 8
mov dword [esp], eax
call dword [0x416740]
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 4], 0x6d
call dword [0x4166ac]
mov esi, dword [0x416670]
mov edi, dword [0x416738]
sub esp, 8
mov ebx, eax
jmp 0x4090e4
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [0x415c50]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x409130
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call esi
sub esp, 0x10
test eax, eax
jne 0x4090c8
mov eax, dword [0x415c48]
mov dword [esp], eax
call dword [0x416624]
mov eax, dword [ebp - 0x50]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp dword [ebp - 0x54], 0x100
je 0x409160
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call dword [0x41673c]
mov eax, dword [ebp - 0x78]
sub esp, 4
mov dword [esp], eax
call dword [0x416630]
sub esp, 4
jmp 0x4090e4
cmp dword [ebp - 0x50], 9
jne 0x409139
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call dword [0x416674]
mov edx, dword [section..bss]
sub esp, 4
cmp eax, dword [edx]
jne 0x409139
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8067
mov dword [esp + 4], 0x111
mov dword [esp], eax
call dword [0x4166d4]
sub esp, 0x10
jmp 0x4090e4
lea edi, [ebp - 0x54]
mov eax, edx
mov ecx, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x58], 0x44
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call esi
lea edx, [ebp - 0x68]
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x78]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], edx
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]
mov edx, eax
sub esp, 0x28
movzx eax, byte [0x410178]
test edx, edx
jne 0x409287
test al, 2
jne 0x40924b
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
jmp 0x408dff
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
call fcn.00408ac0
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x41296c
mov dword [esp + 0x14], esi
mov dword [esp + 4], 0x410178
mov dword [esp], 1
call fcn.00408d20
jmp 0x409237
test al, 8
jne 0x4092c2
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x6c]
push edx
push edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push ecx
push ecx
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
call fcn.00408ac0
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x41296c
mov dword [esp + 4], 0x410178
mov dword [esp], 3
call fcn.00408d20
jmp 0x40928b