Function at 0x41ad10
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Get file system object information
Query environment variable
Terminate process

Disassembly:
push ebp
mov eax, 0x89a0
mov ebp, esp
push edi
push esi
push ebx
call fcn.00401050
sub esp, eax
test byte [0x423030], 8
jne 0x41b088
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WCMD_parameter
mov esi, eax
test eax, eax
je 0x41ad70
cmp word [eax], 0
jne 0x41ad80
mov dword [0x423344], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x437728
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
je 0x41b47d
lea edi, [ebp - 0x800c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x2000
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub esp, 0x10
test eax, eax
je 0x41ad70
cmp eax, 0x2000
ja 0x41b1e1
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [ebp - 0x8984], 0
mov ebx, eax
test eax, eax
je 0x41ae0e
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x8984], eax
lea ecx, [ebp - 0x86d0]
xor eax, eax
mov dword [ebp - 0x8980], ecx
lea esi, [esi]
movzx edx, word [ebx + eax + 2]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x41ae20
mov dword [ebp - 0x897c], 1
xor eax, eax
mov word [ebx + 2], ax
mov ebx, dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x400c]
mov dword [esp + 8], 0x2000
mov dword [esp + 4], eax
mov dword [esp], 0x437744
call ebx
dec eax
sub esp, 0xc
cmp eax, 0x1ffe
jbe 0x41ae97
xor eax, eax
mov edx, 0x2e
jmp 0x41ae87
movzx edx, word [eax + str..bat_.com_.cmd_.exe]
mov word [ebp + eax - 0x400c], dx
add eax, 2
test dx, dx
jne 0x41ae80
test byte [0x423030], 8
jne 0x41b5b3
mov dword [ebp - 0x8974], edi
lea esi, [esi]
mov esi, dword [ebp - 0x897c]
mov ecx, 0x82
lea edi, [ebp - 0x84c8]
xor eax, eax
rep stosd dword es:[edi], eax
test esi, esi
je 0x41b0c8
mov ecx, dword [ebp - 0x8974]
lea esi, [esi]
nop
movzx edx, word [ecx + eax]
mov word [ebp + eax - 0x84c8], dx
add eax, 2
test dx, dx
jne 0x41aed8
mov dword [ebp - 0x8974], 0
cmp word [ebp - 0x84c8], 0
lea edx, [ebp - 0x84c8]
je 0x41af19
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x41af10
xor eax, eax
mov ecx, 0x5c
jmp 0x41af2f
movzx ecx, word [eax + 0x437798]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41af28
cmp word [ebp - 0x84c8], 0
lea edx, [ebp - 0x84c8]
je 0x41af59
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x41af50
mov ebx, dword [ebp - 0x8980]
xor eax, eax
lea esi, [esi]
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41af68
cmp word [ebp - 0x84c8], 0
lea ebx, [ebp - 0x84c8]
je 0x41b420
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x41af90
mov ecx, dword [ebp - 0x8984]
test ecx, ecx
je 0x41afd2
lea eax, [ebp - 0x84c8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x41afc2
test al, 0x10
je 0x41b438
movzx eax, word [ebp - 0x84c8]
test ax, ax
je 0x41b5a8
lea edx, [ebp - 0x84c8]
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x41afe0
xor eax, eax
mov ecx, 0x2e
jmp 0x41afff
movzx ecx, word [eax + 0x4377c2]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41aff8
lea eax, [ebp - 0x82c0]
mov dword [esp + 4], eax
lea eax, [ebp - 0x84c8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
cmp esi, 0xffffffff
jne 0x41b288
mov esi, dword [ebp - 0x8974]
test esi, esi
jne 0x41aeb0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x41b5f8
mov dword [esp], 0x410
call sym._WCMD_LoadMessage
mov edi, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], edi
call sym._WCMD_output_stderr
mov dword [0x423344], 0x2331
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0_2
mov edi, dword [ebp + 0xc]
mov dword [esp + 0xc], str.Running__s___d__n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41ad2f
mov ebx, dword [ebp - 0x8974]
xor eax, eax
jmp 0x41b0e7
mov ecx, eax
xor ecx, 1
cmp dx, 0x22
cmove eax, ecx
add ebx, 2
movzx edx, word [ebx]
test eax, eax
jne 0x41b0f8
cmp dx, 0x3b
je 0x41b220
test dx, dx
jne 0x41b0d8
mov ecx, dword [ebp - 0x8974]
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [ebp + eax - 0x84c8], dx
add eax, 2
test dx, dx
jne 0x41b108
movzx edx, word [ebp - 0x84c8]
mov dword [ebp - 0x8974], 0
test dx, dx
je 0x41b265
lea eax, [ebp - 0x84c8]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x41b140
lea edi, [ebp - 0x84c8]
sub eax, edi
sar eax, 1
cmp word [ebp + eax*2 - 0x84ca], 0x22
lea ecx, [eax - 1]
je 0x41b408
xor eax, eax
lea ecx, [ebp - 0x88d8]
cmp dx, 0x22
jne 0x41b188
jmp 0x41b200
movzx edx, word [ebp + eax - 0x84c8]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x41b180
cmp word [ebp - 0x88d8], 0
je 0x41b03e
lea eax, [ebp - 0x84c8]
lea ecx, [ebp - 0x88d8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x104
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub esp, 0x10
test eax, eax
je 0x41ad70
cmp eax, 0x104
jbe 0x41aef6
mov dword [esp], 0x416
call sym._WCMD_LoadMessage
mov edx, eax
mov eax, 0xfffffff4
call sym._WCMD_output_asis_handle
jmp 0x41ad70
movzx edx, word [ebp + eax - 0x84c6]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x41b200
jmp 0x41b194
mov eax, dword [ebp - 0x8974]
mov esi, ebx
sub esi, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x84c8]
mov dword [esp + 8], esi
sar esi, 1
mov dword [esp], eax
call sym._memcpy
xor edx, edx
lea eax, [ebx + 2]
mov word [ebp + esi*2 - 0x84c8], dx
movzx edx, word [ebp - 0x84c8]
mov dword [ebp - 0x8974], eax
test dx, dx
jne 0x41b136
cmp word [ebp - 0x84ca], 0x22
je 0x41b3fe
xor eax, eax
mov word [ebp - 0x88d8], ax
jmp 0x41b194
lea esi, [ebp - 0x400c]
nop
mov dword [esp + 4], 0x3b
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov edi, eax
test eax, eax
je 0x41b2f0
mov edx, eax
mov dword [esp + 4], esi
sub edx, esi
mov dword [esp], ebx
lea esi, [edi + 2]
mov dword [esp + 8], edx
mov dword [ebp - 0x8978], edx
call sym._memcpy
mov edx, dword [ebp - 0x8978]
xor eax, eax
mov word [ebx + edx], ax
lea eax, [ebp - 0x84c8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x41b290
jmp 0x41b323
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x41b2f8
lea eax, [ebp - 0x84c8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x41b03e
test byte [0x423030], 8
jne 0x41b570
lea eax, [ebp - 0x84c8]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov ebx, eax
test byte [0x423030], 8
jne 0x41b8e9
test ebx, ebx
je 0x41b921
mov dword [esp + 4], str..bat
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp], ebx
call esi
test eax, eax
jne 0x41b672
mov ebx, dword [0x423448]
test byte [0x423030], 8
jne 0x41b9ce
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [0x423448], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x84c8]
mov dword [esp], eax
call sym._WCMD_batch
mov dword [0x423448], ebx
test byte [0x423030], 8
je 0x41ad70
mov dword [esp + 0xc], str.Back_from_call_to_batch_program_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41ad70
mov ecx, 0xffffffff
lea esi, [esi]
nop
xor ebx, ebx
mov word [ebp + ecx*2 - 0x84c8], bx
movzx edx, word [ebp - 0x84c8]
jmp 0x41b165
mov edx, dword [ebp - 0x8984]
test edx, edx
jne 0x41afa3
mov edx, ebx
jmp 0x41afe9
test byte [0x423030], 8
je 0x41b330
lea eax, [ebp - 0x84c8]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str.Found_as_file_with_extension_as__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41b330
mov edx, 0x2e
lea edi, [ebp - 0x800c]
jmp 0x41b497
movzx edx, word [eax + 0x437730]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x41b490
lea eax, [ebp - 0x8008]
mov dword [esp + 8], 0x1ffe
mov ebx, dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov dword [esp + 4], eax
mov dword [esp], 0x437736
call ebx
dec eax
sub esp, 0xc
cmp eax, 0x1ffc
jbe 0x41b4f3
xor eax, eax
mov edx, 0x2e
jmp 0x41b4e7
movzx edx, word [eax + 0x437740]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x41b4e0
mov dword [esp + 4], 0x2e
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
movzx edx, word [esi]
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x8984], eax
test dx, dx
je 0x41b536
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x41b520
sub eax, esi
cmp eax, 0x206
jg 0x41b863
lea ecx, [ebp - 0x86d0]
xor eax, eax
mov dword [ebp - 0x8980], ecx
jmp 0x41b554
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x41b550
mov dword [ebp - 0x897c], 0
jmp 0x41ae47
lea eax, [ebp - 0x84c8]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str.Found_via_search_and_pathext_as__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41b330
lea edx, [ebp - 0x84c8]
jmp 0x41afe9
mov eax, dword [ebp - 0x8980]
call sym._wine_dbgstr_wn.constprop.0_2
mov ebx, eax
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Searching_in__s_for__s_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41aea4
lea eax, [ebp - 0x82c0]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x82c0], 0
mov dword [esp], eax
call sym._WCMD_ReadAndParseLine
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x82c0]
mov dword [esp], eax
call sym._WCMD_process_commands
mov ebx, dword [ebp - 0x82c0]
mov edi, dword [sym.imp.ucrtbase.dll_free]
test ebx, ebx
je 0x41ad70
mov esi, ebx
mov ebx, dword [ebx + 8]
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov eax, dword [esi + 4]
mov dword [esp], eax
call edi
mov dword [esp], esi
call edi
test ebx, ebx
jne 0x41b650
jmp 0x41ad70
mov dword [esp + 4], str..cmd
mov dword [esp], ebx
call esi
test eax, eax
je 0x41b379
lea eax, [ebp - 0x84c8]
lea edi, [ebp - 0x88d8]
mov dword [esp + 4], 0
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.shell32.dll_FindExecutableW]
mov dword [ebp - 0x8974], 0
sub esp, 0xc
cmp eax, 0x1f
jg 0x41bd19
mov dword [esp + 4], str..exe
mov dword [esp], ebx
call esi
lea edx, [ebp - 0x891c]
test eax, eax
jne 0x41bae6
lea ebx, [ebp - 0x895c]
xor eax, eax
mov ecx, 0x10
mov dword [ebp - 0x891c], 0x44
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [esp], edx
mov dword [ebp - 0x8960], 0x44
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
movzx esi, word [ebp - 0x88ea]
mov edi, dword [ebp - 0x88e8]
sub esp, 4
mov word [ebp - 0x892e], si
mov dword [ebp - 0x892c], edi
test si, si
je 0x41b731
test edi, edi
jne 0x41b9f7
test byte [0x423030], 8
jne 0x41b990
lea eax, [ebp - 0x8970]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x8960]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x84c8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov ebx, eax
mov eax, dword [ebp - 0x892c]
sub esp, 0x28
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [0x424508]
or eax, dword [0x42450c]
jne 0x41b880
test ebx, ebx
je 0x41b89e
mov edi, dword [0x423448]
test edi, edi
je 0x41b7de
mov eax, dword [ebp - 0x8974]
test eax, eax
je 0x41b805
shr eax, 0x10
jne 0x41b805
test byte [0x423030], 8
jne 0x41bcf0
mov eax, dword [ebp - 0x8970]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov eax, dword [ebp - 0x8970]
mov dword [esp + 4], 0x423344
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [0x423344]
sub esp, 8
cmp eax, 0x103
je 0x41bc71
test byte [0x423030], 8
jne 0x41bcc3
mov eax, dword [ebp - 0x8970]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x896c]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x41ad70
mov dword [esp], 0x40b
call sym._WCMD_LoadMessage
mov edx, eax
mov eax, 0xfffffff4
call sym._WCMD_output_asis_handle
jmp 0x41ad70
mov eax, ebx
or eax, dword [0x424510]
jne 0x41b7bd
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 2
je 0x41bc8d
test byte [0x423030], 8
je 0x41b04c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.Failed_to_launch_via_CreateProcess__rc__d___ld__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41b04c
lea eax, [ebp - 0x84c8]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str.Found_as__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41b356
lea eax, [ebp - 0x84c8]
lea ebx, [ebp - 0x88d8]
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.shell32.dll_FindExecutableW]
sub esp, 0xc
cmp eax, 0x1f
jle 0x41b9b9
lea eax, [ebp - 0x82c0]
mov dword [esp + 0x10], 0x2000
mov dword [esp + 0xc], 0x2b4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.shell32.dll_SHGetFileInfoW]
lea edx, [ebp - 0x891c]
mov dword [ebp - 0x8974], eax
sub esp, 0x14
jmp 0x41b6d9
mov dword [esp + 0xc], str.Launching_via_CreateProcess_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41b73e
mov dword [ebp - 0x8974], 0
lea edx, [ebp - 0x891c]
jmp 0x41b6d9
mov dword [esp + 0xc], str.Calling_batch_program_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41b38c
mov eax, dword [edi]
cmp si, 0x13
mov dword [ebp - 0x8978], eax
mov eax, 0x13
cmovae eax, esi
mov word [ebp - 0x8980], ax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x41bd7b
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x8978]
mov dword [esp + 8], esi
mov dword [esp], ebx
lea ecx, [ebx + eax + 4]
mov dword [ebp - 0x897c], ecx
call sym._memcpy
movzx edi, word [ebp - 0x8980]
mov eax, dword [ebp - 0x8978]
mov dword [ebp - 0x892c], ebx
mov word [ebp - 0x892e], di
test eax, eax
je 0x41ba69
test byte [ebx + 4], 1
je 0x41ba85
mov dword [esp], 0xfffffff6
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, dword [ebp - 0x897c]
sub esp, 4
mov dword [edi], eax
or byte [ebx + 4], 1
cmp dword [ebp - 0x8978], 1
jbe 0x41ba94
test byte [ebx + 5], 1
je 0x41bab1
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, dword [ebp - 0x897c]
sub esp, 4
mov dword [edi + 4], eax
or byte [ebx + 5], 1
cmp dword [ebp - 0x8978], 2
jbe 0x41bac4
test byte [ebx + 6], 1
je 0x41b731
mov dword [esp], 0xfffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, dword [ebp - 0x897c]
sub esp, 4
mov dword [edi + 8], eax
or byte [ebx + 6], 1
jmp 0x41b731
mov dword [ebp - 0x8978], edx
mov dword [esp + 4], str..com
mov dword [esp], ebx
call esi
mov edx, dword [ebp - 0x8978]
test eax, eax
je 0x41b6d9
lea eax, [ebp - 0x8960]
mov dword [esp + 0x10], 1
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._WCMD_parameter
test byte [0x423030], 8
jne 0x41be10
lea ebx, [ebp - 0x8914]
xor eax, eax
mov ecx, 0xd
mov edi, ebx
lea edx, [ebp - 0x891c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x84c8]
mov dword [esp], edx
mov dword [ebp - 0x890c], eax
mov eax, dword [ebp - 0x8960]
mov dword [ebp - 0x8978], edx
mov dword [ebp - 0x891c], 0x3c
mov dword [ebp - 0x8918], 0x8040
mov dword [ebp - 0x8908], eax
mov dword [ebp - 0x8900], 1
call dword [sym.imp.shell32.dll_ShellExecuteExW]
mov edx, dword [ebp - 0x8978]
sub esp, 4
test eax, eax
je 0x41b6d9
cmp dword [ebp - 0x88fc], 0x1f
jle 0x41b6d9
test byte [0x423030], 8
jne 0x41bd95
cmp dword [0x423448], 0
je 0x41bc0d
mov eax, dword [ebp - 0x8974]
test eax, eax
je 0x41bc26
shr eax, 0x10
jne 0x41bc26
test byte [0x423030], 8
je 0x41bc0d
mov dword [esp + 0xc], str.Waiting_for_process_to_end_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x88e4]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
mov eax, dword [ebp - 0x88e4]
mov dword [esp + 4], 0x423344
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push eax
push eax
mov eax, dword [0x423344]
cmp eax, 0x103
je 0x41bdf8
test byte [0x423030], 8
jne 0x41bdcb
mov eax, dword [ebp - 0x8970]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push eax
jmp 0x41ad70
test byte [0x423030], 8
jne 0x41bd52
mov dword [0x423344], 0
jmp 0x41b83c
mov eax, dword [ebp + 8]
cmp word [eax], 0x22
jne 0x41b89e
mov dword [esp], eax
call sym._WCMD_strip_quotes
mov eax, dword [ebp + 0xc]
mov dword [0x424510], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._WCMD_run_program
jmp 0x41ad70
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Process_ended__errorlevel__ld_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41b83c
mov dword [esp + 0xc], str.Waiting_for_process_to_end_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41b7eb
lea eax, [ebp - 0x82c0]
mov dword [esp + 0x10], 0x2000
mov dword [esp + 0xc], 0x2b4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.shell32.dll_SHGetFileInfoW]
mov dword [ebp - 0x8974], eax
sub esp, 0x14
jmp 0x41b6be
mov dword [esp + 0xc], str.Process_still_running__but_returning_anyway_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41bc7e
test byte [0x423030], 2
jne 0x41be39
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Successfully_launched_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
cmp dword [0x423448], 0
je 0x41bbe0
jmp 0x41bbd1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Process_ended__errorlevel__ld_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41bc5c
test byte [0x423030], 8
jne 0x41be62
mov dword [0x423344], 0
jmp 0x41bc5c
mov dword [esp + 0xc], str.Launching_via_ShellExecuteEx_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41bb41
mov dword [esp + 0xc], str.Out_of_memory_n
mov dword [esp + 8], str.xalloc
mov dword [esp + 4], 0x423030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
jmp 0x41bd88
mov dword [esp + 0xc], str.Process_still_running__but_returning_anyway_n
mov dword [esp + 8], str.WCMD_run_program
mov dword [esp + 4], 0x423030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x41be01