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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xa8
mov eax, dword [ecx]
mov ebx, dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [ebp - 0x7c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x84], eax
call ebx
mov dword [esp], eax
call sym._ProcessCmdLine
xor edx, edx
test eax, eax
mov dword [ebp - 0x80], eax
je 0x408f10
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea eax, [ebp - 0x78]
mov dword [esp], 0xffffffff
lea esi, [ebp - 0x5c]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
mov edx, dword [ebp - 0x80]
sub esp, 8
test eax, eax
je 0x408f3c
mov edi, dword [ebp - 0x78]
test edi, edi
jne 0x4092f0
mov eax, dword [0x41742c]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x80], eax
call eax
mov edi, dword [ebp - 0x7c]
mov ebx, dword [0x4176d8]
mov dword [esp + 0xc], 0x64
mov dword [esp + 8], 0x416ce0
mov dword [esp], edi
mov dword [esp + 4], 0x67
call ebx
sub esp, 0x10
mov dword [esp], edi
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x416c60
mov dword [esp + 4], 0xa1
call ebx
xor eax, eax
mov edx, edi
mov dword [0x416c54], edi
mov word [ebp - 0x6c], ax
lea edi, [ebp - 0x50]
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
sub esp, 0x10
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x7c], edx
mov dword [esp], edx
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], sym._FrameWndProc_16
mov dword [esp + 4], 0x64
call dword [0x4176cc]
sub esp, 8
mov dword [ebp - 0x44], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [0x4176c8]
mov edi, dword [0x41769c]
mov dword [ebp - 0x34], str.RegEdit_RegEdit
sub esp, 8
mov dword [ebp - 0x40], eax
mov dword [esp], 0x32
call edi
sub esp, 4
mov ebx, eax
mov dword [esp], 0x31
call edi
mov edi, dword [ebp - 0x7c]
sub esp, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x64
mov dword [esp], edi
call dword [0x4176d0]
mov ebx, dword [0x4176f4]
sub esp, 0x18
mov dword [ebp - 0x30], eax
mov dword [esp], esi
call ebx
mov dword [ebp - 0x54], sym._ChildWndProc_16
sub esp, 4
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x34], 0x411940
mov dword [ebp - 0x3c], 0x10
mov dword [esp], esi
call ebx
mov ebx, dword [0x4176d4]
sub esp, 4
mov dword [esp + 4], 0x82
mov dword [esp], edi
call ebx
sub esp, 8
mov dword [0x416c48], eax
mov dword [esp + 4], 0x89
mov dword [esp], edi
call ebx
sub esp, 8
mov dword [0x416c44], eax
mov eax, dword [ebp - 0x80]
call eax
call sym._HexEdit_Register
mov dword [esp], str.TODO:_Set_correct_format
call dword [0x4176fc]
mov dword [0x416c40], eax
mov eax, dword [0x416c48]
sub esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
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 [0x417628]
mov edx, dword [ebp - 0x88]
sub esp, 0x30
test eax, eax
mov dword [0x416c50], eax
je 0x408efe
mov dword [esp + 8], eax
lea eax, [ebp - 0x6c]
mov dword [esp + 0xc], 0x7d1
mov dword [esp + 4], eax
mov dword [esp], 0x54000100
call dword [0x417430]
mov dword [0x416c4c], eax
sub esp, 0x10
test eax, eax
je 0x4091c4
mov eax, dword [0x416c50]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._SetupStatusBar
mov eax, dword [0x416c48]
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x417694]
sub esp, 8
mov dword [esp + 8], 8
mov dword [esp + 4], 0x8006
mov dword [esp], eax
call dword [0x417614]
sub esp, 0xc
mov eax, dword [ebp - 0x84]
mov dword [esp + 4], eax
mov eax, dword [0x416c50]
mov dword [esp], eax
call dword [0x417748]
mov eax, dword [0x416c50]
sub esp, 8
mov dword [esp], eax
call dword [0x417758]
mov eax, dword [ebp - 0x7c]
sub esp, 4
mov dword [esp + 4], 0x6d
mov dword [esp], eax
call dword [0x4176c4]
mov edi, dword [0x417750]
sub esp, 8
mov ebx, eax
jmp 0x409231
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 0x409280
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [0x417688]
sub esp, 0x10
test eax, eax
jne 0x409218
mov eax, dword [0x416c48]
mov dword [esp], eax
call dword [0x41763c]
mov edx, dword [ebp - 0x54]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp dword [ebp - 0x58], 0x100
je 0x4092a8
mov dword [esp], esi
call dword [0x417754]
sub esp, 4
mov dword [esp], esi
call dword [0x417648]
sub esp, 4
jmp 0x409231
cmp dword [ebp - 0x54], 9
jne 0x409289
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [0x41768c]
mov edx, dword [section..bss]
sub esp, 4
cmp eax, dword [edx]
jne 0x409289
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8067
mov dword [esp + 4], 0x111
mov dword [esp], eax
call dword [0x4176ec]
sub esp, 0x10
jmp 0x409231
mov eax, edx
mov ecx, 0x10
lea edi, [ebp - 0x58]
mov dword [ebp - 0x80], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x5c], 0x44
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call ebx
lea ecx, [ebp - 0x6c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
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]
mov edx, dword [ebp - 0x80]
sub esp, 0x28
test eax, eax
jne 0x4093d2
test byte [0x410178], 2
jne 0x409390
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x80], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov edx, dword [ebp - 0x80]
sub esp, 4
jmp 0x408f3c
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov dword [ebp - 0x80], edx
call sym._wine_dbgstr_wn.constprop.0
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], 0x4118cc
mov dword [esp + 4], 0x410178
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x80]
jmp 0x409376
test byte [0x410178], 8
jne 0x409412
mov eax, dword [ebp - 0x6c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x70]
push edx
push edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x70]
push ecx
push ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x4118cc
mov dword [esp + 4], 0x410178
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x4093db