Function at 0x411f50
Capabilities:
Get common file path
Query environment variable
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x260
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff6
call esi
mov dword [ebp - 0x5c], eax
push 0xfffffffffffffff5
call esi
mov dword [ebp - 0x60], eax
push 0xfffffffffffffff4
call esi
mov ebx, eax
mov dword [ebp - 0x50], 0xfffffff6
mov dword [ebp - 0x4c], 0xfffffff5
mov dword [ebp - 0x48], 0xfffffff4
test byte [0x41d038], 8
je 0x411fcb
mov ecx, edi
call dbg.wine_dbgstr_w
sub esp, 0x18
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.command_on_entry:_s___p__n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x18
push 0x4000
call sym._malloc
add esp, 4
test eax, eax
je 0x412be3
mov esi, eax
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, word [edi + eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x411ff0
push 0x4000
call sym._malloc
add esp, 4
test eax, eax
je 0x412be3
mov edi, eax
mov ecx, esi
jmp 0x412023
add ecx, 2
movzx eax, word [ecx]
cmp eax, 0x20
je 0x412020
cmp eax, 9
je 0x412020
mov dword [ebp - 0x58], ebx
test byte [0x41d038], 8
mov dword [ebp - 0x1c], ecx
je 0x412072
mov ecx, esi
call dbg.wine_dbgstr_w
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Command:__s_n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
movzx eax, word [ecx]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
xor edx, edx
cmp ax, 0x40
sete dl
lea eax, [ecx + edx*2]
mov dword [ebp - 0x20], eax
add edx, edx
mov dword [ebp - 0x44], edx
mov edi, 0xfffffffe
mov esi, 0xfffffffc
mov ebx, 0xffffffff
nop dword [eax + eax]
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + edi + 2]
push eax
call dword [sym.imp.user32.dll_IsCharAlphaNumericW]
add edi, 2
add esi, 4
inc ebx
test eax, eax
jne 0x4120a0
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], edi
lea esi, [ecx + edi]
mov edi, dword [0x419f98]
push 0xffffffffffffffff
push edi
push ebx
push dword [ebp - 0x20]
push 0x1001
push 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
cmp eax, 2
mov dword [ebp - 0x34], esi
jne 0x4120fe
mov dword [ebp - 0x24], 0
mov byte [ebp - 0xd], 1
jmp 0x41214d
add edi, 0x14
xor ecx, ecx
nop word cs:[eax + eax]
mov esi, ecx
cmp ecx, 0x2e
je 0x41213b
push 0xffffffffffffffff
push edi
push ebx
push dword [ebp - 0x20]
push 0x1001
push 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
add edi, 0x14
lea ecx, [esi + 1]
cmp eax, 2
jne 0x412110
jmp 0x412140
mov ecx, 0x2f
mov dword [ebp - 0x24], ecx
cmp esi, 0x2e
setb byte [ebp - 0xd]
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
add edx, eax
mov ecx, dword [ebp - 0x38]
add ecx, eax
add ecx, 2
mov ebx, esi
mov edi, dword [ebp - 0x18]
jmp 0x412179
add ebx, 2
add edx, 2
add ecx, 2
movzx eax, word [ebx]
cmp eax, 0x20
je 0x412170
cmp eax, 9
je 0x412170
mov dword [ebp - 0x54], ecx
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x24]
je 0x4122e5
cmp eax, 0xe
je 0x4122e5
cmp eax, 0xb
je 0x4122e5
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax], 4
jne 0x4122e5
test byte [0x41d038], 8
je 0x4121e4
sub esp, 0x10
mov dword [esp + 0xc], str.Output_needs_to_be_piped_n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x10
lea edi, [ebp - 0x26c]
push edi
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x4128d5
mov eax, dword [eax + 8]
cmp dword [eax], 0
je 0x41220f
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
add eax, 0xc
push eax
push 0
push 0x4197b4
push edi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test byte [0x41d038], 8
mov edi, dword [ebp - 0x18]
je 0x41227a
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x412967
mov eax, dword [eax + 8]
cmp dword [eax], 0
je 0x412249
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
add ecx, 0xc
call dbg.wine_dbgstr_w
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Using_temporary_file_of__s_n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax], 0
mov ecx, dword [ebp + 0xc]
je 0x4128e5
mov eax, dword [eax + 8]
cmp dword [eax], 0
je 0x412296
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
add eax, 0xc
push eax
push ecx
push str._s____s
push edi
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0x10
test byte [0x41d038], 8
je 0x412300
mov ecx, edi
call dbg.wine_dbgstr_w
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Redirects_now__s_n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x14
jmp 0x412300
xor eax, eax
mov edx, dword [ebp + 0xc]
nop word [eax + eax]
movzx ecx, word [edx + eax]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x4122f0
xor edx, edx
cmp dword [0x421394], 0
setne dl
mov esi, dword [ebp - 0x14]
mov ecx, esi
push dword [0x421398]
call dbg.handleExpansion
add esp, 4
xor edx, edx
cmp dword [0x421394], 0
setne dl
mov ecx, edi
push dword [0x421398]
call dbg.handleExpansion
add esp, 4
cmp word [esi + 2], 0x3a
jne 0x412474
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
push eax
call dword [sym.imp.user32.dll_IsCharAlphaW]
test eax, eax
je 0x412474
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
test eax, eax
je 0x412374
cmp eax, 0x20
je 0x412374
cmp eax, 9
jne 0x412474
mov ebx, dword [ebp - 0x14]
mov word [ebx + 4], 0
mov dword [ebp - 0x30], 0x3d
lea eax, [ebp - 0x2e]
nop word [eax + eax]
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x412390
xor ecx, ecx
nop dword [eax + eax]
movzx edx, word [ebx + ecx]
mov word [eax + ecx - 2], dx
add ecx, 2
test dx, dx
jne 0x4123a0
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0x30]
push 0x104
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x412411
push ebx
push 0x4197fe
push ebx
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
test byte [0x41d038], 8
je 0x412411
mov ecx, ebx
call dbg.wine_dbgstr_w
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.No_special_directory_settings__using_dir_of__s_n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x14
test byte [0x41d038], 8
je 0x412458
lea ecx, [ebp - 0x30]
call dbg.wine_dbgstr_w
mov edi, eax
mov ecx, ebx
call dbg.wine_dbgstr_w
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov edi, dword [ebp - 0x18]
mov dword [esp + 0xc], str.Got_directory__s_as__s_n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x18
push ebx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x412468
call dbg.WCMD_print_error
mov esi, dword [sym.imp.ucrtbase.dll_free]
push ebx
jmp 0x4128c5
mov dword [ebp - 0x26c], 0xc
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 1
mov eax, dword [ebp - 0x24]
cmp eax, 0xb
je 0x41249f
cmp eax, 0xe
jne 0x4124d3
test byte [0x41d038], 8
je 0x412806
sub esp, 0x10
mov dword [esp + 0xc], str.Not_touching_redirects_for_a_FOR_or_IF_command_n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x10
jmp 0x412806
cmp dword [ebp + 0x10], 0
je 0x41259b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, eax
test ecx, ecx
je 0x4124ed
mov edx, dword [eax + 4]
mov edx, dword [edx + 4]
cmp word [edx + 0xc], 0
je 0x41259b
test byte [0x41d038], 8
je 0x412543
test ecx, ecx
je 0x41250b
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
add ecx, 0xc
call dbg.wine_dbgstr_w
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Input_coming_from__s_n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x41254a
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
add eax, 0xc
lea ecx, [ebp - 0x26c]
push 0
push 0x4000080
push 3
push ecx
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x4128b7
push eax
push 0xfffffffffffffff6
call dword [sym.imp.kernel32.dll_SetStdHandle]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x412590
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov word [eax + 0xc], 0
jmp 0x4125f7
push 0x3c
push edi
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
test eax, eax
je 0x4125f7
add eax, 2
sub esp, 0x14
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call sym._WCMD_parameter
add esp, 0x14
lea ecx, [ebp - 0x26c]
push 0
push 0x80
push 3
push ecx
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x4128b7
push eax
push 0xfffffffffffffff6
call dword [sym.imp.kernel32.dll_SetStdHandle]
push 0x3e
push edi
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
test eax, eax
je 0x412806
mov ecx, dword [ebp - 0x18]
jmp 0x412636
push dword [ebp - 0x30]
push dword [ebp + edi*4 - 0x50]
call dword [sym.imp.kernel32.dll_SetStdHandle]
push 0x3e
mov edi, dword [ebp - 0x44]
push edi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov ecx, edi
add esp, 8
test eax, eax
je 0x412806
cmp eax, ecx
jbe 0x412646
mov ecx, 2
cmp word [eax - 2], 0x32
je 0x41264b
mov ecx, 1
mov dword [ebp - 0x40], ecx
lea edi, [eax + 2]
movzx ecx, word [eax + 2]
lea esi, [eax + 4]
xor edx, edx
cmp cx, 0x3e
sete dl
cmove edi, esi
cmp word [eax + edx*2 + 2], 0x26
mov dword [ebp - 0x44], edi
jne 0x412740
movzx eax, word [edi + 2]
mov esi, eax
mov eax, dword [ebp + eax*4 - 0x110]
mov dword [ebp - 0x64], eax
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
push 2
push 1
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_DuplicateHandle]
movzx ecx, byte [0x41d038]
test eax, eax
jne 0x4127f5
mov eax, ecx
and al, 1
mov edi, dword [ebp - 0x40]
je 0x4126ed
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Duplicating_handle_failed_with_gle__ld_n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 0
call dbg.wine_dbg_log
add esp, 0x14
movzx ecx, byte [0x41d038]
test cl, 8
je 0x412610
add esi, 0xffffffd0
push dword [ebp - 0x64]
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ecx, dword [ebp - 0x30]
sub esp, 0x20
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Redirect__d___p__to__d___p__n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x20
jmp 0x412610
xor eax, eax
cmp cx, 0x3e
sete al
lea esi, [eax*2 + 2]
sub esp, 0x14
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call sym._WCMD_parameter
add esp, 0x14
push 0
push 0x80
push esi
mov esi, eax
lea eax, [ebp - 0x26c]
push eax
push 5
push 0x40000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x4128f5
push 2
push 0
push 0
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4127a8
call dbg.WCMD_print_error
test byte [0x41d038], 8
mov edi, dword [ebp - 0x40]
je 0x412610
mov ecx, esi
call dbg.wine_dbgstr_w
mov ecx, dword [ebp - 0x30]
sub esp, 0x1c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Redirect__d_to__s___p__n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x1c
jmp 0x412610
mov edi, dword [ebp - 0x40]
test cl, 8
jne 0x4126f6
jmp 0x412610
mov ecx, ebx
call dbg.WCMD_parse
test byte [0x41d038], 8
je 0x412856
mov ecx, 0x42548e
call dbg.wine_dbgstr_w
mov esi, eax
mov ecx, 0x42948e
call dbg.wine_dbgstr_w
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.param1:__s__param2:__s_n
mov dword [esp + 8], str.WCMD_execute
mov dword [esp], 3
call dbg.wine_dbg_log
add esp, 0x18
cmp byte [ebp - 0xd], 0
mov edi, dword [ebp - 0x18]
je 0x412893
cmp word [ebx], 0x2f
jne 0x412893
mov eax, dword [ebp - 0x54]
cmp word [eax], 0x3f
jne 0x412893
push dword [ebp - 0x38]
push dword [ebp - 0x20]
push ebx
call sym._memcpy
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov word [eax], 0
push ebx
call dbg.WCMD_give_help
add esp, 4
jmp case.0x4128a2.22
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x2e
mov eax, dword [ebp - 0x20]
ja case.default.0x4128a2
jmp dword [ecx*4 + 0x419180]
push ebx
call dbg.WCMD_setshow_default
add esp, 4
jmp case.0x4128a2.22
call dbg.WCMD_print_error
mov esi, dword [sym.imp.ucrtbase.dll_free]
push dword [ebp - 0x14]
call esi
add esp, 4
push edi
call esi
add esp, 4
jmp 0x412b5f
xor eax, eax
cmp dword [eax], 0
jne 0x41220c
jmp 0x41220f
xor eax, eax
cmp dword [eax], 0
jne 0x412293
jmp 0x412296
call dbg.WCMD_print_error
mov esi, dword [sym.imp.ucrtbase.dll_free]
push dword [ebp - 0x14]
call esi
add esp, 4
push dword [ebp - 0x18]
jmp 0x4128cb
push ebx
call dbg.WCMD_remove_dir
add esp, 4
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_create_dir
add esp, 4
jmp case.0x4128a2.22
call dbg.WCMD_rename
jmp case.0x4128a2.22
cmp dword [ebp + 0x14], 0
je 0x412bb9
mov esi, dword [0x41d034]
push 0
push eax
call dbg.WCMD_run_program
add esp, 8
mov dword [0x41d034], esi
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_delete
add esp, 4
jmp case.0x4128a2.22
xor eax, eax
cmp dword [eax], 0
jne 0x412246
jmp 0x412249
push ebx
call dbg.WCMD_verify
add esp, 4
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_choice
add esp, 4
jmp case.0x4128a2.22
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0x34]
nop dword [eax + eax]
add eax, 2
cmp word [ecx], 0
lea ecx, [ecx + 2]
jne 0x4129a0
test eax, eax
jle case.0x4128a2.22
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
add eax, ecx
add eax, 2
push eax
call dbg.WCMD_title
add esp, 4
jmp case.0x4128a2.22
push 1
jmp 0x412a7c
call dbg.WCMD_setshow_time
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_type
add esp, 4
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_setshow_path
add esp, 4
jmp case.0x4128a2.22
call dbg.WCMD_pause
jmp case.0x4128a2.22
call dbg.WCMD_color
jmp case.0x4128a2.22
call dbg.WCMD_setshow_date
jmp case.0x4128a2.22
call dbg.WCMD_setshow_prompt
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_shift
add esp, 4
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_start
add esp, 4
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_call
add esp, 4
jmp case.0x4128a2.22
call dbg.WCMD_move
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_mklink
add esp, 4
jmp case.0x4128a2.22
call dbg.WCMD_clear_screen
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_directory
add esp, 4
jmp case.0x4128a2.22
call dbg.WCMD_popd
jmp case.0x4128a2.22
push 0
push ebx
call dbg.WCMD_assoc
jmp 0x412ad3
push ebx
push 1
jmp 0x412ace
push ebx
call dbg.WCMD_copy
add esp, 4
jmp case.0x4128a2.22
call dbg.WCMD_change_tty
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_pushd
add esp, 4
jmp case.0x4128a2.22
push dword [ebp - 0x34]
call dbg.WCMD_echo
add esp, 4
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_setshow_env
add esp, 4
jmp case.0x4128a2.22
push dword [ebp + 0x10]
call dbg.WCMD_goto
add esp, 4
jmp case.0x4128a2.22
push ebx
push 0
call dbg.WCMD_volume
add esp, 8
mov esi, dword [sym.imp.ucrtbase.dll_free]
push dword [ebp - 0x14]
call esi
add esp, 4
push edi
call esi
add esp, 4
mov esi, dword [ebp - 0x50]
push esi
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, dword [ebp - 0x5c]
cmp edi, eax
je 0x412b11
push esi
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push esi
call dword [sym.imp.kernel32.dll_SetStdHandle]
mov esi, dword [ebp - 0x4c]
push esi
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebx, dword [ebp - 0x60]
cmp ebx, eax
mov edi, dword [ebp - 0x58]
je 0x412b3b
push esi
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
push esi
call dword [sym.imp.kernel32.dll_SetStdHandle]
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.kernel32.dll_GetStdHandle]
cmp edi, eax
je 0x412b5f
push esi
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push esi
call dword [sym.imp.kernel32.dll_SetStdHandle]
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0xfffffff5
mov edx, 0x41968e
call dbg.WCMD_output_asis_handle
call dbg.WCMD_version
jmp case.0x4128a2.22
call dbg.WCMD_endlocal
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_setlocal
add esp, 4
jmp case.0x4128a2.22
push dword [ebp + 0x10]
call dbg.WCMD_exit
add esp, 4
jmp case.0x4128a2.22
push ebx
call dbg.WCMD_more
add esp, 4
jmp case.0x4128a2.22
cmp ecx, 0xe
je 0x412bd5
cmp ecx, 0xb
jne case.0x4128a2.22
push dword [ebp + 0x10]
push ebx
call dbg.WCMD_for
jmp 0x412ad3
push dword [ebp + 0x10]
push ebx
call dbg.WCMD_if
jmp 0x412ad3
test byte [0x41d038], 2
je 0x412c0e
sub esp, 0x10
mov dword [esp + 0xc], str.Out_of_memory_n
mov dword [esp + 8], str.xrealloc
mov dword [esp], 1
call dbg.wine_dbg_log
add esp, 0x10
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]