Function at 0x406550
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 sym._ProcessCmdLine
add esp, 4
xor ecx, ecx
test eax, eax
jne 0x4068f7
lea eax, [ebp - 0x5c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_IsWow64Process]
test eax, eax
je 0x40668a
cmp dword [ebp - 0x5c], 0
je 0x40668a
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea ecx, [ebp - 0x6c]
lea edx, [ebp - 0x54]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push str.C:windows_regedit.exe
call dword [sym.imp.kernel32.dll_CreateProcessW]
movzx ecx, byte [0x410134]
test eax, eax
jne 0x406903
test cl, 2
je 0x406681
mov eax, dword fs:[0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 0x34]
call sym._wine_dbgstr_w
sub esp, 0x18
mov dword [esp + 0x14], edi
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 - 0x58]
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov ebx, dword [ebp + 8]
call dword [sym.imp.comctl32.dll_InitCommonControls]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
push 0x64
push 0x411020
push 0x67
push ebx
call edi
push 0x40
push 0x4110e8
push 0xa1
push ebx
call edi
mov dword [0x411168], ebx
mov word [ebp - 0x6c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x54], 0x30
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x4c], sym._FrameWndProc_16
mov dword [ebp - 0x40], ebx
push 0x64
push ebx
call dword [sym.imp.user32.dll_LoadIconW]
mov dword [ebp - 0x3c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorW]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 0x40d9a6
mov esi, dword [sym.imp.user32.dll_GetSystemMetrics]
push 0x32
call esi
mov edi, eax
push 0x31
call esi
push 0x8000
push edi
push eax
push 1
push 0x64
push ebx
call dword [sym.imp.user32.dll_LoadImageW]
mov dword [ebp - 0x28], eax
lea edi, [ebp - 0x54]
mov esi, dword [sym.imp.user32.dll_RegisterClassExW]
push edi
call esi
mov dword [ebp - 0x4c], sym._ChildWndProc_16
mov dword [ebp - 0x44], 4
mov dword [ebp - 0x2c], 0x40d958
mov dword [ebp - 0x34], 0x10
push edi
call esi
mov esi, dword [sym.imp.user32.dll_LoadMenuW]
push 0x82
push ebx
call esi
mov dword [0x411174], eax
push 0x89
push ebx
call esi
mov dword [0x41101c], eax
call dword [sym.imp.comctl32.dll_InitCommonControls]
call sym._HexEdit_Register
push str.TODO:_Set_correct_format
call dword [sym.imp.user32.dll_RegisterClipboardFormatW]
mov dword [0x411178], eax
push 0
push ebx
push dword [0x411174]
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0200
push 0x411020
push 0x40d9a6
push 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [0x41116c], eax
test eax, eax
je 0x4068f5
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 [0x411170], eax
test eax, eax
je 0x406840
push 0
push dword [0x41116c]
call sym._SetupStatusBar
add esp, 8
push 2
push dword [0x411174]
call dword [sym.imp.user32.dll_GetSubMenu]
push 8
push 0x8006
push eax
call dword [sym.imp.user32.dll_CheckMenuItem]
push esi
push dword [0x41116c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x41116c]
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 0x4068e4
mov ebx, dword [sym.imp.user32.dll_GetMessageW]
jmp 0x40689b
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 0x4068e4
push edi
push esi
push dword [0x41116c]
call dword [sym.imp.user32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40688e
cmp dword [ebp - 0x50], 0x100
jne 0x406880
cmp dword [ebp - 0x4c], 9
jne 0x406880
push dword [ebp - 0x54]
call dword [sym.imp.user32.dll_GetParent]
mov ecx, dword [0x410488]
cmp eax, dword [ecx]
jne 0x406880
push 0
push 0x8067
push 0x111
push eax
call dword [sym.imp.user32.dll_PostMessageW]
jmp 0x40688e
push dword [0x411174]
call dword [sym.imp.user32.dll_DestroyMenu]
mov ecx, dword [ebp - 0x4c]
jmp 0x4068f7
xor ecx, ecx
mov eax, ecx
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
test cl, 8
je 0x40692b
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]