Function at 0x40ea70
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 sym._ProcessCmdLine
mov dword [ebp - 0x70], eax
test eax, eax
je 0x40eab0
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 0x40ead9
mov edi, dword [ebp - 0x6c]
test edi, edi
jne 0x40ee90
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], 0x411220
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], 0x410b60
mov dword [esp + 4], 0xa1
mov dword [esp], eax
call ebx
mov eax, dword [ebp + 8]
mov ecx, 9
sub esp, 0x10
mov dword [0x410c68], 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], sym._FrameWndProc_16
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], sym._ChildWndProc_16
sub esp, 4
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x28], 0x412e78
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 [0x410c6c], 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 [0x410c70], eax
call edx
call sym._HexEdit_Register
mov dword [esp], str.TODO:_Set_correct_format
call dword [0x4176f4]
mov dword [0x410f60], eax
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov eax, dword [0x410c6c]
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], 0x411220
mov dword [esp + 4], str.RegEdit_RegEdit
mov dword [esp], 0
call dword [0x417620]
mov dword [0x410c64], eax
sub esp, 0x30
test eax, eax
je 0x40ea9a
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 [0x410c74], eax
sub esp, 0x10
test eax, eax
je 0x40ed62
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 [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 [0x410c64]
mov dword [esp], eax
call dword [0x417740]
mov eax, dword [0x410c64]
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 0x40edc9
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 0x40ee18
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 0x40edb0
mov eax, dword [0x410c6c]
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 0x40ee40
mov dword [esp], esi
call dword [0x41774c]
sub esp, 4
mov dword [esp], esi
call dword [0x417640]
sub esp, 4
jmp 0x40edc9
cmp dword [ebp - 0x48], 9
jne 0x40ee21
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [0x417684]
mov edx, dword [0x410b58]
sub esp, 4
cmp eax, dword [edx]
jne 0x40ee21
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 0x40edc9
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 0x40ef63
test byte [0x410794], 2
jne 0x40ef27
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
jmp 0x40ead9
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
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
jmp 0x40ef13
test byte [0x410794], 8
jne 0x40efa3
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 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 0x40ef6c