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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x684
mov eax, dword [0x43a004]
xor eax, esp
mov dword [esp + 0x680], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], eax
xor eax, eax
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
lea edi, [esi - 2]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x417af0
mov eax, dword [0x437378]
mov dword [edi], eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, esi
mov edi, eax
mov dword [esp + 0x20], edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417b20
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
cmp eax, 0xffffffff
jle 0x417b4a
cmp word [esi + eax*2], 0x5c
je 0x417b4a
xor ecx, ecx
mov word [esi + eax*2], cx
dec eax
cmp eax, 0xffffffff
jg 0x417b37
mov eax, dword [esp + 0x1c]
lea ebx, [esp + 0x480]
sub ebx, eax
jmp 0x417b64
mov edi, dword [esp + 0x20]
mov ecx, eax
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x417b70
cmp edi, 0xffffffff
je 0x417d96
mov ecx, 0x43737c
lea eax, [esp + 0x54]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417bb8
test dx, dx
je 0x417bb4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417bb8
add eax, 4
add ecx, 4
test dx, dx
jne 0x417b92
xor eax, eax
jmp 0x417bbd
sbb eax, eax
or eax, 1
test eax, eax
je 0x417d56
mov ecx, 0x437380
lea eax, [esp + 0x54]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417bf6
test dx, dx
je 0x417bf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417bf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x417bd0
xor eax, eax
jmp 0x417bfb
sbb eax, eax
or eax, 1
test eax, eax
je 0x417d56
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417c1b
test al, 0x10
je 0x417d56
lea edx, [esp + 0x278]
mov ecx, esi
sub edx, esi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x417c30
lea edx, [esp + 0x54]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x417c46
lea edi, [esp + 0x278]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417c60
mov ecx, edx
lea eax, [esp + 0x278]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417d52
test al, 0x10
je 0x417d52
lea ecx, [esp + 0x278]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417ca3
mov esi, dword [esp + 0x18]
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x417ce3
lea edi, [esp + 0x278]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x417cd0
mov eax, dword [0x437300]
mov dword [edi], eax
push dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x27c]
push eax
lea edx, [esp + 0x488]
call fcn.004177d0
mov edx, dword [esp + 0x1c]
add esp, 8
mov edi, dword [esp + 0x10]
add edi, eax
cmp dword [edx], 0
je 0x417d75
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [ebx + eax - 2], cx
test cx, cx
jne 0x417d15
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x278]
push edx
push eax
lea edx, [esp + 0x488]
call fcn.00417ab0
add edi, eax
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edi
cmp dword [eax], 0
je 0x417d75
jmp 0x417d5a
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x417b60
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x680]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44a060
call fcn.004079d0
mov ecx, dword [esp + 0x698]
add esp, 0xc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret