Function at 0x402840
Capabilities:
Accept command line arguments
Create process on windows
Create thread
Query or enumerate registry value
Set current directory
Set environment variable
Set registry value

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, 0x968
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x938], eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x8e0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004024d0
mov dword [ebp - 0x8f0], eax
mov eax, dword [eax]
sub esp, 8
test eax, eax
je 0x4031f8
mov esi, eax
jmp 0x402895
test dx, dx
je 0x4028ae
movzx edx, word [eax]
add eax, 2
cmp dx, 0x5c
je 0x4028a7
cmp dx, 0x2f
jne 0x402890
mov esi, eax
test dx, dx
jne 0x402895
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov ebx, eax
mov eax, dword [sym.imp.kernel32.dll_GetProcessHeap]
sub esp, 0x20
mov dword [ebp - 0x918], eax
call eax
mov dword [esp + 8], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov dword [ebp - 0x934], eax
call eax
sub esp, 0xc
mov dword [0x40b004], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov eax, dword [ebp - 0x8e0]
sub esp, 0x20
cmp eax, 1
jle 0x402f8b
mov esi, dword [sym.imp.kernel32.dll_lstrcmpW]
mov edi, 1
mov dword [ebp - 0x924], 0
mov dword [ebp - 0x910], 0
mov dword [ebp - 0x90c], 0
mov dword [ebp - 0x92c], 0
mov dword [ebp - 0x91c], 0
mov dword [ebp - 0x920], 0
mov dword [ebp - 0x930], 0
mov dword [ebp - 0x914], 0
mov dword [ebp - 0x908], 0
mov dword [ebp - 0x8fc], 0
mov dword [ebp - 0x8f8], 0
mov dword [ebp - 0x900], 0
jmp 0x402a55
cmp word [ebx], 0x2d
jne 0x402ab1
lea eax, [edi + 1]
mov dword [esp + 4], 0x408ca8
mov dword [ebp - 0x8ec], eax
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
je 0x402edc
mov dword [esp + 4], str.__no_convert
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x402e18
mov dword [ebp - 0x8f8], 1
mov eax, dword [ebp - 0x8e0]
mov edi, dword [ebp - 0x8ec]
cmp edi, eax
jge 0x402ab7
lea eax, [edi*4]
mov dword [ebp - 0x8f4], eax
mov eax, dword [ebp - 0x8f0]
mov ebx, dword [eax + edi*4]
test byte [section..data], 8
je 0x4029f8
mov eax, ebx
call fcn.00401600
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.arg__d_____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x407000
mov dword [esp], 3
call fcn.004018f0
cmp word [ebx], 0x2d
je 0x402a02
mov eax, dword [ebp - 0x8e0]
cmp eax, 1
je 0x402ef1
mov esi, dword [ebp - 0x900]
test esi, esi
je 0x402f0f
cmp esi, str.__start
je 0x402f0f
mov edx, dword [ebp - 0x90c]
test edx, edx
jne 0x402eb2
mov esi, dword [ebp - 0x910]
test esi, esi
jne 0x403181
mov ebx, dword [ebp - 0x924]
test ebx, ebx
jne 0x403145
mov esi, dword [ebp - 0x908]
and esi, dword [ebp - 0x914]
jne 0x4031ff
mov ebx, dword [ebp - 0x8f8]
test ebx, ebx
je 0x40300e
mov eax, dword [ebp - 0x8f0]
lea eax, [eax + edi*4]
mov dword [ebp - 0x904], eax
mov eax, dword [ebp - 0x904]
mov eax, dword [eax]
test eax, eax
je 0x402c48
mov ecx, eax
jmp 0x402b52
cmp dx, 0x2f
je 0x402b5e
test dx, dx
je 0x402b65
movzx edx, word [eax]
add eax, 2
cmp dx, 0x5c
jne 0x402b47
mov ecx, eax
test dx, dx
jne 0x402b52
mov dword [ebp - 0x928], ecx
mov eax, str.assocscan
mov dword [ebp - 0x8f4], 0
lea esi, [ebp - 0x818]
mov dword [ebp - 0x8ec], edi
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edi, dword [ebp - 0x928]
sub esp, 0x18
movzx eax, word [edi]
test ax, ax
je 0x402c1b
nop
mov ebx, edi
mov ecx, esi
jmp 0x402bfe
test dx, dx
je 0x403168
movzx eax, word [ebx + 2]
lea edx, [ecx + 2]
add ebx, 2
test ax, ax
je 0x403178
mov ecx, edx
movzx edx, word [ecx]
cmp dx, ax
je 0x402be0
test dx, dx
je 0x403168
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402bd0
add dword [ebp - 0x8f4], 1
mov eax, dword [ebp - 0x8f4]
mov eax, dword [eax*4 + 0x408960]
test eax, eax
jne 0x402b90
mov edi, dword [ebp - 0x8ec]
call fcn.00401430
lea esi, [esi]
mov eax, dword [ebp - 0x914]
test eax, eax
je 0x402c6b
lea eax, [ebp - 0x8d0]
mov dword [esp], eax
call sub.winelib.dll_winelib_wait_child_pipe_setup
sub esp, 4
test eax, eax
jne 0x403a1a
mov dword [ebp - 0x8d8], 0
mov dword [ebp - 0x8c8], 4
call sub.winelib.dll_winelib_get_dpi
cmp eax, 0x6d
mov ebx, eax
jle 0x402cc9
lea eax, [ebp - 0x818]
mov dword [esp + 4], str.Control_PanelDesktop
mov dword [ebp - 0x8ec], eax
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
sub esp, 0xc
test eax, eax
je 0x40379a
mov eax, dword [ebp - 0x8d8]
test eax, eax
je 0x4035b9
mov eax, dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x93c], eax
call eax
mov esi, dword [ebp - 0x92c]
mov dword [ebp - 0x928], eax
test esi, esi
je 0x402d2f
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.winelib.dll_winelib_path_unix_to_windows
sub esp, 8
mov ebx, eax
test eax, eax
je 0x402d2f
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
sub esp, 4
cmp ebx, esi
je 0x402d2f
mov eax, dword [ebp - 0x918]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp dword [ebp - 0x900], str.__start
je 0x4032c9
cmp dword [ebp - 0x900], str.__run
je 0x4037ff
call sub.winelib.dll_winelib_alt_loader_cleanup
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401eb0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [ebp - 0x818], 0
sub esp, 0x18
mov dword [esp], 0
call sub.winelib.dll_winelib_notify_on_idle
sub esp, 4
movzx eax, byte [section..data]
mov edx, dword [ebp - 0x914]
and eax, 8
test edx, edx
je 0x4031ab
test al, al
jne 0x403771
lea eax, [ebp - 0x8d0]
mov dword [esp], eax
call sub.winelib.dll_winelib_wait_child_pipe
sub esp, 4
test byte [section..data], 8
jne 0x4031b3
cmp dword [ebp - 0x900], str.__start
jne 0x402dfd
mov eax, dword [ebp - 0x914]
test eax, eax
jne 0x40368f
mov esi, dword [ebp - 0x818]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], str.__no_quotes
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x402e50
mov dword [ebp - 0x8fc], 1
mov eax, dword [ebp - 0x8e0]
mov edi, dword [ebp - 0x8ec]
jmp 0x402a51
mov dword [esp + 4], str.__no_wait
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x402e7f
mov dword [ebp - 0x908], 1
mov eax, dword [ebp - 0x8e0]
mov edi, dword [ebp - 0x8ec]
jmp 0x402a51
mov dword [esp + 4], str.__wait_children
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x402f58
mov dword [ebp - 0x914], 1
mov eax, dword [ebp - 0x8e0]
mov edi, dword [ebp - 0x8ec]
jmp 0x402a51
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:___start_mime_can_only_be_used_with_the___start_option_n
mov esi, 1
mov dword [esp + 4], eax
call fcn.004018d0
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebp - 0x8e0]
mov edi, dword [ebp - 0x8ec]
cmp eax, 1
jne 0x402ac0
mov dword [esp], str.Standard_version_n
xor esi, esi
call fcn.00401820
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [ebp - 0x900], str.__start
mov esi, dword [ebp - 0x90c]
mov ecx, dword [ebp - 0x910]
test esi, esi
setne dl
test ecx, ecx
setne cl
and edx, ecx
test dl, dl
je 0x402b04
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:___start_mime_and___start_class_are_mutually_exclusive_n
mov esi, 1
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc
mov dword [esp + 4], str.__new_console
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x403233
mov dword [ebp - 0x930], 1
mov eax, dword [ebp - 0x8e0]
mov edi, dword [ebp - 0x8ec]
jmp 0x402a51
je 0x402ef1
mov dword [ebp - 0x900], str.__start
mov edi, 1
mov dword [ebp - 0x914], 0
mov dword [ebp - 0x908], 0
mov dword [ebp - 0x91c], 0
mov dword [ebp - 0x930], 0
mov dword [ebp - 0x90c], 0
mov dword [ebp - 0x8fc], 0
mov dword [ebp - 0x92c], 0
mov dword [ebp - 0x8f8], 0
mov dword [ebp - 0x920], 0
mov dword [ebp - 0x924], 0
mov dword [ebp - 0x910], 0
cmp dword [ebp - 0x900], str.__start
mov ecx, dword [ebp - 0x92c]
sete dl
test ecx, ecx
setne cl
or edx, ecx
movzx esi, dl
mov dword [ebp - 0x8f4], esi
test byte [section..data], 8
jne 0x403715
sub eax, edi
lea ebx, [eax*4 + 4]
mov eax, dword [ebp - 0x918]
call eax
mov dword [esp + 8], ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x934]
mov dword [esp + 4], 0
call eax
mov dword [ebp - 0x904], eax
mov eax, dword [ebp - 0x8e0]
sub esp, 0xc
cmp eax, edi
jle 0x40321f
mov eax, dword [ebp - 0x8f0]
mov dword [ebp - 0x8ec], edi
xor ebx, ebx
lea esi, [eax + edi*4]
mov edi, dword [ebp - 0x8f4]
jmp 0x4030bc
mov ecx, dword [ebp - 0x8ec]
add ebx, 1
add esi, 4
mov eax, dword [ebp - 0x8e0]
add ecx, ebx
cmp eax, ecx
jle 0x403219
mov dword [esp + 4], edi
mov eax, dword [esi]
mov dword [esp], eax
call sub.winelib.dll_winelib_path_unix_to_windows
sub esp, 8
test eax, eax
je 0x40329f
mov dword [esp + 4], edi
mov eax, dword [esi]
mov dword [esp], eax
call sub.winelib.dll_winelib_path_unix_to_windows
mov ecx, dword [ebp - 0x904]
sub esp, 8
mov dword [ecx + ebx*4], eax
test byte [section..data], 8
je 0x4030a0
call fcn.00401600
mov dword [ebp - 0x8f4], eax
mov eax, dword [esi]
call fcn.00401600
mov ecx, dword [ebp - 0x8f4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str._d:__s_____s_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 0x18], ecx
mov dword [esp + 4], 0x407000
mov dword [esp], 3
call fcn.004018f0
jmp 0x4030a0
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:___start_verb_can_only_be_used_with_the___start_option_n
mov esi, 1
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc
mov edi, dword [ebp - 0x8ec]
jmp 0x402c48
movzx edx, word [ecx + 2]
jmp 0x402c06
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:___start_class_can_only_be_used_with_the___start_option_n
mov esi, 1
mov dword [esp + 4], eax
call fcn.004018d0
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
test al, al
je 0x402dfd
mov ebx, dword [ebp - 0x818]
mov eax, dword [ebp - 0x93c]
call eax
sub eax, dword [ebp - 0x928]
mov dword [esp + 0xc], str.ran_for__ums_exit_code0x_lx_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 0x14], ebx
mov dword [esp + 4], 0x407000
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.004018f0
jmp 0x402de3
xor esi, esi
jmp 0x4028ae
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:___no_wait_and___wait_children_are_mutually_exclusive_n
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc
mov edi, dword [ebp - 0x8ec]
mov esi, dword [ebp - 0x904]
sub eax, edi
mov dword [esi + eax*4], 0
jmp 0x402b33
mov dword [esp + 4], str.__enable_alt_loader
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x4036cd
mov eax, dword [ebp - 0x8ec]
cmp dword [ebp - 0x8e0], eax
jle 0x403e03
mov eax, dword [ebp - 0x8f0]
mov dword [esp + 4], 0x408b30
mov ebx, dword [ebp - 0x8f4]
lea ebx, [eax + ebx + 4]
mov eax, dword [ebx]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
jne 0x403c12
mov dword [ebp - 0x920], 1
mov eax, dword [ebp - 0x8e0]
add edi, 2
jmp 0x402a51
mov eax, dword [esi]
mov esi, 3
call fcn.00401600
mov dword [esp], str._s:error:_failed_to_convert_arg__s._Perhaps_the_z:_drive_is_missing__n
mov dword [esp + 8], eax
mov eax, dword [0x40b004]
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc
cmp dword [ebp - 0x930], 1
mov ecx, 1
not edi
mov dword [ebp - 0x818], 0x3c
mov dword [ebp - 0x810], 0
mov esi, dword [ebp - 0x904]
sbb eax, eax
and eax, 0x8000
mov edx, esi
add eax, 0x800140
mov dword [ebp - 0x814], eax
mov eax, dword [ebp - 0x924]
mov dword [ebp - 0x80c], eax
xor eax, eax
call section..text
mov ecx, dword [ebp - 0x8e0]
lea edx, [esi + 4]
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x8fc]
add ecx, edi
call section..text
mov edi, dword [ebp - 0x90c]
mov dword [ebp - 0x800], 0
mov dword [ebp - 0x804], eax
mov eax, dword [ebp - 0x938]
mov dword [ebp - 0x7f8], 0
mov dword [ebp - 0x7fc], eax
test edi, edi
je 0x40367c
cmp word [edi], 0x2e
je 0x403a3a
mov ebx, dword [sym.imp.kernel32.dll_lstrlenW]
mov dword [esp], str.MIMEDatabaseContent_Type_
call ebx
sub esp, 4
mov esi, eax
mov dword [esp], edi
call ebx
sub esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x918]
call eax
mov dword [esp + 4], 0
mov edx, eax
lea eax, [esi + ebx + 1]
mov dword [esp], edx
mov esi, dword [ebp - 0x934]
add eax, eax
mov dword [esp + 8], eax
call esi
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], str.MIMEDatabaseContent_Type_
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrcatW]
mov edx, ebx
mov ecx, str.Extension
mov eax, 0x80000000
sub esp, 8
call fcn.00401ac0
mov edi, eax
mov eax, dword [ebp - 0x918]
call eax
mov dword [esp + 8], ebx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
sub esp, 0xc
test edi, edi
je 0x403f05
xor ecx, ecx
mov edx, edi
mov eax, 0x80000000
call fcn.00401ac0
mov dword [ebp - 0x910], eax
test eax, eax
je 0x403f2e
mov eax, dword [ebp - 0x918]
call eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
sub esp, 0xc
lea eax, [ebp - 0x8c8]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x910]
mov dword [esp + 8], 0
mov dword [esp], 0x80000000
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403ada
mov eax, dword [ebp - 0x8c8]
or dword [ebp - 0x814], 3
mov dword [ebp - 0x7ec], eax
mov esi, dword [ebp - 0x904]
mov eax, dword [esi]
mov dword [esp], str.NOCROSSOVERFALLBACK
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp - 0x91c]
sub esp, 8
test edx, edx
je 0x403b76
mov eax, dword [esi]
call fcn.00401940
mov ebx, dword [ebp - 0x920]
test ebx, ebx
jne 0x403b6c
lea eax, [ebp - 0x818]
mov dword [ebp - 0x8ec], eax
mov dword [esp], eax
call dword [sym.imp.shell32.dll_ShellExecuteExW]
mov ebx, dword [ebp - 0x7e0]
sub esp, 4
test eax, eax
je 0x403aa0
call sub.winelib.dll_winelib_alt_loader_cleanup
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401eb0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [ebp - 0x818], 0
sub esp, 0x18
mov dword [esp], ebx
call sub.winelib.dll_winelib_notify_on_idle
sub esp, 4
test ebx, ebx
je 0x402da5
mov ecx, dword [ebp - 0x908]
test ecx, ecx
jne 0x402da5
test byte [section..data], 8
jne 0x403744
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x8ec]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x402da5
mov eax, dword [ebp - 0x8ec]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelDesktop
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
jne 0x402cc9
lea eax, [ebp - 0x8d8]
mov dword [ebp - 0x8d8], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x818]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.LogPixels
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
jne 0x403665
mov eax, dword [ebp - 0x8d4]
mov dword [ebp - 0x8d8], eax
mov eax, dword [ebp - 0x818]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x402cc9
mov esi, dword [ebp - 0x910]
test esi, esi
jne 0x403455
jmp 0x4034a4
mov eax, dword [ebp - 0x93c]
xor ebx, ebx
call eax
mov ecx, dword [ebp - 0x928]
xor edx, edx
sub eax, ecx
mov ecx, 0x270f
mov esi, eax
sbb edx, ebx
xor eax, eax
cmp ecx, esi
sbb eax, edx
jb 0x402dfd
mov dword [esp], 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
jmp 0x402dfd
mov dword [esp + 4], str.__desktop
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x403d7c
mov eax, dword [ebp - 0x8e0]
cmp eax, dword [ebp - 0x8ec]
jle 0x403e22
mov ebx, dword [ebp - 0x8f0]
add edi, 2
mov ecx, dword [ebp - 0x8f4]
mov ebx, dword [ebx + ecx + 4]
mov dword [ebp - 0x91c], ebx
jmp 0x402a51
mov dword [esp + 0xc], str.Path_conversion:_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x407000
mov dword [esp], 3
call fcn.004018f0
mov eax, dword [ebp - 0x8e0]
jmp 0x40303e
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Waiting_for_process__p_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x407000
mov dword [esp], 3
call fcn.004018f0
jmp 0x40357e
mov dword [esp + 0xc], str.waiting_for_children_to_exit_n
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x407000
mov dword [esp], 3
call fcn.004018f0
jmp 0x402dc5
lea eax, [ebp - 0x8c8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x8d4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x818]
mov dword [esp + 8], 0
mov dword [esp + 4], str.LogPixels
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x4037e8
mov eax, dword [ebp - 0x8d4]
mov dword [ebp - 0x8d8], eax
mov eax, dword [ebp - 0x818]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x402cbb
lea eax, [ebp - 0x818]
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [ebp - 0x8ec], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memset]
movzx eax, word [ebp - 0x938]
mov word [ebp - 0x7e8], ax
mov eax, dword [ebp - 0x91c]
mov esi, eax
test eax, eax
je 0x403bbc
test byte [section..data], 8
jne 0x403ed1
mov eax, dword [ebp - 0x904]
mov edx, esi
mov eax, dword [eax]
call fcn.00401940
mov ecx, dword [ebp - 0x8e0]
mov edx, dword [ebp - 0x904]
mov eax, dword [ebp - 0x8fc]
sub ecx, edi
call section..text
mov dword [ebp - 0x8f4], eax
test byte [section..data], 8
jne 0x403be0
mov ecx, dword [ebp - 0x920]
test ecx, ecx
jne 0x403b62
mov edx, dword [ebp - 0x930]
mov eax, 0x10
test edx, edx
je 0x403b00
mov ebx, dword [ebp - 0x8ec]
mov dword [esp + 0x14], eax
lea edx, [ebp - 0x8c8]
mov eax, dword [ebp - 0x8f4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x403ea8
mov eax, dword [ebp - 0x8f8]
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
test eax, eax
jne 0x4039ab
mov ecx, dword [ebp - 0x904]
lea eax, [edi*4]
sub ecx, eax
cmp dword [ebp - 0x8e0], edi
mov dword [ebp - 0x8f8], ecx
jle 0x403989
mov dword [ebp - 0x8fc], esi
mov esi, ebx
mov eax, dword [ebp - 0x8f8]
mov ebx, dword [eax + edi*4]
mov eax, dword [ebp - 0x8f0]
cmp ebx, dword [eax + edi*4]
je 0x403976
mov eax, dword [ebp - 0x918]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
sub esp, 0xc
add edi, 1
cmp dword [ebp - 0x8e0], edi
jg 0x403946
mov ebx, esi
mov esi, dword [ebp - 0x8fc]
mov eax, dword [ebp - 0x918]
call eax
mov edi, dword [ebp - 0x904]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edi
call ebx
sub esp, 0xc
mov edi, dword [ebp - 0x918]
call edi
mov ecx, dword [ebp - 0x8f4]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call ebx
sub esp, 0xc
cmp esi, dword [ebp - 0x91c]
je 0x4039eb
call edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
sub esp, 0xc
mov eax, dword [ebp - 0x8f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x8c4]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ebx, dword [ebp - 0x8c8]
sub esp, 4
jmp 0x403509
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:_unable_to_create_wait_child_pipe_n
mov dword [esp + 4], eax
call fcn.004018d0
mov esi, dword [ebp - 0x914]
jmp 0x402ecc
mov esi, dword [ebp - 0x90c]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_lstrlenW]
mov ebx, eax
sub esp, 4
mov eax, dword [ebp - 0x918]
call eax
lea edx, [ebx + ebx + 2]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x934]
call eax
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
sub esp, 8
test edi, edi
je 0x40367c
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x40341d
mov eax, dword [ebp - 0x904]
mov ebx, dword [ebp - 0x7f8]
mov eax, dword [eax]
call fcn.00401600
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:_cannot_start__s__error__lu__n
mov dword [esp + 4], eax
call fcn.004018d0
mov esi, 1
jmp 0x402ecc
mov eax, dword [ebp - 0x910]
call fcn.00401600
mov dword [esp], str._s:error:_start_class__s_not_found_n
mov dword [esp + 8], eax
mov eax, dword [0x40b004]
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x403ad0
call dword [sym.imp.kernel32.dll_GetConsoleCP]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x4038ab
mov ebx, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff6
or dword [ebp - 0x7ec], 0x100
call ebx
sub esp, 4
mov dword [ebp - 0x7e0], eax
mov dword [esp], 0xfffffff5
call ebx
sub esp, 4
mov dword [ebp - 0x7dc], eax
mov dword [esp], 0xfffffff4
call ebx
mov dword [ebp - 0x7d8], eax
sub esp, 4
mov eax, 0x8000000
jmp 0x4038ab
call sub.winelib.dll_winelib_alt_loader_setup
jmp 0x403898
call sub.winelib.dll_winelib_alt_loader_setup
jmp 0x4034e3
mov esi, dword [ebp - 0x904]
mov edx, 1
mov eax, dword [esi]
call fcn.00402140
mov ebx, eax
test eax, eax
je 0x403b97
mov edx, eax
mov eax, dword [esi]
call fcn.00401940
mov eax, dword [ebp - 0x918]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x4034d5
mov eax, dword [ebp - 0x904]
xor edx, edx
mov eax, dword [eax]
call fcn.00402140
mov esi, eax
test eax, eax
je 0x40385e
jmp 0x403842
call fcn.00401600
mov dword [esp + 0xc], str.Command:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x407000
mov dword [esp], 3
call fcn.004018f0
jmp 0x40388a
mov dword [esp + 4], str.macdrv
mov eax, dword [ebx]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
jne 0x403dc4
mov dword [ebp - 0x8dc], 0x208
lea ebx, [ebp - 0x8c8]
call dword [sym.imp.user32.dll_GetDesktopWindow]
mov dword [esp + 4], str.__wine_display_device_guid
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetPropW]
sub esp, 8
mov dword [ebp - 0x8ec], eax
mov dword [esp + 8], 0x52
mov dword [esp + 4], str.SystemCurrentControlSetControlVideo
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_memcpy]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrlenW]
lea eax, [ebx + eax*2]
sub esp, 4
mov dword [esp + 4], eax
movzx eax, word [ebp - 0x8ec]
mov dword [esp + 8], 0x28
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalGetAtomNameW]
sub esp, 0xc
test eax, eax
je 0x403291
mov dword [esp + 4], str.0000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrcatW]
lea eax, [ebp - 0x8d0]
sub esp, 8
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x403291
lea eax, [ebp - 0x8dc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x8d0]
lea ebx, [ebp - 0x818]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.GraphicsDriver
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x8ec], eax
mov eax, dword [ebp - 0x8d0]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x8ec]
sub esp, 4
test ecx, ecx
jne 0x403291
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
sub esp, 4
mov dword [esp + 4], str.winemac.drv
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x920], eax
jmp 0x403291
mov dword [esp + 4], str.__workdir
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x403e60
mov eax, dword [ebp - 0x8e0]
cmp eax, dword [ebp - 0x8ec]
jle 0x403e41
mov ebx, dword [ebp - 0x8f0]
add edi, 2
mov ecx, dword [ebp - 0x8f4]
mov ebx, dword [ebx + ecx + 4]
mov dword [ebp - 0x92c], ebx
jmp 0x402a51
mov dword [esp + 4], 0x408b28
mov eax, dword [ebx]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x403291
mov eax, dword [ebx]
call fcn.00401600
mov dword [esp], str._s:warning:_ignoring_unknown_argument_for___enable_alt_loader_option:__s_n
mov dword [esp + 8], eax
mov eax, dword [0x40b004]
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x403291
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:_missing_argument_for___enable_alt_loader_option_n
mov esi, 1
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:_missing_argument_for___desktop_option_n
mov esi, 1
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:_missing_argument_for___workdir_option_n
mov esi, 1
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc
mov dword [esp + 4], str.__start_mime
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
jne 0x403f9f
mov eax, dword [ebp - 0x8e0]
cmp eax, dword [ebp - 0x8ec]
jle 0x403f80
mov ebx, dword [ebp - 0x8f0]
add edi, 2
mov ecx, dword [ebp - 0x8f4]
mov ebx, dword [ebx + ecx + 4]
mov dword [ebp - 0x90c], ebx
jmp 0x402a51
mov eax, dword [ebp - 0x8f4]
call fcn.00401600
mov dword [esp], str._s:error:_cannot_execute__s_n
mov dword [esp + 8], eax
mov eax, dword [0x40b004]
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x403ad0
mov eax, esi
call fcn.00401600
mov dword [esp + 0xc], str.Using_desktop:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WinMain
mov dword [esp + 4], 0x407000
mov dword [esp], 3
call fcn.004018f0
jmp 0x40384f
mov eax, dword [ebp - 0x90c]
call fcn.00401600
mov dword [esp], str._s:error:_start_MIME__s_not_found_n
mov dword [esp + 8], eax
mov eax, dword [0x40b004]
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x403ad0
mov eax, dword [ebp - 0x90c]
call fcn.00401600
mov esi, eax
mov eax, edi
call fcn.00401600
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:_no_class_found_for_extension__s_of_MIME__s_n
mov dword [esp + 4], eax
call fcn.004018d0
mov eax, dword [ebp - 0x918]
call eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x403ad0
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:_missing_argument_for___start_mime_option_n
mov esi, 1
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc
mov dword [esp + 4], str.__start_class
mov dword [esp], ebx
call esi
push edx
push edx
test eax, eax
jne 0x403fde
mov eax, dword [ebp - 0x8e0]
cmp eax, dword [ebp - 0x8ec]
jle 0x40401d
mov ebx, dword [ebp - 0x8f0]
add edi, 2
mov ecx, dword [ebp - 0x8f4]
mov ebx, dword [ebx + ecx + 4]
mov dword [ebp - 0x910], ebx
jmp 0x402a51
mov dword [esp + 4], str.__start_verb
mov dword [esp], ebx
call esi
push ecx
push ecx
test eax, eax
jne 0x40405b
mov eax, dword [ebp - 0x8e0]
cmp eax, dword [ebp - 0x8ec]
jle 0x40403c
mov ebx, dword [ebp - 0x8f0]
add edi, 2
mov ecx, dword [ebp - 0x8f4]
mov ebx, dword [ebx + ecx + 4]
mov dword [ebp - 0x924], ebx
jmp 0x402a51
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:_missing_argument_for___start_class_option_n
mov esi, 1
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:_missing_argument_for___start_verb_option_n
mov esi, 1
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc
mov dword [esp + 4], str.__start
mov dword [esp], ebx
call esi
push edx
push edx
test eax, eax
jne 0x404092
cmp dword [ebp - 0x900], 0
jne 0x4040c9
mov dword [ebp - 0x900], str.__start
mov eax, dword [ebp - 0x8e0]
mov edi, dword [ebp - 0x8ec]
jmp 0x402a51
mov dword [esp + 4], str.__run
mov dword [esp], ebx
call esi
push edi
push edi
test eax, eax
jne 0x4040e8
cmp dword [ebp - 0x900], 0
jne 0x4040c9
mov dword [ebp - 0x900], str.__run
mov eax, dword [ebp - 0x8e0]
mov edi, dword [ebp - 0x8ec]
jmp 0x402a51
mov eax, dword [0x40b004]
mov dword [esp], str._s:error:___start_and___run_are_mutually_exclusive_n
mov esi, 1
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc
mov dword [esp + 4], str.__demo_nag
mov dword [esp], ebx
call esi
mov esi, eax
push ecx
push ecx
test eax, eax
jne 0x404107
call fcn.00401430
jmp 0x402ecc
mov eax, ebx
mov esi, 1
call fcn.00401600
mov dword [esp], str._s:error:_unknown_option__s_n
mov dword [esp + 8], eax
mov eax, dword [0x40b004]
mov dword [esp + 4], eax
call fcn.004018d0
jmp 0x402ecc