Function at 0x4089a0
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 dbg.ProcessCmdLine
mov dword [ebp - 0x198], eax
test eax, eax
je 0x4089e0
mov dword [ebp - 0x198], 0
mov eax, dword [ebp - 0x198]
lea esp, [ebp - 0xc]
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]
sub esp, 8
test eax, eax
je 0x408a12
mov ecx, dword [ebp - 0x194]
test ecx, ecx
jne 0x408e10
mov edx, dword [0x415420]
lea edi, [ebp - 0x12c]
mov dword [ebp - 0x19c], edx
call edx
mov eax, dword [ebp + 8]
mov esi, dword [0x4156c0]
mov dword [esp + 0xc], 0x64
mov dword [esp + 8], 0x414c60
mov dword [esp + 4], 0x67
mov dword [esp], eax
call esi
mov eax, dword [ebp + 8]
sub esp, 0x10
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x414e60
mov dword [esp + 4], 0xa1
mov dword [esp], eax
call esi
mov eax, dword [ebp + 8]
mov ecx, 9
sub esp, 0x10
mov dword [0x414e40], eax
xor eax, eax
mov word [ebp - 0x17c], ax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x64
mov dword [ebp - 0x138], 0x30
mov dword [ebp - 0x134], 3
mov dword [ebp - 0x130], dbg.FrameWndProc@16
mov dword [ebp - 0x124], eax
mov dword [esp], eax
call dword [0x4156b4]
sub esp, 8
mov dword [ebp - 0x120], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [0x4156b0]
mov esi, dword [0x415684]
mov dword [ebp - 0x110], str.RegEdit_RegEdit
sub esp, 8
mov dword [ebp - 0x11c], eax
mov dword [esp], 0x32
call esi
sub esp, 4
mov edi, eax
mov dword [esp], 0x31
call esi
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [0x4156b8]
mov esi, dword [0x4156dc]
sub esp, 0x18
mov dword [ebp - 0x10c], eax
mov dword [esp], ebx
call esi
mov dword [ebp - 0x130], dbg.ChildWndProc@16
mov dword [ebp - 0x128], 4
sub esp, 4
mov dword [ebp - 0x110], 0x4126c0
mov dword [ebp - 0x118], 0x10
mov dword [esp], ebx
call esi
mov eax, dword [ebp + 8]
mov esi, dword [0x4156bc]
sub esp, 4
mov dword [esp + 4], 0x82
mov dword [esp], eax
call esi
mov dword [0x414e4c], eax
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp + 4], 0x89
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x19c]
sub esp, 8
mov dword [0x414c40], eax
call edx
call dbg.HexEdit_Register
mov dword [esp], str.TODO:_Set_correct_format
call dword [0x4156e4]
mov dword [0x414e50], eax
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov eax, dword [0x414e4c]
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], 0x414c60
mov dword [esp + 4], str.RegEdit_RegEdit
mov dword [esp], 0
call dword [0x415610]
sub esp, 0x30
mov dword [0x414e48], eax
test eax, eax
je 0x4089d0
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 [0x415424]
sub esp, 0x10
mov dword [0x414e44], eax
test eax, eax
je 0x408cce
mov eax, dword [0x414e48]
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.SetupStatusBar
mov eax, dword [0x414e4c]
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x41567c]
sub esp, 8
mov dword [esp + 8], 8
mov dword [esp + 4], 0x8006
mov dword [esp], eax
call dword [0x4155fc]
sub esp, 0xc
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [0x414e48]
mov dword [esp], eax
call dword [0x415730]
mov eax, dword [0x414e48]
sub esp, 8
mov dword [esp], eax
call dword [0x415740]
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esp + 4], 0x6d
mov dword [esp], eax
call dword [0x4156ac]
mov esi, dword [0x415738]
sub esp, 8
mov edi, eax
jmp 0x408d39
mov eax, dword [0x414e48]
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
je 0x408d90
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [0x415670]
sub esp, 0x10
test eax, eax
jne 0x408d20
mov eax, dword [0x414e4c]
mov dword [esp], eax
call dword [0x415624]
mov eax, dword [ebp - 0x130]
sub esp, 4
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x198]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
cmp dword [ebp - 0x134], 0x100
je 0x408dc0
mov dword [esp], ebx
call dword [0x41573c]
sub esp, 4
mov dword [esp], ebx
call dword [0x415630]
sub esp, 4
jmp 0x408d39
cmp dword [ebp - 0x130], 9
jne 0x408d9c
mov eax, dword [ebp - 0x138]
mov dword [esp], eax
call dword [0x415674]
mov edx, dword [0x414e20]
sub esp, 4
cmp eax, dword [edx]
jne 0x408d9c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8067
mov dword [esp + 4], 0x111
mov dword [esp], eax
call dword [0x4156d4]
sub esp, 0x10
jmp 0x408d39
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 0x198]
mov ecx, 0x10
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x190]
mov dword [ebp - 0x17c], 0x44
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call esi
lea edx, [ebp - 0x18c]
lea ecx, [ebp - 0x17c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
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], global_filename
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x4090b7
test byte [global___dbch.1], 2
jne 0x408ec3
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
jmp 0x408a12
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x19c], eax
mov eax, global_filename
mov ecx, eax
shr ecx, 0x10
je 0x409095
mov dword [esp + 4], 0xffffffff
mov dword [esp], global_filename
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x4125c6
test ecx, ecx
je 0x408f12
jmp 0x408fcd
mov ecx, eax
lea eax, [ecx + 1]
cmp word [eax + eax + 0x412660], 0
jne 0x408f10
mov esi, 0x224c
mov edx, 0x43
lea eax, [ebp - 0x136]
mov word [ebp - 0x138], si
lea edi, [ebp - 0x16]
mov esi, global_filename
jmp 0x408f71
cmp dx, 9
je 0x409073
cmp dx, 0xa
jne 0x409015
mov ebx, 0x6e5c
add eax, 2
mov word [eax - 2], bx
lea ebx, [ecx - 1]
test ecx, ecx
jle 0x408fa2
cmp eax, edi
ja 0x408fa2
movzx edx, word [esi]
mov ecx, ebx
add esi, 2
cmp dx, 0xd
je 0x409004
jbe 0x408f41
cmp dx, 0x22
je 0x409084
cmp dx, 0x5c
jne 0x409015
mov ebx, 0x5c5c
add eax, 2
mov word [eax - 2], bx
jmp 0x408f61
mov byte [eax], 0x22
lea edx, [eax + 1]
test ebx, ebx
jle 0x408fbc
mov ecx, 0x2e2e
mov byte [eax + 3], 0x2e
lea edx, [eax + 4]
mov word [eax + 1], cx
lea ebx, [ebp - 0x138]
mov byte [edx], 0
mov dword [esp], ebx
call dbg.__wine_dbg_strdup
mov ecx, dword [ebp - 0x19c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0x14], ecx
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch.1
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
jmp 0x408eac
mov edx, 0x725c
add eax, 2
mov word [eax - 2], dx
jmp 0x408f61
lea ebx, [edx - 0x20]
cmp bx, 0x5e
jbe 0x4090ad
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 byte [eax - 2], bl
jmp 0x408f61
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x408f61
mov edx, 0x225c
add eax, 2
mov word [eax - 2], dx
jmp 0x408f61
movzx eax, ax
mov dword [esp], 0x4125c0
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.3
jmp 0x408fcd
mov byte [eax], dl
add eax, 1
jmp 0x408f61
test byte [global___dbch.1], 8
jne 0x4090fd
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 edi
push edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push eax
push eax
mov eax, dword [ebp - 0x138]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, global_filename
mov ecx, eax
shr ecx, 0x10
je 0x409197
mov dword [esp + 4], 0xffffffff
mov dword [esp], global_filename
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x4091d7
add eax, 1
cmp word [eax + eax + 0x412660], 0
jne 0x40912c
lea edx, [ebp - 0x136]
mov ecx, global_filename
lea edi, [ebp - 0x16]
mov word [ebp - 0x138], 0x224c
lea esi, [eax - 1]
cmp edx, edi
ja 0x40925c
test eax, eax
jle 0x40925c
add ecx, 2
movzx eax, word [ecx - 2]
cmp ax, 0xd
je 0x40924d
ja 0x409289
cmp ax, 9
je 0x40923e
cmp ax, 0xa
jne 0x4091de
mov word [edx], 0x6e5c
mov eax, esi
add edx, 2
jmp 0x409151
movzx eax, ax
mov dword [esp], 0x4125c0
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.3
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch.1
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x4090c0
mov eax, 0x4125c6
jmp 0x4091aa
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x4092a8
mov ebx, eax
mov byte [edx], 0x5c
add edx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefwWinMain]
mov byte [edx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefwWinMain]
mov byte [edx - 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 [edx - 1], al
mov eax, esi
mov byte [edx - 2], bl
jmp 0x409151
mov word [edx], 0x745c
mov eax, esi
add edx, 2
jmp 0x409151
mov word [edx], 0x725c
mov eax, esi
add edx, 2
jmp 0x409151
mov byte [edx], 0x22
lea eax, [edx + 1]
test esi, esi
jle 0x409273
mov word [edx + 1], 0x2e2e
lea eax, [edx + 4]
mov byte [edx + 3], 0x2e
lea ebx, [ebp - 0x138]
mov byte [eax], 0
mov dword [esp], ebx
call dbg.__wine_dbg_strdup
jmp 0x4091aa
cmp ax, 0x22
je 0x4092b4
cmp ax, 0x5c
jne 0x4091de
mov word [edx], 0x5c5c
mov eax, esi
add edx, 2
jmp 0x409151
mov byte [edx], al
add edx, 1
mov eax, esi
jmp 0x409151
mov word [edx], 0x225c
mov eax, esi
add edx, 2
jmp 0x409151