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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4910c0
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x384], eax
mov dword [ebp - 0x37c], ebx
push 0x103
lea ecx, [ebp - 0x217]
push ebx
push ecx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x218], bl
call fcn.00477750
mov esi, 0x10
add esp, 0xc
cmp dword [edi + 0x14], esi
jb 0x41623e
mov eax, dword [edi]
jmp 0x416240
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x416250
test al, 0x10
jne 0x416268
cmp dword [ebp + 0x24], esi
jb 0x416261
mov edx, dword [ebp + 0x10]
push edx
call fcn.004777ca
add esp, 4
xor al, al
jmp 0x4164c0
cmp dword [edi + 0x14], esi
jb 0x416271
mov eax, dword [edi]
jmp 0x416273
mov eax, edi
push eax
lea eax, [ebp - 0x218]
push str._s.
push eax
call fcn.004148b0
add esp, 0xc
lea ecx, [ebp - 0x374]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x380], eax
cmp eax, 0xffffffff
je 0x4164ad
mov esi, 0xf
lea eax, [ebp - 0x348]
push 0x497abc
push eax
call fcn.00483a1a
add esp, 8
test eax, eax
je 0x41647d
lea ecx, [ebp - 0x348]
push 0x497ab8
push ecx
call fcn.00483a1a
add esp, 8
test eax, eax
je 0x41647d
test byte [ebp - 0x374], 0x10
jne 0x41647d
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
mov byte [ebp - 0x114], bl
call fcn.00477750
add esp, 0xc
lea eax, [ebp - 0x348]
push eax
mov ecx, edi
call fcn.00401f44
push eax
lea ecx, [ebp - 0x114]
push 0x497ab0
push ecx
call fcn.004148b0
add esp, 0x10
cmp dword [ebp + 0x20], ebx
je 0x4163d6
lea eax, [ebp - 0x114]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416357
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x234]
call fcn.00401602
or dword [ebp - 0x37c], 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x388], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x10]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ebp - 4], 1
mov byte [ecx], bl
call fcn.00401332
sub esp, 0x1c
mov ecx, esp
lea edx, [ebp - 0x234]
mov dword [ebp - 0x38c], esp
push edx
push ecx
mov dword [ebp - 4], 2
call fcn.00414f50
add esp, 8
mov byte [ebp - 4], 1
call fcn.00410bc0
add esp, 0x38
mov byte [ebp - 0x375], 1
cmp al, bl
je 0x4163dc
mov byte [ebp - 0x375], bl
test byte [ebp - 0x37c], 1
mov dword [ebp - 4], ebx
je 0x416407
and dword [ebp - 0x37c], 0xfffffffe
cmp dword [ebp - 0x220], 0x10
jb 0x416407
mov eax, dword [ebp - 0x234]
push eax
call fcn.004777ca
add esp, 4
cmp byte [ebp - 0x375], bl
jne 0x41647d
lea eax, [ebp - 0x114]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416430
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00401602
mov ecx, dword [ebp - 0x384]
lea edx, [ebp - 0x234]
push edx
mov byte [ebp - 4], 3
call fcn.00409f92
cmp dword [ebp - 0x220], 0x10
mov byte [ebp - 4], bl
jb 0x41647d
mov eax, dword [ebp - 0x234]
push eax
call fcn.004777ca
add esp, 4
mov edx, dword [ebp - 0x380]
lea ecx, [ebp - 0x374]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4162b0
mov eax, dword [ebp - 0x380]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
mov esi, 0x10
cmp dword [ebp + 0x24], esi
jb 0x4164be
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004777ca
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret