Function at 0x40ad50
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get geographical location
Query environment variable

Disassembly:
push ebp
mov eax, 0x8a94
mov ebp, esp
push edi
push esi
push ebx
call fcn.00401050
sub esp, eax
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x800c]
mov dword [0x423344], 0
mov dword [esp + 8], 0x2000
mov dword [ebp - 0x8a6c], eax
mov eax, dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov dword [esp + 4], ebx
mov dword [esp], str.DIRCMD
mov dword [ebp - 0x8a78], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x40b360
mov dword [0x4231c0], 0
mov ebx, 0x430580
movzx eax, word [0x430580]
mov dword [0x4231c4], 0
mov dword [0x423338], 0
mov dword [0x42334c], 0
mov dword [0x424540], 0
mov dword [0x434580], 0
mov dword [0x4347e0], 0
mov dword [0x423164], 0
mov dword [0x4234e0], 0
mov dword [0x43458c], 0
mov dword [0x4346e4], 0
mov dword [0x424518], 0
mov dword [0x434588], 1
mov dword [0x423334], 2
mov dword [0x423330], 0
mov dword [0x424524], 0
mov dword [0x42451c], 0
mov dword [0x424520], 0
mov dword [0x434590], 0
mov dword [0x423160], 6
lea esi, [esi]
test ax, ax
je 0x40b3c0
cmp ax, 0x2f
je 0x40ae99
cmp ax, 0x20
jne 0x40b3c0
movzx edx, word [ebx + 2]
lea esi, [ebx + 2]
cmp ax, 0x20
je 0x40af90
xor edi, edi
cmp dx, 0x2d
jne 0x40aeba
lea esi, [ebx + 4]
mov edi, 1
test byte [0x423020], 8
jne 0x40af50
movzx eax, word [esi]
sub eax, 0x41
cmp ax, 0x17
ja case.0x40b215.1
movzx eax, ax
jmp dword [eax*4 + 0x436efc]
movzx eax, word [esi + 2]
lea edx, [esi + 2]
cmp ax, 0x3a
jne 0x40aef4
movzx eax, word [esi + 4]
lea edx, [esi + 4]
cmp ax, 0x41
je 0x40bea0
cmp ax, 0x43
je 0x40b95f
cmp ax, 0x57
je 0x40c24b
test ax, ax
je 0x40b978
cmp ax, 0x2f
je 0x40b978
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
call sym._WCMD_print_error
mov dword [0x423344], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x430580
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], eax
movzx eax, word [esi]
mov dword [esp + 0xc], str.Processing_arg__c__in__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_directory
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40aec7
mov eax, edx
mov ebx, esi
jmp 0x40ae80
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
test edi, edi
je 0x40b910
mov ecx, dword [0x43458c]
xor edx, edx
test ecx, ecx
sete dl
mov dword [0x43458c], edx
jmp 0x40ae80
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
test edi, edi
je 0x40b900
mov ecx, dword [0x4347e0]
xor edx, edx
test ecx, ecx
sete dl
mov dword [0x4347e0], edx
jmp 0x40ae80
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
test edi, edi
je 0x40b8f0
mov esi, dword [0x434580]
xor edx, edx
test esi, esi
sete dl
mov dword [0x434580], edx
jmp 0x40ae80
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
test edi, edi
je 0x40b8e0
mov edi, dword [0x4346e4]
xor edx, edx
test edi, edi
sete dl
mov dword [0x4346e4], edx
jmp 0x40ae80
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
test edi, edi
je 0x40b8d0
mov edi, dword [0x424540]
xor edx, edx
test edi, edi
sete dl
mov dword [0x424540], edx
jmp 0x40ae80
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
cmp ax, 0x3a
jne 0x40b0a8
movzx eax, word [esi + 4]
lea ebx, [esi + 4]
lea esi, [esi]
test ax, ax
je 0x40b3c0
cmp ax, 0x2f
je 0x40ae80
test byte [0x423020], 8
jne 0x40b2d8
movzx eax, word [ebx]
sub eax, 0x2d
cmp ax, 0x26
ja case.0x40b215.1
movzx eax, ax
jmp dword [eax*4 + 0x436f5c]
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
test edi, edi
je 0x40b8c0
mov esi, dword [0x4234e0]
xor edx, edx
test esi, esi
sete dl
mov dword [0x4234e0], edx
jmp 0x40ae80
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
test edi, edi
je 0x40b8b0
mov esi, dword [0x424518]
xor edx, edx
test esi, esi
sete dl
mov dword [0x424518], edx
jmp 0x40ae80
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
test edi, edi
je 0x40b8a0
mov ecx, dword [0x434588]
xor edx, edx
test ecx, ecx
sete dl
mov dword [0x434588], edx
jmp 0x40ae80
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
test edi, edi
je 0x40b890
mov edi, dword [0x423164]
xor edx, edx
test edi, edi
sete dl
mov dword [0x423164], edx
jmp 0x40ae80
movzx eax, word [esi + 2]
lea ebx, [esi + 2]
mov dword [0x434590], 0
mov dword [0x423160], 0
cmp ax, 0x3a
jne 0x40b1d0
movzx eax, word [esi + 4]
lea ebx, [esi + 4]
lea esi, [esi]
nop
test ax, ax
je 0x40bf30
cmp ax, 0x2f
je 0x40bf30
mov esi, ebx
xor ebx, ebx
cmp ax, 0x2d
jne 0x40b1f5
add esi, 2
mov ebx, 1
test byte [0x423020], 8
jne 0x40b320
movzx eax, word [esi]
sub eax, 0x41
cmp ax, 0x12
ja case.0x40b215.1
movzx eax, ax
jmp dword [eax*4 + 0x436ff8]
mov eax, 1
mov edx, eax
or dword [0x423160], eax
or eax, dword [0x434590]
not edx
and edx, dword [0x434590]
test ebx, ebx
cmovne eax, edx
lea ebx, [esi + 2]
mov dword [0x434590], eax
movzx eax, word [esi + 2]
jmp 0x40b1d0
mov eax, 0x10
jmp 0x40b221
mov eax, 0x20
jmp 0x40b221
mov dword [0x423330], 2
movzx eax, word [ebx + 2]
lea esi, [esi]
lea esi, [esi]
add ebx, 2
jmp 0x40b0a8
mov dword [0x423330], 0
movzx eax, word [ebx + 2]
jmp 0x40b270
mov dword [0x42451c], 1
movzx eax, word [ebx + 2]
jmp 0x40b270
mov dword [0x423330], 1
movzx eax, word [ebx + 2]
jmp 0x40b270
mov dword [0x423330], 3
movzx eax, word [ebx + 2]
jmp 0x40b270
movzx eax, word [ebx + 2]
cmp ax, 0x47
je 0x40b939
mov dword [0x424524], 1
jmp 0x40b270
mov eax, 0x430580
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], eax
movzx eax, word [ebx]
mov dword [esp + 0xc], str.Processing_subparm__c__in__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_directory
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40b0c8
mov eax, 0x430580
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], eax
movzx eax, word [esi]
mov dword [esp + 0xc], str.Processing_subparm__c__in__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_directory
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40b202
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsupr]
cmp word [ebp - 0x800c], 0
mov edx, ebx
je 0x40b381
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40b378
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x430580]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40b388
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
add eax, 2
mov word [eax + 0x43057e], dx
test dx, dx
jne 0x40b3a0
jmp 0x40ada6
mov edi, dword [0x423164]
mov eax, dword [0x424518]
test edi, edi
jne 0x40b920
mov esi, dword [0x43458c]
test esi, esi
je 0x40beb6
mov dword [0x4347e0], 0
test eax, eax
jne 0x40bed2
mov ecx, dword [0x424540]
test ecx, ecx
jne 0x40c114
lea eax, [ebp - 0x400c]
mov dword [esp + 0xc], 0x50
mov ebx, 0x4231e0
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov dword [esp + 4], 0x1f
mov dword [esp], 0x400
mov dword [ebp - 0x8a74], eax
call eax
sub esp, 0x10
cmp word [ebp - 0x400c], 0
je 0x40b4d7
lea edi, [ebp - 0x400c]
jmp 0x40b46a
mov dword [esp], ebx
add ebx, esi
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._memcpy
add edi, esi
cmp word [edi], 0
je 0x40b4d7
mov edx, 0x436e0a
mov eax, edi
call sym._get_pattern_len
movzx edx, word [edi]
mov ecx, eax
lea esi, [eax + eax]
cmp dx, 0x64
je 0x40b49a
ja 0x40b990
cmp dx, 0x27
je 0x40b450
cmp dx, 0x4d
jne 0x40b99a
cmp eax, 4
je 0x40be68
lea esi, [esi]
nop
cmp eax, 1
je 0x40b9a8
test eax, eax
je 0x40b462
mov dword [ebp - 0x8a70], esi
xor eax, eax
lea esi, [esi]
mov word [ebx + eax*2], dx
inc eax
cmp eax, ecx
jb 0x40b4c0
add edi, esi
add ebx, dword [ebp - 0x8a70]
cmp word [edi], 0
jne 0x40b46a
xor edx, edx
mov word [ebx], dx
test byte [0x423020], 8
jne 0x40c125
lea eax, [ebp - 0x400c]
mov dword [esp + 0xc], 0x50
mov ebx, 0x4345a0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8a74]
mov dword [esp + 4], 0x1003
mov dword [esp], 0x400
call eax
sub esp, 0x10
cmp word [ebp - 0x400c], 0
je 0x40b591
lea edi, [ebp - 0x400c]
jmp 0x40b54a
mov dword [esp], ebx
add ebx, esi
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._memcpy
add edi, esi
cmp word [edi], 0
je 0x40b591
mov edx, str.Hhmst
mov eax, edi
call sym._get_pattern_len
mov edx, eax
movzx eax, word [edi]
mov dword [ebp - 0x8a70], edx
lea esi, [edx + edx]
cmp ax, 0x6d
je 0x40ba17
ja 0x40b9c0
cmp ax, 0x27
je 0x40b530
cmp ax, 0x26
ja 0x40ba08
add edi, esi
mov word [ebx], ax
add ebx, esi
cmp word [edi], 0
jne 0x40b54a
xor eax, eax
mov word [ebx], ax
test byte [0x423020], 8
jne 0x40c0dd
mov eax, dword [ebp + 8]
mov dword [esp], 0x104
mov dword [ebp - 0x8a6c], eax
lea eax, [ebp - 0x882c]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x882c]
sub esp, 8
cmp word [ebp - 0x882c], 0
je 0x40b5e9
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40b5e0
xor eax, eax
mov ecx, 0x5c
jmp 0x40b5ff
movzx ecx, word [eax + 0x436d6c]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40b5f8
mov eax, dword [ebp - 0x8a6c]
test eax, eax
je 0x40c166
mov dword [ebp - 0x8a7c], 0
xor edi, edi
xor esi, esi
lea esi, [esi]
nop
mov eax, esi
lea ebx, [ebp - 0x8a6c]
inc esi
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov dword [esp], eax
call sym._WCMD_parameter
mov ebx, eax
mov eax, dword [ebp - 0x8a6c]
test eax, eax
je 0x40b740
cmp word [eax], 0x2f
je 0x40b733
test byte [0x423020], 8
jne 0x40bba0
cmp word [ebx + 2], 0x3a
movzx edx, word [ebx]
je 0x40ba70
xor eax, eax
cmp dx, 0x5c
je 0x40bdd8
lea esi, [esi]
movzx edx, word [ebp + eax - 0x882c]
mov word [ebp + eax - 0x400c], dx
add eax, 2
test dx, dx
jne 0x40b6a0
cmp word [ebp - 0x400c], 0
lea edx, [ebp - 0x400c]
je 0x40b6d9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x40b6d0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40b6e0
test byte [0x423020], 8
jne 0x40bb60
lea eax, [ebp - 0x8a34]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x400c]
mov dword [esp + 4], 0x104
mov dword [esp], eax
call sym._WCMD_get_fullpath
test eax, eax
jne 0x40bbd8
mov eax, dword [ebp - 0x8a6c]
test eax, eax
jne 0x40b630
lea esi, [esi]
nop
mov eax, dword [ebp - 0x8a7c]
test eax, eax
je 0x40c166
mov eax, 0x3f
mov ebx, dword [ebp - 0x8a7c]
mov dword [ebp - 0x8a74], 0
mov dword [ebp - 0x8a78], 0
mov word [ebp - 0x8a70], ax
jmp 0x40b852
cmp cx, 0x3f
je 0x40ba30
mov eax, dword [ebp - 0x8a74]
mov eax, dword [eax + 4]
call sym._WCMD_dir_trailer
mov edi, dword [ebx + 4]
mov dword [0x423338], 0
mov dword [0x42334c], 0
mov dword [0x4231c0], 0
movzx esi, word [edi]
mov dword [0x4231c4], 0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_towupper]
mov dword [ebp - 0x8a78], 0
mov word [ebp - 0x8a70], ax
mov eax, dword [0x423164]
test eax, eax
jne 0x40b82f
test byte [0x423020], 8
jne 0x40ba40
mov eax, dword [edi]
mov dword [esp], 0
xor esi, esi
mov word [ebp - 0x4008], si
mov dword [ebp - 0x400c], eax
lea eax, [ebp - 0x400c]
mov dword [esp + 4], eax
call sym._WCMD_volume
test eax, eax
je 0x40c204
mov dword [ebp - 0x8a78], 1
mov dword [0x423344], 0
xor edx, edx
mov eax, ebx
call sym._WCMD_list_directory
mov dword [ebp - 0x8a74], ebx
test eax, eax
je 0x40be10
mov ebx, eax
mov edi, dword [ebx + 4]
movzx esi, word [edi]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_towupper]
movzx ecx, word [ebp - 0x8a70]
cmp ax, cx
jne 0x40b780
mov ecx, dword [0x423164]
test ecx, ecx
jne 0x40b82f
mov dword [esp], 0x436ef4
call sym._WCMD_output_asis
jmp 0x40b82f
mov dword [0x423164], 1
jmp 0x40ae80
mov dword [0x434588], 1
jmp 0x40ae80
mov dword [0x424518], 1
jmp 0x40ae80
mov dword [0x4234e0], 1
jmp 0x40ae80
mov dword [0x424540], 1
jmp 0x40ae80
mov dword [0x4346e4], 1
jmp 0x40ae80
mov dword [0x434580], 1
jmp 0x40ae80
mov dword [0x4347e0], 1
jmp 0x40ae80
mov dword [0x43458c], 1
jmp 0x40ae80
mov dword [0x4347e0], 0
mov dword [0x43458c], 0
jmp 0x40b3eb
mov dword [0x424520], 1
add ebx, 2
jmp 0x40b0bb
mov eax, 4
jmp 0x40b221
mov eax, 2
jmp 0x40b221
mov dword [0x423334], 0
movzx eax, word [edx + 2]
lea ebx, [edx + 2]
jmp 0x40ae80
mov dword [0x423334], 2
mov ebx, edx
jmp 0x40ae80
cmp dx, 0x79
je 0x40b4a8
mov word [ebx], dx
add ebx, esi
jmp 0x40b462
mov dword [ebp - 0x8a70], 4
mov ecx, 2
jmp 0x40b4bb
cmp ax, 0x73
je 0x40ba17
cmp ax, 0x74
jne 0x40b584
mov dword [ebp - 0x8a74], esi
test edx, edx
je 0x40bf20
mov ecx, dword [ebp - 0x8a70]
xor edx, edx
lea esi, [esi]
lea esi, [esi]
mov word [ebx + edx*2], ax
inc edx
cmp edx, ecx
jb 0x40b9f0
add ebx, dword [ebp - 0x8a74]
jmp 0x40b542
mov ecx, eax
and ecx, 0xffffffdf
cmp cx, 0x48
jne 0x40b584
cmp edx, 1
je 0x40be80
test edx, edx
je 0x40b542
mov dword [ebp - 0x8a74], esi
jmp 0x40b9de
mov word [ebp - 0x8a70], ax
jmp 0x40b7e0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Writing_volume_for__c:_n
mov dword [esp + 8], str.WCMD_directory
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov edi, dword [ebx + 4]
jmp 0x40b7f6
cmp word [ebx + 4], 0x5c
je 0x40c261
mov dword [esp + 8], edx
mov edx, dword [sym.imp.user32.dll_wsprintfW]
lea ecx, [ebp - 0x8a66]
mov dword [esp], ecx
mov dword [ebp - 0x8a70], edx
mov dword [esp + 4], 0x436e52
call edx
lea eax, [ebp - 0x400c]
lea ecx, [ebp - 0x8a66]
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8a78]
mov dword [esp], ecx
call eax
mov edx, dword [ebp - 0x8a70]
sub esp, 0xc
test eax, eax
je 0x40c288
cmp word [ebp - 0x400c], 0
lea edx, [ebp - 0x400c]
je 0x40baf1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40bae8
xor eax, eax
mov ecx, 0x5c
jmp 0x40bb07
movzx ecx, word [eax + 0x436d6c]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40bb00
cmp word [ebp - 0x400c], 0
lea edx, [ebp - 0x400c]
je 0x40bb31
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x40bb28
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax + 4]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40bb38
test byte [0x423020], 8
je 0x40b6fd
lea esi, [esi]
lea esi, [esi]
lea eax, [ebp - 0x400c]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Using_location__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_directory
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40b6fd
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Found_parm__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_directory
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40b683
lea eax, [ebp - 0x8a34]
mov dword [esp + 4], 0x2a
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x40bf45
cmp word [ebp - 0x400c], 0
je 0x40c326
lea eax, [ebp - 0x400c]
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40bc10
lea ebx, [ebp - 0x400c]
sub eax, ebx
sar eax, 1
dec eax
movzx edx, word [ebp + eax*2 - 0x400c]
cmp dx, 0x2e
je 0x40c2a7
test byte [0x423020], 8
jne 0x40c0a5
mov dword [esp], 0xc
call sym._xalloc
mov ebx, dword [ebp - 0x8a7c]
mov dword [ebp - 0x8a70], eax
test ebx, ebx
cmove ebx, eax
mov dword [ebp - 0x8a7c], ebx
test edi, edi
je 0x40bc6c
mov dword [edi], eax
mov eax, dword [ebp - 0x8a70]
lea edx, [ebp - 0x8a5e]
lea ebx, [ebp - 0x841c]
mov dword [eax], 0
lea eax, [ebp - 0x8214]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x8624]
mov dword [esp + 8], eax
lea eax, [ebp - 0x8a34]
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wsplitpath]
test byte [0x423020], 8
lea edx, [ebp - 0x8a5e]
jne 0x40c020
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], edx
mov dword [ebp - 0x8a74], eax
call eax
lea ecx, [ebp - 0x8624]
mov dword [esp], ecx
mov edi, eax
mov eax, dword [ebp - 0x8a74]
call eax
lea eax, [edi + eax + 1]
add eax, eax
mov dword [esp], eax
call sym._xalloc
mov edi, dword [ebp - 0x8a70]
xor ecx, ecx
lea edx, [ebp - 0x8a5e]
mov dword [edi + 4], eax
lea esi, [esi]
movzx edi, word [edx + ecx]
mov word [eax + ecx], di
add ecx, 2
test di, di
jne 0x40bd08
cmp word [eax], 0
je 0x40bd29
nop
add eax, 2
cmp word [eax], 0
jne 0x40bd20
xor edx, edx
lea esi, [esi]
nop
movzx ecx, word [ebp + edx - 0x8624]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x40bd30
mov dword [esp], ebx
mov eax, dword [ebp - 0x8a74]
call eax
lea ecx, [ebp - 0x8214]
mov edi, eax
mov dword [esp], ecx
mov eax, dword [ebp - 0x8a74]
call eax
lea eax, [edi + eax + 1]
add eax, eax
mov dword [esp], eax
call sym._xalloc
mov edi, dword [ebp - 0x8a70]
xor edx, edx
mov dword [edi + 8], eax
lea esi, [esi]
nop
movzx ecx, word [ebx + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x40bd80
cmp word [eax], 0
je 0x40bda9
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40bda0
xor edx, edx
lea esi, [esi]
nop
movzx ecx, word [ebp + edx - 0x8214]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x40bdb0
mov eax, dword [ebp - 0x8a6c]
mov edi, dword [ebp - 0x8a70]
jmp 0x40b733
mov eax, dword [ebp - 0x882c]
mov dword [ebp - 0x400c], eax
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [ebp + eax - 0x4008], dx
add eax, 2
test dx, dx
jne 0x40bdf0
jmp 0x40b6f0
mov edx, dword [ebp - 0x8a78]
test edx, edx
jne 0x40c1f7
mov eax, dword [0x424540]
test eax, eax
jne 0x40c15c
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, dword [ebp - 0x8a7c]
lea esi, [esi]
nop
mov edi, ebx
mov ebx, dword [ebx]
mov eax, dword [edi + 4]
mov dword [esp], eax
call esi
mov eax, dword [edi + 8]
mov dword [esp], eax
call esi
mov dword [esp], edi
call esi
test ebx, ebx
jne 0x40be40
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x8a70], 6
mov ecx, 3
jmp 0x40b4bb
mov dword [ebp - 0x8a74], 4
mov dword [ebp - 0x8a70], 2
jmp 0x40b9de
mov dword [0x423334], 1
movzx eax, word [edx + 2]
lea ebx, [edx + 2]
jmp 0x40ae80
mov ebx, dword [0x4347e0]
test ebx, ebx
je 0x40b3eb
mov dword [0x4346e4], 0
test eax, eax
je 0x40bedc
mov dword [0x4347e0], 1
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
lea edx, [ebp - 0x8a4a]
sub esp, 4
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
sub esp, 8
test eax, eax
je 0x40c213
movsx eax, word [ebp - 0x8a4a]
mov dword [0x4234e8], eax
jmp 0x40b3f3
add edi, esi
jmp 0x40b54a
test byte [0x423020], 8
jne 0x40c2e8
movzx eax, word [ebx]
jmp 0x40ae80
lea eax, [ebp - 0x8a34]
mov dword [esp + 4], 0x25
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
jne 0x40bbf7
lea eax, [ebp - 0x8a34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x40bc36
test al, 0x10
je 0x40bc36
cmp word [ebp - 0x8a34], 0
je 0x40c33a
lea eax, [ebp - 0x8a34]
add eax, 2
cmp word [eax], 0
jne 0x40bf9b
lea ebx, [ebp - 0x8a34]
sub eax, ebx
mov edx, ebx
cmp word [ebp + eax - 0x8a36], 0x5c
je 0x40bfee
add edx, 2
cmp word [edx], 0
jne 0x40bfb9
xor eax, eax
mov ecx, 0x5c
jmp 0x40bfd2
movzx ecx, word [eax + 0x436d6c]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40bfcb
cmp word [ebp - 0x8a34], 0
lea edx, [ebp - 0x8a34]
je 0x40bffd
lea edx, [ebp - 0x8a34]
add edx, 2
cmp word [edx], 0
jne 0x40bff4
xor eax, eax
mov ecx, 0x2a
jmp 0x40c00d
movzx ecx, word [eax + 0x436d4a]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c006
jmp 0x40bc36
lea eax, [ebp - 0x8214]
lea edi, [ebp - 0x8624]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [ebp - 0x8a80], eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [ebp - 0x8a74], eax
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_1
lea edx, [ebp - 0x8a5e]
mov edi, eax
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0_1
mov ecx, dword [ebp - 0x8a80]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x8a74]
mov dword [esp + 0xc], str.Path_Parts:_drive:__s_dir:__s_name:__s_ext:_s_n
mov dword [esp + 0x18], ecx
mov dword [esp + 8], str.WCMD_directory
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
lea edx, [ebp - 0x8a5e]
jmp 0x40bcc2
lea eax, [ebp - 0x8a34]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Using_path__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_directory
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40bc43
mov eax, 0x4345a0
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.time_format:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.init_time_format
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40b5a3
mov dword [esp], 0
call sym._WCMD_enter_paged_mode
jmp 0x40b401
mov eax, 0x4231e0
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.date_format:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.init_date_format
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40b4e9
call sym._WCMD_leave_paged_mode
jmp 0x40be2b
test byte [0x423020], 8
jne 0x40c222
mov dword [esp], 0xc
call sym._xalloc
cmp word [ebp - 0x882c], 0
mov dword [ebp - 0x8a7c], eax
mov dword [eax], 0
je 0x40c330
lea eax, [ebp - 0x882c]
nop
add eax, 2
cmp word [eax], 0
jne 0x40c1a0
lea edi, [ebp - 0x882c]
sub eax, edi
lea ebx, [eax + 2]
mov dword [esp], ebx
call sym._xalloc
mov dword [esp + 8], ebx
mov esi, eax
lea eax, [ebp - 0x882c]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._memcpy
mov edi, dword [ebp - 0x8a7c]
mov dword [edi + 4], esi
mov dword [esp], 4
call sym._xalloc
mov dword [eax], 0x2a
mov dword [edi + 8], eax
jmp 0x40b74e
mov eax, dword [ebx + 4]
call sym._WCMD_dir_trailer
jmp 0x40be1e
mov dword [0x423344], 1
jmp 0x40be1e
mov dword [0x4234e8], 0x50
jmp 0x40b3f3
mov dword [esp + 0xc], str.Inserting_default__n
mov dword [esp + 8], str.WCMD_directory
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40c173
mov dword [0x423334], 2
movzx eax, word [edx + 2]
lea ebx, [edx + 2]
jmp 0x40ae80
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebx + eax]
mov word [ebp + eax - 0x400c], dx
add eax, 2
test dx, dx
jne 0x40c268
jmp 0x40b6f0
movzx eax, word [ebx]
mov dword [esp + 4], 0x436e5c
mov dword [esp + 8], eax
lea eax, [ebp - 0x400c]
mov dword [esp], eax
call edx
jmp 0x40bad2
cmp word [ebp - 0x8a34], 0
lea ecx, [ebp - 0x8a34]
je 0x40c2c9
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x40c2c0
xor eax, eax
jmp 0x40c2d7
movzx edx, word [eax + 0x436c40]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x40c2d0
jmp 0x40bc36
mov eax, dword [0x423160]
mov dword [esp + 0xc], str.Result:_showattrs__lx__bits__lx_n
mov dword [esp + 8], str.WCMD_directory
mov dword [esp + 0x14], eax
mov eax, dword [0x434590]
mov dword [esp + 4], 0x423020
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
movzx eax, word [ebx]
jmp 0x40ae80
mov eax, 0xffffffff
jmp 0x40bc24
mov ebx, 2
jmp 0x40c1b4
lea edx, [ebp - 0x8a34]
jmp 0x40bfc2