Function at 0x40ec60
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 0x40ecb0
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 0x40ecdc
mov edi, dword [ebp - 0x78]
test edi, edi
jne 0x40f090
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], 0x411220
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], 0x410b60
mov dword [esp + 4], 0xa1
call ebx
xor eax, eax
mov edx, edi
mov dword [0x410c68], 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], 0x412e98
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 [0x410c6c], eax
mov dword [esp + 4], 0x89
mov dword [esp], edi
call ebx
sub esp, 8
mov dword [0x410c70], 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 [0x410f60], eax
mov eax, dword [0x410c6c]
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], 0x411220
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 [0x410c64], eax
je 0x40ec9e
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 [0x410c74], eax
sub esp, 0x10
test eax, eax
je 0x40ef64
mov eax, dword [0x410c64]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._SetupStatusBar
mov eax, dword [0x410c6c]
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 [0x410c64]
mov dword [esp], eax
call dword [0x417748]
mov eax, dword [0x410c64]
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 0x40efd1
mov eax, dword [0x410c64]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x40f020
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 0x40efb8
mov eax, dword [0x410c6c]
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 0x40f048
mov dword [esp], esi
call dword [0x417754]
sub esp, 4
mov dword [esp], esi
call dword [0x417648]
sub esp, 4
jmp 0x40efd1
cmp dword [ebp - 0x54], 9
jne 0x40f029
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [0x41768c]
mov edx, dword [0x410b58]
sub esp, 4
cmp eax, dword [edx]
jne 0x40f029
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 0x40efd1
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 0x40f172
test byte [0x410794], 2
jne 0x40f130
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 0x40ecdc
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], str.wWinMain
mov dword [esp + 4], 0x410794
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x80]
jmp 0x40f116
test byte [0x410794], 8
jne 0x40f1b2
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], str.wWinMain
mov dword [esp + 4], 0x410794
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40f17b