Function at 0x408950
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, 0x1c0
mov esi, dword [sym.imp.kernel32.dll_GetCommandLineW]
call esi
mov dword [esp], eax
call sym._ProcessCmdLine
xor edx, edx
test eax, eax
mov dword [ebp - 0x198], eax
je 0x408988
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea eax, [ebp - 0x194]
mov dword [esp], 0xffffffff
lea ebx, [ebp - 0x138]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
mov edx, dword [ebp - 0x198]
sub esp, 8
test eax, eax
je 0x4089c0
mov ecx, dword [ebp - 0x194]
test ecx, ecx
jne 0x408dd0
mov eax, dword [0x416420]
mov dword [ebp - 0x19c], edx
lea edi, [ebp - 0x12c]
mov dword [ebp - 0x198], eax
call eax
mov ecx, dword [ebp + 8]
mov esi, dword [0x4166c0]
mov dword [esp + 0xc], 0x64
mov dword [esp + 8], 0x415c60
mov dword [esp], ecx
mov dword [esp + 4], 0x67
call esi
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov dword [esp], ecx
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x415e40
mov dword [esp + 4], 0xa1
call esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x17c], ax
xor eax, eax
sub esp, 0x10
mov dword [0x415ec0], ecx
mov ecx, 9
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov dword [esp + 4], 0x64
mov dword [ebp - 0x138], 0x30
mov dword [ebp - 0x124], ecx
mov dword [esp], ecx
mov dword [ebp - 0x134], 3
mov dword [ebp - 0x130], sym._FrameWndProc_16
call dword [0x4166b4]
sub esp, 8
mov dword [ebp - 0x120], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [0x4166b0]
mov edi, dword [0x416684]
mov dword [ebp - 0x110], str.RegEdit_RegEdit
sub esp, 8
mov dword [ebp - 0x11c], eax
mov dword [esp], 0x32
call edi
sub esp, 4
mov esi, eax
mov dword [esp], 0x31
call edi
mov ecx, dword [ebp + 8]
sub esp, 4
mov dword [esp], ecx
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
call dword [0x4166b8]
mov esi, dword [0x4166dc]
sub esp, 0x18
mov dword [ebp - 0x10c], eax
mov dword [esp], ebx
call esi
mov dword [ebp - 0x130], sym._ChildWndProc_16
mov dword [ebp - 0x128], 4
sub esp, 4
mov dword [ebp - 0x110], 0x4119c0
mov dword [ebp - 0x118], 0x10
mov dword [esp], ebx
call esi
mov edx, dword [ebp + 8]
mov esi, dword [0x4166bc]
sub esp, 4
mov dword [esp], edx
mov dword [esp + 4], 0x82
call esi
mov ecx, dword [ebp + 8]
sub esp, 8
mov dword [0x415ecc], eax
mov dword [esp], ecx
mov dword [esp + 4], 0x89
call esi
sub esp, 8
mov dword [0x415c40], eax
mov eax, dword [ebp - 0x198]
call eax
call sym._HexEdit_Register
mov dword [esp], str.TODO:_Set_correct_format
call dword [0x4166e4]
mov dword [0x415ed0], eax
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov eax, dword [0x415ecc]
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], 0x415c60
mov dword [esp + 4], str.RegEdit_RegEdit
mov dword [esp], 0
call dword [0x416610]
mov edx, dword [ebp - 0x19c]
sub esp, 0x30
test eax, eax
mov dword [0x415ec8], eax
je 0x408978
mov dword [esp + 8], eax
lea eax, [ebp - 0x17c]
mov dword [esp + 0xc], 0x7d1
mov dword [esp + 4], eax
mov dword [esp], 0x54000100
call dword [0x416424]
mov dword [0x415ec4], eax
sub esp, 0x10
test eax, eax
je 0x408c88
mov eax, dword [0x415ec8]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._SetupStatusBar
mov eax, dword [0x415ecc]
mov dword [esp + 4], 2
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 + 0x14]
mov dword [esp + 4], eax
mov eax, dword [0x415ec8]
mov dword [esp], eax
call dword [0x416730]
mov eax, dword [0x415ec8]
sub esp, 8
mov dword [esp], eax
call dword [0x416740]
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esp + 4], 0x6d
mov dword [esp], eax
call dword [0x4166ac]
mov esi, dword [0x416670]
mov edi, dword [0x416738]
mov dword [ebp - 0x198], eax
sub esp, 8
jmp 0x408cff
mov eax, dword [ebp - 0x198]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x415ec8]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x408d50
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call esi
sub esp, 0x10
test eax, eax
jne 0x408ce0
mov eax, dword [0x415ecc]
mov dword [esp], eax
call dword [0x416624]
mov edx, dword [ebp - 0x130]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret 0x10
cmp dword [ebp - 0x134], 0x100
je 0x408d80
mov dword [esp], ebx
call dword [0x41673c]
sub esp, 4
mov dword [esp], ebx
call dword [0x416630]
sub esp, 4
jmp 0x408cff
cmp dword [ebp - 0x130], 9
jne 0x408d5c
mov eax, dword [ebp - 0x138]
mov dword [esp], eax
call dword [0x416674]
mov edx, dword [0x415e20]
sub esp, 4
cmp eax, dword [edx]
jne 0x408d5c
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 0x408cff
mov eax, edx
mov ecx, 0x10
lea edi, [ebp - 0x178]
mov dword [ebp - 0x198], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x190]
lea edi, [ebp - 0x17c]
mov dword [ebp - 0x17c], 0x44
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call esi
lea ecx, [ebp - 0x18c]
mov dword [esp + 0x20], edi
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 - 0x198]
sub esp, 0x28
test eax, eax
jne 0x4090d3
test byte [0x410178], 2
jne 0x408e95
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x198], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov edx, dword [ebp - 0x198]
sub esp, 4
jmp 0x4089c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x19c], edx
mov dword [ebp - 0x198], eax
mov eax, str.C:windows_regedit.exe
mov edi, eax
shr edi, 0x10
je 0x4090a1
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.C:windows_regedit.exe
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x19c]
mov ecx, 0x4118c6
sub esp, 8
test eax, eax
jne 0x408fbe
lea esi, [esi]
mov edi, eax
lea eax, [eax + 1]
cmp word [edi + edi + 0x411962], 0
jne 0x408ee8
mov ecx, 0x224c
mov esi, str.C:windows_regedit.exe
mov word [ebp - 0x138], cx
lea ecx, [ebp - 0x136]
jmp 0x408f50
cmp ax, 9
je 0x409018
cmp ax, 0xa
jne 0x409036
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
nop
lea esi, [esi]
lea eax, [edi - 1]
test edi, edi
jle 0x408f84
lea edi, [ebp - 0x16]
cmp ecx, edi
ja 0x408f84
mov edi, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x409001
jbe 0x408f18
cmp ax, 0x22
je 0x409090
cmp ax, 0x5c
jne 0x409029
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408f40
mov byte [ecx], 0x22
test eax, eax
jle 0x4090cb
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
lea ebx, [ebp - 0x138]
mov byte [eax], 0
mov dword [esp], ebx
mov dword [ebp - 0x19c], edx
call sym.___wine_dbg_strdup
mov edx, dword [ebp - 0x19c]
mov ecx, eax
mov eax, dword [ebp - 0x198]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0x41194c
mov dword [esp + 4], 0x410178
mov dword [esp], 1
mov dword [ebp - 0x19c], edx
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x19c]
jmp 0x408e72
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408f40
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408f40
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x4090c1
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefwWinMain]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefwWinMain]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdefwWinMain]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefwWinMain]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x408f40
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408f40
movzx eax, ax
mov dword [esp], 0x4118c0
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, dword [ebp - 0x19c]
mov ecx, eax
jmp 0x408fbe
mov byte [ecx], al
add ecx, 1
jmp 0x408f40
lea eax, [ecx + 1]
jmp 0x408f9f
test byte [0x410178], 8
jne 0x409119
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x18c]
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x138]
push edi
push edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, str.C:windows_regedit.exe
mov edx, eax
shr edx, 0x10
je 0x4091b4
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.C:windows_regedit.exe
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
mov edx, eax
test eax, eax
jne 0x4091f4
add edx, 1
cmp word [edx + edx + str.C:windows_regedit.exe], 0
jne 0x40914a
lea eax, [ebp - 0x136]
mov ecx, str.C:windows_regedit.exe
lea edi, [ebp - 0x16]
mov word [ebp - 0x138], 0x224c
lea esi, [edx - 1]
cmp eax, edi
ja 0x409287
test edx, edx
jle 0x409287
movzx edx, word [ecx]
add ecx, 2
cmp dx, 0xd
je 0x409278
ja 0x40925d
cmp dx, 9
je 0x40924e
cmp dx, 0xa
jne 0x4091fb
mov word [eax], 0x6e5c
mov edx, esi
add eax, 2
jmp 0x40916f
movzx eax, ax
mov dword [esp], 0x4118c0
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 8], 0x41194c
mov dword [esp + 4], 0x410178
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x4090dc
mov eax, 0x4118c6
jmp 0x4091c7
mov ebx, edx
mov byte [eax], 0x5c
add eax, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefwWinMain]
mov byte [eax - 4], bl
mov ebx, edx
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefwWinMain]
mov byte [eax - 3], bl
mov ebx, edx
and edx, 0xf
shr bx, 4
movzx edx, byte [edx + str.0123456789abcdefwWinMain]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefwWinMain]
mov byte [eax - 1], dl
mov edx, esi
mov byte [eax - 2], bl
jmp 0x40916f
mov word [eax], 0x745c
mov edx, esi
add eax, 2
jmp 0x40916f
cmp dx, 0x22
je 0x4092cd
cmp dx, 0x5c
jne 0x4092b4
mov word [eax], 0x5c5c
mov edx, esi
add eax, 2
jmp 0x40916f
mov word [eax], 0x725c
mov edx, esi
add eax, 2
jmp 0x40916f
mov byte [eax], 0x22
lea edx, [eax + 1]
test esi, esi
jle 0x40929e
mov word [eax + 1], 0x2e2e
lea edx, [eax + 4]
mov byte [eax + 3], 0x2e
lea ebx, [ebp - 0x138]
mov byte [edx], 0
mov dword [esp], ebx
call sym.___wine_dbg_strdup
jmp 0x4091c7
lea ebx, [edx - 0x20]
cmp bx, 0x5e
ja 0x4091fb
mov byte [eax], dl
add eax, 1
mov edx, esi
jmp 0x40916f
mov word [eax], 0x225c
mov edx, esi
add eax, 2
jmp 0x40916f