Function at 0x41c000
Capabilities:
Enumerate files on windows
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov eax, 0x1acc
mov ebp, esp
push edi
push esi
push ebx
call fcn.00401050
sub esp, eax
lea eax, [ebp - 0x818]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1aac], eax
test byte [0x423010], 8
jne 0x41c400
cmp word [ebx], 0
mov eax, ebx
je 0x41c054
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x41c040
sub eax, ebx
cmp eax, 2
jg 0x41c388
mov eax, dword [ebp - 0x1aac]
mov dword [esp], 0x400
lea edi, [ebp - 0x1018]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x1ab4], eax
call eax
movzx edx, word [ebx]
mov eax, edi
sub esp, 8
test dx, dx
je 0x41c330
lea esi, [esi]
cmp dx, 0x22
je 0x41c09c
mov word [eax], dx
add eax, 2
movzx edx, word [ebx + 2]
add ebx, 2
test dx, dx
jne 0x41c090
cmp eax, edi
jbe 0x41c0c7
lea esi, [esi]
movzx edx, word [eax - 2]
cmp dx, 0x20
je 0x41c0c0
cmp dx, 9
jne 0x41c0c7
sub eax, 2
cmp eax, edi
ja 0x41c0b0
xor edx, edx
lea esi, [ebp - 0x1268]
mov word [eax], dx
test byte [0x423010], 8
jne 0x41c238
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41c188
test byte [0x423010], 8
jne 0x41c500
mov dword [esp], edi
mov ebx, dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
call ebx
sub esp, 4
test eax, eax
je 0x41c4e0
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x1ab4]
mov dword [esp], 0x400
call eax
sub esp, 8
mov dword [esp + 4], 0x4366e2
mov dword [esp], 0x430420
call dword [sym.imp.ucrtbase.dll_wcsstr]
test eax, eax
je 0x41c8b0
cmp word [ebp - 0x1016], 0x3a
je 0x41c97b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x41c217
test byte [ebp - 0x1268], 0x10
je 0x41c170
lea edx, [ebp - 0x1a88]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0x104
mov dword [esp], edi
call sym._WCMD_get_fullpath
test eax, eax
je 0x41c15e
lea esi, [ebp - 0x1470]
lea eax, [ebp - 0x1678]
lea edx, [ebp - 0x1a88]
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x1a9c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1880]
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll__wsplitpath]
lea edx, [ebp - 0x123c]
mov dword [esp], edi
lea eax, [ebp - 0x1880]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str._s_s_s
call dword [sym.imp.user32.dll_wsprintfW]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
test byte [0x423010], 8
je 0x41c107
jmp 0x41c500
mov eax, edi
shr eax, 0x10
je 0x41c620
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x4350cb
test ecx, ecx
jne 0x41c633
movzx eax, word [ebp - 0x1018]
test ax, ax
je 0x41ca66
lea esi, [esi]
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x41c280
mov esi, 0x224c
mov dword [ebp - 0x1ab0], edi
lea ecx, [ebp - 0x1266]
mov word [ebp - 0x1268], si
jmp 0x41c2f4
cmp ax, 9
je 0x41c780
cmp ax, 0xa
jne 0x41c79e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0x1146]
lea esi, [edx - 1]
cmp ecx, eax
ja 0x41c942
test edx, edx
jle 0x41c942
mov eax, dword [ebp - 0x1ab0]
mov edx, esi
movzx eax, word [eax]
add dword [ebp - 0x1ab0], 2
cmp ax, 0xd
je 0x41c768
jbe 0x41c2b0
cmp ax, 0x22
je 0x41c7f0
cmp ax, 0x5c
jne 0x41c791
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x41c2d0
cmp word [ebp - 0x818], 0
mov edx, dword [ebp - 0x1aac]
je 0x41c349
add edx, 2
cmp word [edx], 0
jne 0x41c340
xor eax, eax
mov ecx, 0xd
jmp 0x41c35f
movzx ecx, word [eax + 0x4350b4]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41c358
mov eax, dword [ebp - 0x1aac]
mov dword [esp], eax
call sym._WCMD_output_asis
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x4366e2
mov dword [esp + 0xc], 2
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1001
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x41c054
movzx eax, word [ebx + 4]
lea edx, [ebx + 4]
test ax, ax
jne 0x41c3e4
jmp 0x41c3f0
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
je 0x41c3f0
cmp ax, 0x20
je 0x41c3d8
cmp ax, 9
je 0x41c3d8
mov ebx, edx
jmp 0x41c054
test ebx, ebx
je 0x41ca12
mov eax, ebx
shr eax, 0x10
je 0x41c5e0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x4350cb
test ecx, ecx
jne 0x41c5f3
movzx eax, word [ebx]
test ax, ax
je 0x41ca45
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x41c448
mov ecx, 0x224c
mov dword [ebp + 8], ebx
mov esi, ebx
mov word [ebp - 0x818], cx
lea ecx, [ebp - 0x816]
jmp 0x41c4ae
cmp ax, 9
je 0x41c6d8
cmp ax, 0xa
jne 0x41c6f6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x41c908
lea eax, [ebp - 0x6f6]
cmp ecx, eax
ja 0x41c908
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x41c6c0
jbe 0x41c470
cmp ax, 0x22
je 0x41c750
cmp ax, 0x5c
jne 0x41c6e9
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41c490
mov dword [0x4231f0], 1
call sym._WCMD_print_error
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
shr eax, 0x10
je 0x41c9fa
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x4350cb
test ecx, ecx
jne 0x41c68c
movzx eax, word [ebp - 0x1018]
test ax, ax
je 0x41ca24
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x41c540
mov ecx, 0x224c
mov esi, edi
mov word [ebp - 0x1470], cx
lea ecx, [ebp - 0x146e]
jmp 0x41c5ae
cmp ax, 9
je 0x41c898
cmp ax, 0xa
jne 0x41c826
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea eax, [ebp - 0x134e]
lea ebx, [edx - 1]
cmp ecx, eax
ja 0x41c660
test edx, edx
jle 0x41c660
movzx eax, word [esi]
mov edx, ebx
add esi, 2
cmp ax, 0xd
je 0x41c808
jbe 0x41c568
cmp ax, 0x22
je 0x41c880
cmp ax, 0x5c
jne 0x41c819
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41c590
movzx eax, bx
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Request_change_to_directory__s_n
mov dword [esp + 8], str.WCMD_setshow_default
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41c02e
movzx eax, di
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Looking_for_directory__s_n
mov dword [esp + 8], str.WCMD_setshow_default
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41c0df
mov byte [ecx], 0x22
test ebx, ebx
jle 0x41ca3d
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
lea esi, [ebp - 0x1470]
mov byte [eax], 0
mov dword [esp], esi
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Really_changing_to_directory__s_n
mov dword [esp + 8], str.WCMD_setshow_default
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41c107
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41c490
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41c490
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41c973
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x4382d0]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x4382d0]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x4382d0]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x4382d0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x41c490
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41c490
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41c2d0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41c2d0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x41c9f2
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + 0x4382d0]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + 0x4382d0]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + 0x4382d0]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + 0x4382d0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x41c2d0
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x41c2d0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41c590
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x41ca1c
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + 0x4382d0]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + 0x4382d0]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + 0x4382d0]
and ebx, 0xf
movzx ebx, byte [ebx + 0x4382d0]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x41c590
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41c590
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41c590
cmp word [0x428402], 0x3a
jne 0x41c150
movzx eax, word [0x428400]
mov esi, dword [sym.imp.ucrtbase.dll_toupper]
mov dword [esp], eax
call esi
mov dword [ebp - 0x1ab0], eax
movzx eax, word [ebp - 0x818]
mov dword [esp], eax
call esi
cmp dword [ebp - 0x1ab0], eax
je 0x41c150
mov eax, dword [ebp - 0x1aac]
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x41c150
mov byte [ecx], 0x22
mov ebx, dword [ebp + 8]
test edi, edi
jle 0x41ca5e
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x818]
mov dword [esp], eax
mov dword [ebp - 0x1aac], eax
call sym.___wine_dbg_strdup
jmp 0x41c5f3
mov byte [ecx], 0x22
test esi, esi
jle 0x41ca7f
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
lea esi, [ebp - 0x1268]
mov byte [eax], 0
mov dword [esp], esi
call sym.___wine_dbg_strdup
jmp 0x41c633
mov byte [ecx], al
inc ecx
jmp 0x41c490
movzx eax, word [ebp - 0x1018]
mov dword [esp], eax
call dword [sym.imp.user32.dll_IsCharAlphaW]
sub esp, 4
test eax, eax
je 0x41c15e
xor eax, eax
mov edx, 0x3d
lea esi, [ebp - 0x1470]
jmp 0x41c9af
movzx edx, word [eax + 0x4350ba]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x41c9a8
mov eax, dword [ebp - 0x1018]
xor ebx, ebx
mov word [ebp - 0x146a], bx
mov dword [ebp - 0x146e], eax
test byte [0x423010], 8
jne 0x41ca87
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
sub esp, 8
jmp 0x41c15e
mov byte [ecx], al
inc ecx
jmp 0x41c2d0
movzx eax, di
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x41c68c
mov eax, 0x4350c4
jmp 0x41c5f3
mov byte [ecx], al
inc ecx
jmp 0x41c590
mov eax, 0x224c
mov byte [ebp - 0x146e], 0x22
lea ecx, [ebp - 0x146e]
mov word [ebp - 0x1470], ax
lea eax, [ecx + 1]
jmp 0x41c67b
mov eax, 0x224c
mov byte [ebp - 0x816], 0x22
lea ecx, [ebp - 0x816]
mov word [ebp - 0x818], ax
lea eax, [ecx + 1]
jmp 0x41c926
mov ebx, 0x224c
mov byte [ebp - 0x1266], 0x22
lea ecx, [ebp - 0x1266]
mov word [ebp - 0x1268], bx
lea eax, [ecx + 1]
jmp 0x41c95d
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov ebx, eax
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Setting__s_to__s_n
mov dword [esp + 8], str.WCMD_setshow_default
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41c9dd