Function at 0x408920
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 0x408958
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 0x408990
mov ecx, dword [ebp - 0x194]
test ecx, ecx
jne 0x408da0
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], 0x415e60
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 [0x415e40], 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], 0x4129a0
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 [0x415e4c], 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 [0x415e50], eax
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov eax, dword [0x415e4c]
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 [0x415e48], eax
je 0x408948
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 [0x415e44], eax
sub esp, 0x10
test eax, eax
je 0x408c58
mov eax, dword [0x415e48]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._SetupStatusBar
mov eax, dword [0x415e4c]
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 [0x415e48]
mov dword [esp], eax
call dword [0x416730]
mov eax, dword [0x415e48]
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 0x408ccf
mov eax, dword [ebp - 0x198]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x415e48]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x408d20
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 0x408cb0
mov eax, dword [0x415e4c]
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 0x408d50
mov dword [esp], ebx
call dword [0x41673c]
sub esp, 4
mov dword [esp], ebx
call dword [0x416630]
sub esp, 4
jmp 0x408ccf
cmp dword [ebp - 0x130], 9
jne 0x408d2c
mov eax, dword [ebp - 0x138]
mov dword [esp], eax
call dword [0x416674]
mov edx, dword [0x415e20]
sub esp, 4
cmp eax, dword [edx]
jne 0x408d2c
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 0x408ccf
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 0x40909b
test byte [0x410178], 2
jne 0x408e65
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 0x408990
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 0x409071
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, 0x4128a6
sub esp, 8
test eax, eax
jne 0x408f8d
lea esi, [esi]
mov edi, eax
lea eax, [eax + 1]
cmp word [edi + edi + 0x412942], 0
jne 0x408eb8
mov ecx, 0x224c
mov eax, 0x43
mov esi, str.C:windows_regedit.exe
mov word [ebp - 0x138], cx
lea ecx, [ebp - 0x136]
jmp 0x408f23
cmp ax, 9
je 0x408fe8
cmp ax, 0xa
jne 0x409006
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea ebx, [edi - 1]
test edi, edi
jle 0x408f54
lea eax, [ebp - 0x16]
cmp ecx, eax
ja 0x408f54
movzx eax, word [esi]
mov edi, ebx
add esi, 2
cmp ax, 0xd
je 0x408fd0
jbe 0x408ef0
cmp ax, 0x22
je 0x409060
cmp ax, 0x5c
jne 0x408ff9
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408f10
mov byte [ecx], 0x22
lea eax, [ecx + 1]
test ebx, ebx
jle 0x408f6e
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], 0x41292c
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 0x408e42
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408f10
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408f10
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x409091
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 0x408f10
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408f10
movzx eax, ax
mov dword [esp], 0x4128a0
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, dword [ebp - 0x19c]
mov ecx, eax
jmp 0x408f8d
mov byte [ecx], al
add ecx, 1
jmp 0x408f10
test byte [0x410178], 8
jne 0x4090e1
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 edi, eax
shr edi, 0x10
je 0x40917c
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 0x4091bc
add edx, 1
cmp word [edx + edx + str.C:windows_regedit.exe], 0
jne 0x409112
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 0x40924f
test edx, edx
jle 0x40924f
movzx edx, word [ecx]
add ecx, 2
cmp dx, 0xd
je 0x409240
ja 0x409225
cmp dx, 9
je 0x409216
cmp dx, 0xa
jne 0x4091c3
mov word [eax], 0x6e5c
mov edx, esi
add eax, 2
jmp 0x409137
movzx eax, ax
mov dword [esp], 0x4128a0
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], 0x41292c
mov dword [esp + 4], 0x410178
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x4090a4
mov eax, 0x4128a6
jmp 0x40918f
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 0x409137
mov word [eax], 0x745c
mov edx, esi
add eax, 2
jmp 0x409137
cmp dx, 0x22
je 0x409295
cmp dx, 0x5c
jne 0x40927c
mov word [eax], 0x5c5c
mov edx, esi
add eax, 2
jmp 0x409137
mov word [eax], 0x725c
mov edx, esi
add eax, 2
jmp 0x409137
mov byte [eax], 0x22
lea edx, [eax + 1]
test esi, esi
jle 0x409266
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 0x40918f
lea ebx, [edx - 0x20]
cmp bx, 0x5e
ja 0x4091c3
mov byte [eax], dl
add eax, 1
mov edx, esi
jmp 0x409137
mov word [eax], 0x225c
mov edx, esi
add eax, 2
jmp 0x409137