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

Disassembly:
mov eax, 0x475917
call fcn.00467ed8
sub esp, 0x380
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x71], 0
push 1
pop ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
je 0x41ae7b
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0041cb2e
add esp, 0xc
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 4
call fcn.00407d51
cmp edi, 0xffffffff
je 0x41b17e
mov ebx, 0x47e4b8
mov edi, 0x47e4b0
cmp dword [ebp - 0x1c], 0
je 0x41ae6d
test byte [ebp - 0x38c], 0x10
jne 0x41ae55
lea ecx, [ebp - 0x100]
call fcn.0041b2c5
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0xf6]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
lea eax, [ebp - 0x17]
push 0
push eax
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 0x1b4], edi
call fcn.00405ab2
lea eax, [ebp - 0x15c]
lea ecx, [esi + 0x44]
push eax
mov byte [ebp - 4], 6
call fcn.00406c84
mov ecx, dword [0x47e51c]
mov eax, dword [eax + 0xc]
lea edx, [ebp - 0x16]
push 0
push edx
push ecx
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x204], edi
call fcn.00405c82
lea eax, [ebp - 0x1d4]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00407502
add esp, 0xc
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 9
neg ecx
sbb ecx, ecx
push 0
and ecx, eax
push ecx
lea ecx, [ebp - 0xf0]
call fcn.00406741
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 8
call fcn.00407d51
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
call fcn.00407d51
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 6
call fcn.00407d51
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 5
call fcn.00407d51
mov eax, dword [esi + 0x6c]
mov ecx, eax
and ecx, 0x20000
neg ecx
sbb ecx, ecx
and dword [ebp - 0xc4], 0
not ecx
and ecx, dword [ebp - 0x38c]
test ah, 3
mov dword [ebp - 0xc0], ecx
mov ecx, dword [ebp - 0x378]
mov dword [ebp - 0xbc], ecx
mov ecx, dword [ebp - 0x374]
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebp - 0x36c]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebp - 0x370]
mov dword [ebp - 0xc4], ecx
je 0x41adc4
lea ecx, [ebp - 0x1ac]
call fcn.0041b307
lea eax, [ebp - 0x15]
push 0
push eax
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x1dc], edi
call fcn.00405ab2
lea eax, [ebp - 0x1fc]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00407502
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00406617
push eax
lea ecx, [ebp - 0x1ac]
call fcn.00464d33
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0xb
call fcn.00407d51
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 0xa
call fcn.00407d51
mov eax, dword [ebp - 0x19c]
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x1ac], 0x47ee84
call fcn.0041b36f
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc4]
push 0
add dword [eax + 0x28], edx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x90], edi
adc dword [eax + 0x2c], ecx
lea eax, [esi + 0x84]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00405983
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0xb0]
push eax
add ecx, 0x18
mov byte [ebp - 4], 0xd
call fcn.004130c6
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xc4]
add dword [eax], ecx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 5
adc dword [eax + 4], edx
call fcn.00407d51
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x10]
lea edx, [ebp - 0x100]
push edx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041bb11
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 4
call fcn.00407d51
lea eax, [ebp - 0x38c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x1c], eax
jmp 0x41ab80
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41b17e
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xe
call fcn.0041b2c5
push dword [0x47e51c]
lea eax, [ebp + 0x30]
xor edi, edi
lea ecx, [ebp + 0x34]
neg eax
sbb eax, eax
push edi
and eax, ecx
lea ecx, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0xf
call fcn.00406741
lea ecx, [ebp - 0x164]
call fcn.0041898b
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0041cb2e
add esp, 0xc
push edi
push edi
push 3
push 0x80
push ebx
push SysReAllocString
push eax
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0x11
call fcn.00418a2f
cmp eax, edi
lea ecx, [ebp - 0x128]
setne bl
mov byte [ebp - 4], 0x10
call fcn.00407d51
test bl, bl
je 0x41af57
lea ecx, [ebp + 0x30]
call fcn.00406617
push 0x496348
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41af8c
mov dword [ebp - 0x164], 0x47ed94
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0x12
call fcn.00418ffc
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xf
call fcn.00407d51
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xe
call fcn.00407d51
jmp 0x41b17e
push edi
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0x13
call fcn.0041b1ad
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edi
jmp 0x41af85
mov dword [ebp - 4], 0x10
push edi
lea eax, [ebp - 0x34]
push edi
push eax
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0x15
call fcn.0041b256
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
jmp 0x41afe9
lea eax, [ebp - 0x6e]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
test byte [esi + 0x6d], 3
je 0x41b07f
lea ecx, [ebp - 0x1ac]
call fcn.0041b307
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0041cb2e
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.00406617
push eax
lea ecx, [ebp - 0x1ac]
call fcn.00464d33
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0x17
call fcn.00407d51
mov eax, dword [ebp - 0x19c]
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x1ac], 0x47ee84
call fcn.0041b36f
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
push edi
add dword [eax + 0x28], ecx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x47e4b8
mov dword [ebp - 0x90], 0x47e4b0
adc dword [eax + 0x2c], edx
lea eax, [esi + 0x84]
push eax
call fcn.00405983
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0xb0]
push eax
add ecx, 0x18
mov byte [ebp - 4], 0x19
call fcn.004130c6
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
add dword [eax], ecx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x10
adc dword [eax + 4], edx
call fcn.00407d51
test byte [esi + 0x6e], 2
jne 0x41b12c
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0041cb2e
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0x1a
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x10
call fcn.00407d51
cmp dword [ebp - 0x38], 0xffffffff
jne 0x41b12f
mov dword [ebp - 0x38], edi
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x10]
lea edx, [ebp - 0x78]
push edx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041bb11
mov dword [ebp - 0x164], 0x47ed94
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0x1b
call fcn.00418ffc
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xf
call fcn.00407d51
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xe
call fcn.00407d51
mov dword [ebp - 4], 1
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d51
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00407d51
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x50