Function at 0x4089d0
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, 0x1dc
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 - 0x1ac], eax
je 0x408a08
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea eax, [ebp - 0x1a0]
mov dword [esp], 0xffffffff
lea ebx, [ebp - 0x144]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
mov edx, dword [ebp - 0x1ac]
sub esp, 8
test eax, eax
je 0x408a40
mov ecx, dword [ebp - 0x1a0]
test ecx, ecx
jne 0x408e50
mov eax, dword [0x416420]
mov dword [ebp - 0x1b0], edx
lea edi, [ebp - 0x138]
mov dword [ebp - 0x1ac], 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 - 0x188], 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 - 0x144], 0x30
mov dword [ebp - 0x130], ecx
mov dword [esp], ecx
mov dword [ebp - 0x140], 3
mov dword [ebp - 0x13c], sym._FrameWndProc_16
call dword [0x4166b4]
sub esp, 8
mov dword [ebp - 0x12c], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [0x4166b0]
mov edi, dword [0x416684]
mov dword [ebp - 0x11c], str.RegEdit_RegEdit
sub esp, 8
mov dword [ebp - 0x128], 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 - 0x118], eax
mov dword [esp], ebx
call esi
mov dword [ebp - 0x13c], sym._ChildWndProc_16
mov dword [ebp - 0x134], 4
sub esp, 4
mov dword [ebp - 0x11c], 0x4119e0
mov dword [ebp - 0x124], 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 - 0x1ac]
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 - 0x1b0]
sub esp, 0x30
test eax, eax
mov dword [0x415ec8], eax
je 0x4089f8
mov dword [esp + 8], eax
lea eax, [ebp - 0x188]
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 0x408d08
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 - 0x1ac], eax
sub esp, 8
jmp 0x408d7f
mov eax, dword [ebp - 0x1ac]
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 0x408dd0
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 0x408d60
mov eax, dword [0x415ecc]
mov dword [esp], eax
call dword [0x416624]
mov edx, dword [ebp - 0x13c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret 0x10
cmp dword [ebp - 0x140], 0x100
je 0x408e00
mov dword [esp], ebx
call dword [0x41673c]
sub esp, 4
mov dword [esp], ebx
call dword [0x416630]
sub esp, 4
jmp 0x408d7f
cmp dword [ebp - 0x13c], 9
jne 0x408ddc
mov eax, dword [ebp - 0x144]
mov dword [esp], eax
call dword [0x416674]
mov edx, dword [0x415e20]
sub esp, 4
cmp eax, dword [edx]
jne 0x408ddc
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 0x408d7f
mov eax, edx
mov ecx, 0x10
lea edi, [ebp - 0x184]
mov dword [ebp - 0x1ac], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x19c]
lea edi, [ebp - 0x188]
mov dword [ebp - 0x188], 0x44
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call esi
lea ecx, [ebp - 0x198]
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 - 0x1ac]
sub esp, 0x28
test eax, eax
jne 0x409153
test byte [0x410178], 2
jne 0x408f15
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1ac], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov edx, dword [ebp - 0x1ac]
sub esp, 4
jmp 0x408a40
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x1ac], eax
mov eax, str.C:windows_regedit.exe
mov edi, eax
shr edi, 0x10
je 0x409121
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.C:windows_regedit.exe
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x1b0]
mov ecx, 0x4118e6
sub esp, 8
test eax, eax
jne 0x40903e
lea esi, [esi]
mov edi, eax
lea eax, [eax + 1]
cmp word [edi + edi + 0x411982], 0
jne 0x408f68
mov ecx, 0x224c
mov esi, str.C:windows_regedit.exe
mov word [ebp - 0x144], cx
lea ecx, [ebp - 0x142]
jmp 0x408fd0
cmp ax, 9
je 0x409098
cmp ax, 0xa
jne 0x4090b6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
nop
lea esi, [esi]
lea eax, [edi - 1]
test edi, edi
jle 0x409004
lea edi, [ebp - 0x22]
cmp ecx, edi
ja 0x409004
mov edi, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x409081
jbe 0x408f98
cmp ax, 0x22
je 0x409110
cmp ax, 0x5c
jne 0x4090a9
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408fc0
mov byte [ecx], 0x22
test eax, eax
jle 0x40914b
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
lea ebx, [ebp - 0x144]
mov byte [eax], 0
mov dword [esp], ebx
mov dword [ebp - 0x1b0], edx
call sym.___wine_dbg_strdup
mov edx, dword [ebp - 0x1b0]
mov ecx, eax
mov eax, dword [ebp - 0x1ac]
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], 0x41196c
mov dword [esp + 4], 0x410178
mov dword [esp], 1
mov dword [ebp - 0x1b0], edx
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x1b0]
jmp 0x408ef2
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408fc0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408fc0
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x409141
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 0x408fc0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x408fc0
movzx eax, ax
mov dword [esp], 0x4118e0
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, dword [ebp - 0x1b0]
mov ecx, eax
jmp 0x40903e
mov byte [ecx], al
add ecx, 1
jmp 0x408fc0
lea eax, [ecx + 1]
jmp 0x40901f
test byte [0x410178], 8
jne 0x409199
mov eax, dword [ebp - 0x198]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x198]
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x144]
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 0x409234
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 0x409274
add edx, 1
cmp word [edx + edx + str.C:windows_regedit.exe], 0
jne 0x4091ca
lea eax, [ebp - 0x142]
mov ecx, str.C:windows_regedit.exe
lea edi, [ebp - 0x22]
mov word [ebp - 0x144], 0x224c
lea esi, [edx - 1]
cmp eax, edi
ja 0x409307
test edx, edx
jle 0x409307
movzx edx, word [ecx]
add ecx, 2
cmp dx, 0xd
je 0x4092f8
ja 0x4092dd
cmp dx, 9
je 0x4092ce
cmp dx, 0xa
jne 0x40927b
mov word [eax], 0x6e5c
mov edx, esi
add eax, 2
jmp 0x4091ef
movzx eax, ax
mov dword [esp], 0x4118e0
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], 0x41196c
mov dword [esp + 4], 0x410178
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40915c
mov eax, 0x4118e6
jmp 0x409247
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 0x4091ef
mov word [eax], 0x745c
mov edx, esi
add eax, 2
jmp 0x4091ef
cmp dx, 0x22
je 0x40934d
cmp dx, 0x5c
jne 0x409334
mov word [eax], 0x5c5c
mov edx, esi
add eax, 2
jmp 0x4091ef
mov word [eax], 0x725c
mov edx, esi
add eax, 2
jmp 0x4091ef
mov byte [eax], 0x22
lea edx, [eax + 1]
test esi, esi
jle 0x40931e
mov word [eax + 1], 0x2e2e
lea edx, [eax + 4]
mov byte [eax + 3], 0x2e
lea ebx, [ebp - 0x144]
mov byte [edx], 0
mov dword [esp], ebx
call sym.___wine_dbg_strdup
jmp 0x409247
lea ebx, [edx - 0x20]
cmp bx, 0x5e
ja 0x40927b
mov byte [eax], dl
add eax, 1
mov edx, esi
jmp 0x4091ef
mov word [eax], 0x225c
mov edx, esi
add eax, 2
jmp 0x4091ef