Function at 0x101e14b
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x1023da8]
and dword [ebp - 0x470], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x478], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x474], edi
mov dword [ebp - 0x464], ebx
mov dword [ebp - 0x46c], eax
call esi
cmp eax, 0xffffffff
jne 0x101e1ad
mov eax, 0x80070003
jmp 0x101e418
test edi, edi
je 0x101e413
test ebx, ebx
je 0x101e413
cmp dword [ebp - 0x468], 0
je 0x101e413
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x101e1e6
cmp dword [ebp + 0x20], 0
je 0x101e323
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push ebx
push eax
push edi
mov ebx, 0x1003a24
push ebx
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
and word [ebp - 6], 0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
jne 0x101e3af
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push dword [ebp - 0x464]
mov dword [ebp - 0x460], eax
push eax
push edi
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x20c]
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
jne 0x101e3af
and dword [ebp - 0x460], 0
push edi
lea eax, [ebp - 0x20c]
push 0x1003a14
push eax
call ebx
xor eax, eax
mov ecx, 0x94
lea edi, [ebp - 0x45c]
rep stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x101e40c
lea eax, [ebp - 0x430]
push 0x1003a10
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x101e36b
lea eax, [ebp - 0x430]
push 0x1003a08
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x101e36b
test dword [ebp - 0x45c], 0x10
lea eax, [ebp - 0x430]
je 0x101e34e
push dword [ebp - 0x464]
push eax
push dword [ebp - 0x474]
lea eax, [ebp - 0x20c]
push 0x10039f4
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
jne 0x101e3af
jmp 0x101e36b
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x101e1e6
mov eax, dword [ebp - 0x46c]
mov eax, dword [eax]
mov dword [ebp - 0x460], eax
jmp 0x101e3af
push eax
push dword [ebp - 0x464]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x101e36b
mov dword [ebp - 0x470], 1
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x101e2a7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x470], 1
jne 0x101e40c
push dword [ebp - 0x464]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x474]
push 0x10039e8
push eax
call ebx
add esp, 0x10
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov ecx, dword [ebp - 0x468]
mov dword [ecx], eax
jne 0x101e3db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01004e21
jmp 0x101e418
mov eax, dword [ebp - 0x478]
test eax, eax
je 0x101e3f6
lea ecx, [ebp - 0x20c]
push ecx
push dword [eax]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [ebp - 0x46c]
test eax, eax
je 0x101e408
mov ecx, dword [ebp - 0x460]
mov dword [eax], ecx
xor eax, eax
jmp 0x101e418
mov eax, 0x80070002
jmp 0x101e418
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101d23a
leave
ret 0x1c