Function at 0x401f44
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get common file path
Set current directory

Disassembly:
push 0x678
mov eax, 0x4035aa
call fcn.00403000
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x678], eax
mov dword [ebp - 0x674], ebx
cmp eax, ebx
je 0x402215
xor ecx, ecx
cmp cx, word [eax]
je 0x402215
mov edi, 0x404030
mov esi, 0x104
cmp dword [0x404028], ebx
jne 0x401fb3
push 0x103
push edi
mov dword [0x404028], 1
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x402215
push 0x401488
push esi
push edi
call fcn.00401d80
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40220d
push dword [ebp - 0x678]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x402200
lea eax, [ebp - 0x670]
push eax
push 0x40147c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x684], eax
cmp eax, 0xffffffff
je 0x4020eb
mov dword [ebp - 0x67c], ebx
lea eax, [ebp - 0x67c]
push eax
push 0x4017a0
push 1
push ebx
push 0x4017b0
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4020cb
push dword [ebp - 0x67c]
lea ecx, [ebp - 0x680]
call fcn.00401c81
mov eax, dword [ebp - 0x680]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4020bd
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x644]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x4020a0
mov eax, dword [ebp - 0x67c]
mov ecx, dword [eax]
push ebx
push ebx
push esi
lea edx, [ebp - 0x218]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x4020a0
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4020a0
lea eax, [ebp - 0x644]
push eax
push dword [ebp - 0x678]
call fcn.00401e62
inc dword [ebp - 0x674]
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x684]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x680]
jne 0x402048
mov byte [ebp - 4], 0
cmp eax, ebx
je 0x4020cb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x684]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x67c]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4020eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0xc], 1
jne 0x4021e4
push dword [ebp - 0x678]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00401d0b
push 0x401474
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.00401d80
test eax, eax
jl 0x4021e4
push ebx
push ebx
push 1
lea eax, [ebp - 0x670]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4021e4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x401470
lea eax, [ebp - 0x644]
push eax
call ebx
test eax, eax
je 0x4021c5
push 0x401468
lea eax, [ebp - 0x644]
push eax
call ebx
test eax, eax
je 0x4021c5
push dword [ebp - 0x678]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00401d0b
push 0x401464
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.00401d80
test eax, eax
jl 0x4021c5
lea eax, [ebp - 0x644]
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.00401d80
test eax, eax
jl 0x4021c5
push 1
lea eax, [ebp - 0x218]
push eax
call fcn.00401f44
add dword [ebp - 0x674], eax
lea eax, [ebp - 0x670]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40214c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
cmp dword [ebp - 0x674], ebx
je 0x402200
push ebx
push dword [ebp - 0x678]
push 5
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x674]
jmp 0x402217
xor eax, eax
call fcn.00403054
ret 8