Function at 0x408ca0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x1d8
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx]
mov dword [ebp - 0x1b0], eax
call sym._InitCommonControls_0
mov edi, dword [sym.imp.kernel32.dll_GetCommandLineW]
call edi
mov dword [esp], eax
call sym._ProcessCmdLine
xor edx, edx
mov dword [ebp - 0x1ac], eax
test eax, eax
je 0x408cf8
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], 0xffffffff
lea eax, [ebp - 0x1a0]
mov dword [esp + 4], eax
lea ebx, [ebp - 0x144]
call dword [sym.imp.kernel32.dll_IsWow64Process]
mov edx, dword [ebp - 0x1ac]
sub esp, 8
test eax, eax
je 0x408d30
mov eax, dword [ebp - 0x1a0]
test eax, eax
jne 0x409120
mov ecx, 0x64
mov eax, 0x67
mov dword [esp + 0xc], ecx
mov edi, 0x416c60
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [ebp - 0x1ac], edx
call sym._LoadStringW_16
mov eax, 0x40
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, 0x416e40
mov dword [esp + 8], eax
mov eax, 0xa1
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._LoadStringW_16
mov edx, dword [ebp - 0x1ac]
xor eax, eax
mov word [ebp - 0x188], ax
xor ecx, ecx
xor eax, eax
mov dword [0x416ec0], esi
sub esp, 0x10
mov dword [ebp + eax - 0x138], ecx
mov dword [ebp + eax - 0x134], ecx
add eax, 8
cmp eax, 0x20
jb 0x408d9b
mov dword [ebp - 0x1ac], edx
xor edx, edx
mov ecx, 0x30
mov dword [ebp + eax - 0x138], edx
mov eax, sym._FrameWndProc_16
mov edi, 3
mov dword [ebp - 0x13c], eax
mov eax, 0x64
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x130], esi
call sym._LoadIconW_8
mov dword [ebp - 0x12c], eax
sub esp, 8
mov eax, 0x7f00
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._LoadCursorW_8
mov dword [ebp - 0x128], eax
sub esp, 8
mov eax, str.RegEdit_RegEdit
mov dword [esp], 0x32
mov dword [ebp - 0x11c], eax
call sym._GetSystemMetrics_4
sub esp, 4
mov edi, eax
mov dword [esp], 0x31
call sym._GetSystemMetrics_4
mov edx, 0x8000
mov ecx, 1
sub esp, 4
mov dword [esp + 0x10], edi
mov edi, 0x64
mov dword [esp + 0x14], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov edi, 0x80000000
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sym._LoadImageW_24
mov dword [ebp - 0x118], eax
sub esp, 0x18
mov dword [esp], ebx
call sym._RegisterClassExW_4
mov eax, sym._ChildWndProc_16
mov dword [ebp - 0x13c], eax
mov eax, 4
mov dword [ebp - 0x134], eax
mov eax, 0x4128a0
mov dword [ebp - 0x11c], eax
sub esp, 4
mov dword [esp], ebx
call sym._RegisterClassExW_4
mov eax, 0x82
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._LoadMenuW_8
mov dword [0x416ecc], eax
sub esp, 8
mov eax, 0x89
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._LoadMenuW_8
mov dword [0x416c40], eax
sub esp, 8
call sym._InitCommonControls_0
call sym._HexEdit_Register
mov dword [esp], str.TODO:_Set_correct_format
call sym._RegisterClipboardFormatW_4
xor edx, edx
xor ecx, ecx
mov dword [0x416ed0], eax
mov eax, dword [0x416ecc]
sub esp, 4
mov dword [esp + 0x2c], edx
mov edx, str.RegEdit_RegEdit
mov dword [esp + 4], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
mov eax, 0x80000000
mov dword [esp + 0x18], eax
mov eax, 0x80000000
mov dword [esp + 0x14], eax
mov eax, 0x80000000
mov dword [esp + 0x10], eax
mov eax, 0xcf0200
mov dword [esp + 0xc], eax
mov eax, 0x416c60
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 8], eax
mov dword [esp], 0
call sym._CreateWindowExW_48
mov edx, dword [ebp - 0x1ac]
mov dword [0x416ec8], eax
sub esp, 0x30
test eax, eax
je 0x408ce3
mov dword [esp + 8], eax
lea eax, [ebp - 0x188]
mov edi, 0x7d1
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp], 0x54000100
call sym._CreateStatusWindowW_16
mov dword [0x416ec4], eax
sub esp, 0x10
test eax, eax
je 0x408ff7
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x416ec8]
mov dword [esp], eax
call sym._SetupStatusBar
mov eax, 2
mov dword [esp + 4], eax
mov eax, dword [0x416ecc]
mov dword [esp], eax
call sym._GetSubMenu_8
mov edx, 8
mov ecx, 0x8006
sub esp, 8
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._CheckMenuItem_12
sub esp, 0xc
mov eax, dword [ebp - 0x1b0]
mov edi, 0x6d
mov dword [esp + 4], eax
mov eax, dword [0x416ec8]
mov dword [esp], eax
call sym._ShowWindow_8
mov eax, dword [0x416ec8]
sub esp, 8
mov dword [esp], eax
call sym._UpdateWindow_4
sub esp, 4
mov dword [esp], esi
mov dword [esp + 4], edi
call sym._LoadAcceleratorsW_8
sub esp, 8
mov esi, eax
jmp 0x40905c
mov dword [esp + 8], ebx
mov eax, dword [0x416ec8]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._TranslateAcceleratorW_12
sub esp, 0xc
test eax, eax
je 0x4090a8
xor eax, eax
xor edx, edx
mov dword [esp + 0xc], eax
xor ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sym._GetMessageW_16
sub esp, 0x10
test eax, eax
jne 0x409040
mov eax, dword [0x416ecc]
mov dword [esp], eax
call sym._DestroyMenu_4
mov edx, dword [ebp - 0x13c]
mov eax, edx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp dword [ebp - 0x140], 0x100
je 0x4090d0
mov dword [esp], ebx
call sym._TranslateMessage_4
sub esp, 4
mov dword [esp], ebx
call sym._DispatchMessageW_4
sub esp, 4
jmp 0x40905c
cmp dword [ebp - 0x13c], 9
jne 0x4090b4
mov eax, dword [ebp - 0x144]
mov dword [esp], eax
call sym._GetParent_4
mov edx, dword [0x416e20]
sub esp, 4
cmp eax, dword [edx]
jne 0x4090b4
mov edx, 0x8067
mov ecx, 0x111
mov dword [esp + 8], edx
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x40905c
xor ecx, ecx
xor eax, eax
mov dword [ebp + eax - 0x184], ecx
mov dword [ebp + eax - 0x180], ecx
add eax, 8
cmp eax, 0x40
jb 0x409124
mov dword [ebp - 0x1ac], edx
lea eax, [ebp - 0x19c]
mov ecx, 0x44
mov dword [esp], eax
xor ebx, ebx
mov dword [ebp - 0x188], ecx
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call edi
lea ecx, [ebp - 0x198]
xor edi, edi
mov dword [esp + 0x24], ecx
lea ecx, [ebp - 0x188]
xor edx, edx
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov dword [esp + 0x1c], ebx
xor ebx, ebx
mov dword [esp + 0x18], edi
xor edi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x144]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edi
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 0x409400
test byte [0x411178], 2
jne 0x4091eb
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x19c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov edx, dword [ebp - 0x1ac]
sub esp, 4
jmp 0x408d30
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1b4], edx
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x1ac], eax
mov eax, str.C:windows_regedit.exe
mov edi, eax
shr edi, 0x10
je 0x4093ce
mov dword [esp], str.C:windows_regedit.exe
mov eax, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x1b4]
sub esp, 8
test eax, eax
jne 0x4093f1
mov esi, esi
lea edi, [edi]
mov ecx, eax
cmp word [ecx + ecx + 0x412842], 0
lea eax, [eax + 1]
jne 0x409240
mov eax, 0x224c
mov ebx, str.C:windows_regedit.exe
mov word [ebp - 0x144], ax
lea edi, [ebp - 0x142]
mov dword [ebp - 0x1b4], edx
jmp 0x4092a8
cmp eax, 9
je 0x409340
cmp eax, 0xa
jne 0x4092e3
mov word [edi], 0x6e5c
add edi, 2
lea esi, [esi]
lea edi, [edi]
lea eax, [ecx - 1]
test ecx, ecx
jle 0x40934d
lea edx, [ebp - 0x22]
cmp edi, edx
ja 0x40934d
mov ecx, eax
movzx eax, word [ebx]
add ebx, 2
cmp eax, 0xd
je 0x4092cc
jbe 0x409270
cmp eax, 0x22
je 0x409330
cmp eax, 0x5c
lea esi, [esi]
jne 0x4092d6
mov word [edi], 0x5c5c
add edi, 2
jmp 0x409290
mov word [edi], 0x725c
add edi, 2
jmp 0x409290
lea edx, [eax - 0x20]
cmp dx, 0x5e
jbe 0x4093e9
mov byte [edi], 0x5c
mov edx, eax
add edi, 5
shr edx, 0xc
movzx edx, byte [edx + str.0123456789abcdefwWinMain]
mov byte [edi - 4], dl
mov edx, eax
shr edx, 8
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefwWinMain]
mov byte [edi - 3], dl
mov edx, eax
and eax, 0xf
shr edx, 4
movzx eax, byte [eax + str.0123456789abcdefwWinMain]
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefwWinMain]
mov byte [edi - 1], al
mov byte [edi - 2], dl
jmp 0x409290
mov word [edi], 0x225c
add edi, 2
jmp 0x409290
mov word [edi], 0x745c
add edi, 2
jmp 0x409290
mov byte [edi], 0x22
test eax, eax
mov edx, dword [ebp - 0x1b4]
jle 0x4093f8
mov word [edi + 1], 0x2e2e
lea eax, [edi + 4]
mov byte [edi + 3], 0x2e
mov byte [eax], 0
lea ebx, [ebp - 0x144]
mov dword [esp], ebx
mov dword [ebp - 0x1b4], edx
call sym.___wine_dbg_strdup
mov edx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b4], edx
mov edi, dword [ebp - 0x1ac]
mov edx, str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0xc], edx
mov ecx, 0x41282c
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x14], edi
mov edi, 0x411178
mov dword [esp + 4], edi
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x1b4]
jmp 0x4091c8
mov dword [esp], 0x4127a0
movzx eax, ax
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, dword [ebp - 0x1b4]
jmp 0x409388
mov byte [edi], al
inc edi
jmp 0x409290
mov eax, 0x4127a6
jmp 0x409388
lea eax, [edi + 1]
jmp 0x40936b
test byte [0x411178], 8
jne 0x409446
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x198]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
mov eax, dword [ebp - 0x198]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push eax
push eax
mov eax, dword [ebp - 0x144]
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 0x4094ee
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.C:windows_regedit.exe
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
test eax, eax
push edx
mov edx, eax
jne 0x40952e
inc edx
cmp word [edx + edx + str.C:windows_regedit.exe], 0
jne 0x409477
mov word [ebp - 0x144], 0x224c
lea eax, [ebp - 0x142]
mov ecx, str.C:windows_regedit.exe
mov dword [ebp - 0x1ac], ecx
lea esi, [ebp - 0x22]
lea ebx, [edx - 1]
cmp eax, esi
ja 0x4095b9
test edx, edx
jle 0x4095b9
add dword [ebp - 0x1ac], 2
mov edi, dword [ebp - 0x1ac]
movzx edx, word [edi - 2]
cmp edx, 0xd
je 0x4095aa
ja 0x409591
cmp edx, 9
je 0x409582
cmp edx, 0xa
nop
jne 0x409535
mov word [eax], 0x6e5c
mov edx, ebx
add eax, 2
jmp 0x4094a0
mov dword [esp], 0x4127a0
movzx eax, ax
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], 0x41282c
mov dword [esp + 4], 0x411178
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x409409
mov eax, 0x4127a6
jmp 0x409501
mov byte [eax], 0x5c
mov edi, edx
add eax, 5
shr edi, 0xc
movzx ecx, byte [edi + str.0123456789abcdefwWinMain]
mov edi, edx
shr edi, 8
and edi, 0xf
mov byte [eax - 4], cl
movzx ecx, byte [edi + str.0123456789abcdefwWinMain]
mov edi, edx
shr edi, 4
and edx, 0xf
and edi, 0xf
movzx edx, byte [edx + str.0123456789abcdefwWinMain]
mov byte [eax - 3], cl
movzx ecx, byte [edi + str.0123456789abcdefwWinMain]
mov byte [eax - 1], dl
mov edx, ebx
mov byte [eax - 2], cl
jmp 0x4094a0
mov word [eax], 0x745c
mov edx, ebx
add eax, 2
jmp 0x4094a0
cmp edx, 0x22
je 0x4095fd
cmp edx, 0x5c
jne 0x4095e6
mov word [eax], 0x5c5c
mov edx, ebx
add eax, 2
jmp 0x4094a0
mov word [eax], 0x725c
mov edx, ebx
add eax, 2
jmp 0x4094a0
mov byte [eax], 0x22
lea edx, [eax + 1]
test ebx, ebx
jle 0x4095d0
mov word [eax + 1], 0x2e2e
lea edx, [eax + 4]
mov byte [eax + 3], 0x2e
mov byte [edx], 0
lea ebx, [ebp - 0x144]
mov dword [esp], ebx
call sym.___wine_dbg_strdup
jmp 0x409501
lea edi, [edx - 0x20]
cmp di, 0x5e
ja 0x409535
mov byte [eax], dl
inc eax
mov edx, ebx
jmp 0x4094a0
mov word [eax], 0x225c
mov edx, ebx
add eax, 2
jmp 0x4094a0