Function at 0x406460
Capabilities:
Accept command line arguments
Create process on windows
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
call dbg.ProcessCmdLine
add esp, 4
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x4067c9
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_IsWow64Process]
test eax, eax
je 0x406554
cmp dword [ebp - 0x18], 0
je 0x406554
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
call dword [sym.imp.kernel32.dll_GetCommandLineW]
sub esp, 0x28
lea ecx, [ebp - 0x6c]
mov dword [esp + 0x24], ecx
lea ecx, [ebp - 0x5c]
mov dword [esp + 0x20], ecx
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp], global_filename
call dword [sym.imp.kernel32.dll_CreateProcessW]
movzx ecx, byte [0x411134]
test eax, eax
jne 0x4067d3
test cl, 2
je 0x40654b
call sym._wine_dbgstr_w
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x34]
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp], 1
call sym._wine_dbg_log_2
add esp, 0x18
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov ebx, dword [ebp + 8]
call dword [sym.imp.comctl32.dll_InitCommonControls]
mov esi, dword [sym.imp.user32.dll_LoadStringW]
push 0x64
push 0x412020
push 0x67
push ebx
call esi
push 0x40
push 0x4120e8
push 0xa1
push ebx
call esi
mov dword [0x412168], ebx
mov word [ebp - 0x6c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], dbg._FrameWndProc@16
mov dword [ebp - 0x48], ebx
push 0x64
push ebx
call dword [sym.imp.user32.dll_LoadIconW]
mov dword [ebp - 0x44], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorW]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], str.RegEdit_RegEdit
mov edi, dword [sym.imp.user32.dll_GetSystemMetrics]
push 0x31
call edi
mov esi, eax
push 0x32
call edi
push 0x8000
push eax
push esi
push 1
push 0x64
push ebx
call dword [sym.imp.user32.dll_LoadImageW]
mov dword [ebp - 0x30], eax
lea edi, [ebp - 0x5c]
mov esi, dword [sym.imp.user32.dll_RegisterClassExW]
push edi
call esi
mov dword [ebp - 0x54], dbg._ChildWndProc@16
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x34], 0x40dbc0
mov dword [ebp - 0x3c], 0x10
push edi
call esi
mov esi, dword [sym.imp.user32.dll_LoadMenuW]
push 0x82
push ebx
call esi
mov dword [0x412174], eax
push 0x89
push ebx
call esi
mov dword [0x41201c], eax
call dword [sym.imp.comctl32.dll_InitCommonControls]
call dbg.HexEdit_Register
push str.TODO:_Set_correct_format
call dword [sym.imp.user32.dll_RegisterClipboardFormatW]
mov dword [0x412178], eax
mov eax, dword [0x412174]
sub esp, 0x30
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
movaps xmm0, xmmword [0x40da70]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 8], 0x412020
mov dword [esp + 4], str.RegEdit_RegEdit
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [0x41216c], eax
test eax, eax
je 0x4067c7
mov esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x6c]
push 0x7d1
push eax
push ecx
push 0x54000100
call dword [sym.imp.comctl32.dll_CreateStatusWindowW]
mov dword [0x412170], eax
test eax, eax
je 0x406706
push 0
push dword [0x41216c]
call sym._SetupStatusBar
add esp, 8
push 2
push dword [0x412174]
call dword [sym.imp.user32.dll_GetSubMenu]
push 8
push 0x8006
push eax
call dword [sym.imp.user32.dll_CheckMenuItem]
push esi
push dword [0x41216c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x41216c]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0x6d
push ebx
call dword [sym.imp.user32.dll_LoadAcceleratorsW]
mov esi, eax
push 0
push 0
push 0
push edi
call dword [sym.imp.user32.dll_GetMessageW]
test eax, eax
je 0x4067b6
mov ebx, dword [sym.imp.user32.dll_GetMessageW]
jmp 0x40676b
push edi
call dword [sym.imp.user32.dll_TranslateMessage]
push edi
call dword [sym.imp.user32.dll_DispatchMessageW]
push 0
push 0
push 0
push edi
call ebx
test eax, eax
je 0x4067b6
push edi
push esi
push dword [0x41216c]
call dword [sym.imp.user32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40675e
cmp dword [ebp - 0x58], 0x100
jne 0x406750
cmp dword [ebp - 0x54], 9
jne 0x406750
push dword [ebp - 0x5c]
call dword [sym.imp.user32.dll_GetParent]
mov ecx, dword [0x40d34c]
mov ecx, dword [ecx]
cmp eax, dword [ecx]
jne 0x406750
push 0
push 0x8067
push 0x111
push eax
call dword [sym.imp.user32.dll_PostMessageW]
jmp 0x40675e
push dword [0x412174]
call dword [sym.imp.user32.dll_DestroyMenu]
mov eax, dword [ebp - 0x54]
jmp 0x4067c9
xor eax, eax
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
test cl, 8
je 0x4067fb
call sym._wine_dbgstr_w
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp], 3
call sym._wine_dbg_log_2
add esp, 0x14
push 0xffffffffffffffff
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_ExitProcess]