Function at 0x408d00
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, 0xbc
mov eax, dword [sym.imp.kernel32.dll_GetCommandLineW]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x90], eax
call eax
mov dword [esp], eax
call fcn.004098e0
test eax, eax
mov dword [ebp - 0x8c], eax
je 0x408d40
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea eax, [ebp - 0x7c]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
lea ebx, [ebp - 0x60]
call dword [sym.imp.kernel32.dll_IsWow64Process]
mov edx, dword [ebp - 0x8c]
sub esp, 8
test eax, eax
je 0x408d6f
mov edi, dword [ebp - 0x7c]
test edi, edi
jne 0x409110
mov edx, dword [0x415424]
mov dword [ebp - 0x90], edx
call edx
mov edi, dword [0x4156c8]
mov dword [esp], esi
mov dword [esp + 0xc], 0x64
mov dword [esp + 8], 0x414ce0
mov dword [esp + 4], 0x67
call edi
sub esp, 0x10
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x414c60
mov dword [esp + 4], 0xa1
mov dword [esp], esi
call edi
xor eax, eax
mov ecx, 9
mov dword [0x414c54], esi
mov word [ebp - 0x70], ax
lea edi, [ebp - 0x54]
xor eax, eax
sub esp, 0x10
movq xmm0, qword [0x411ac0]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x58], 0x406080
movq qword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], esi
mov dword [esp + 4], 0x64
mov dword [esp], esi
call dword [0x4156bc]
sub esp, 8
mov dword [ebp - 0x48], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [0x4156b8]
mov edi, dword [0x41568c]
mov dword [ebp - 0x38], str.RegEdit_RegEdit
sub esp, 8
mov dword [ebp - 0x44], eax
mov dword [esp], 0x32
call edi
sub esp, 4
mov dword [ebp - 0x8c], eax
mov dword [esp], 0x31
call edi
sub esp, 4
mov dword [esp + 0x14], 0x8000
mov ecx, dword [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x64
mov dword [esp + 0x10], ecx
mov dword [esp], esi
call dword [0x4156c0]
mov edi, dword [0x4156e4]
sub esp, 0x18
mov dword [ebp - 0x34], eax
mov dword [esp], ebx
call edi
mov dword [ebp - 0x58], 0x401710
sub esp, 4
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x38], 0x4119e0
mov dword [ebp - 0x40], 0x10
mov dword [esp], ebx
call edi
mov edi, dword [0x4156c4]
sub esp, 4
mov dword [esp + 4], 0x82
mov dword [esp], esi
call edi
sub esp, 8
mov dword [0x414c48], eax
mov dword [esp + 4], 0x89
mov dword [esp], esi
call edi
mov edx, dword [ebp - 0x90]
sub esp, 8
mov dword [0x414c44], eax
call edx
call fcn.00407a60
mov dword [esp], str.TODO:_Set_correct_format
call dword [0x4156ec]
sub esp, 4
mov dword [0x414c40], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov eax, dword [0x414c48]
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], 0x414ce0
mov dword [esp + 4], str.RegEdit_RegEdit
mov dword [esp], 0
call dword [0x415618]
sub esp, 0x30
mov dword [0x414c50], eax
test eax, eax
je 0x408d2e
mov dword [esp + 8], eax
lea eax, [ebp - 0x70]
mov dword [esp + 0xc], 0x7d1
mov dword [esp + 4], eax
mov dword [esp], 0x54000100
call dword [0x415428]
sub esp, 0x10
mov dword [0x414c4c], eax
test eax, eax
je 0x408ff0
mov dword [esp + 4], 0
mov eax, dword [0x414c50]
mov dword [esp], eax
call fcn.00404cb0
mov dword [esp + 4], 2
mov eax, dword [0x414c48]
mov dword [esp], eax
call dword [0x415684]
sub esp, 8
mov dword [esp + 8], 8
mov dword [esp + 4], 0x8006
mov dword [esp], eax
call dword [0x415604]
sub esp, 0xc
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [0x414c50]
mov dword [esp], eax
call dword [0x415738]
mov eax, dword [0x414c50]
sub esp, 8
mov dword [esp], eax
call dword [0x415748]
sub esp, 4
mov dword [esp], esi
mov dword [esp + 4], 0x6d
call dword [0x4156b4]
mov edi, dword [0x415678]
sub esp, 8
mov esi, eax
jmp 0x40905d
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [0x414c50]
mov dword [esp], eax
call dword [0x415740]
sub esp, 0xc
test eax, eax
je 0x4090a0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call edi
sub esp, 0x10
test eax, eax
jne 0x409040
mov eax, dword [0x414c48]
mov dword [esp], eax
call dword [0x41562c]
mov eax, dword [ebp - 0x58]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
cmp dword [ebp - 0x5c], 0x100
je 0x4090c8
mov dword [esp], ebx
call dword [0x415744]
sub esp, 4
mov dword [esp], ebx
call dword [0x415638]
sub esp, 4
jmp 0x40905d
cmp dword [ebp - 0x58], 9
jne 0x4090a9
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [0x41567c]
mov edx, dword [section..bss]
sub esp, 4
cmp eax, dword [edx]
jne 0x4090a9
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8067
mov dword [esp + 4], 0x111
mov dword [esp], eax
call dword [0x4156dc]
sub esp, 0x10
jmp 0x40905d
lea edi, [ebp - 0x5c]
mov eax, edx
mov ecx, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x60], 0x44
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
mov eax, dword [ebp - 0x90]
sub esp, 4
call eax
lea edx, [ebp - 0x70]
mov dword [esp + 0x20], ebx
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 0x4091e6
test byte [0x410178], 2
jne 0x4091aa
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
jmp 0x408d6f
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
call fcn.00408a40
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x41196c
mov dword [esp + 0x14], edi
mov dword [esp + 4], 0x410178
mov dword [esp], 1
call fcn.00408ca0
jmp 0x409196
test byte [0x410178], 8
jne 0x409226
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x74]
push edx
push edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push ecx
push ecx
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
call fcn.00408a40
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x41196c
mov dword [esp + 4], 0x410178
mov dword [esp], 3
call fcn.00408ca0
jmp 0x4091ef