Function at 0x41f426
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 8
push 0x2d8
mov eax, 0x42dd31
call fcn.0042cd9a
mov edi, ecx
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2c0], esi
xor eax, eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
jne 0x41f495
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41f773
cmp dword [0x432c8c], 1
jl 0x41f773
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x4048f0
call fcn.00411f8a
add esp, 0xc
jmp 0x41f773
mov edx, edi
mov dword [ebp - 0x2b0], edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x2bc]
jne 0x41f4a0
push dword [ebp - 0x2c0]
sub edx, ecx
push 2
push ecx
sar edx, 1
push ecx
mov ecx, edi
mov dword [ebp - 0x2ac], edx
call fcn.00425d45
cmp eax, 0xffffffff
je 0x41f4f9
inc eax
lea ecx, [ebp - 0x2b0]
push eax
xor edi, edi
lea eax, [ebp - 0x2d8]
push edi
push eax
call fcn.0040ec35
mov ecx, dword [eax]
mov dword [ebp - 0x2b4], ecx
mov dword [ebp - 0x2b0], ecx
mov ecx, dword [eax + 4]
jmp 0x41f50b
xor ecx, ecx
xor edi, edi
mov eax, ecx
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x2ac], ecx
mov dword [ebp - 0x2b8], ecx
mov dword [ebp - 0x2c8], eax
lea ecx, [ebp - 0x26c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x41f52c
push dword [0x4324c4]
sub ecx, edx
lea eax, [ebp - 0x26c]
push dword [0x4324c0]
sar ecx, 1
push ecx
push eax
mov dword [ebp - 0x2c4], ecx
call fcn.0041f36b
test al, al
je 0x41f756
push ecx
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.00424f0b
mov ecx, eax
cmp ecx, 0xffffffff
je 0x41f5b5
mov eax, dword [0x432ac0]
mov edi, dword [0x432ac4]
push 0xffffffffffffffff
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x2e8]
push ecx
push eax
lea ecx, [ebp - 0x2c8]
call fcn.0040ec35
push edi
push dword [ebp - 0x2a8]
push dword [eax + 4]
push dword [eax]
call fcn.0041f32b
test al, al
je 0x41f5b5
mov al, 1
jmp 0x41f5b7
xor eax, eax
mov edi, dword [0x43258c]
mov byte [ebp - 0x29c], al
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d0], 0x43258c
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, 0x80
mov dword [ebp - 0x2cc], eax
call fcn.0040c05f
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2cc], eax
lea edx, [eax + 0x10]
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x2e0]
push eax
call fcn.00426ef6
mov eax, dword [ebp - 0x2a8]
xor ecx, ecx
push eax
mov dword [ebp - 0x2cc], ecx
mov byte [ebp - 4], cl
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov word [eax + 0xc], cx
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x2d8]
mov ecx, 0x43258c
push eax
call fcn.00426008
cmp byte [ebp - 0x2d4], 0
jne 0x41f754
push ecx
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040d57f
mov edx, eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2bc]
jne 0x41f684
sub ecx, edi
lea eax, [ebp - 0x26c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0040ecb2
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040de6d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0040c297
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
jb 0x41f6c7
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x2d8]
lea eax, [edi + 0x24]
cmp dword [eax + 0x14], 8
jb 0x41f6d8
mov eax, dword [eax]
push 1
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x41f706
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
jb 0x41f6f7
mov eax, dword [ebp - 0x2c]
push eax
push 0x40491c
call fcn.00412058
pop ecx
pop ecx
jmp 0x41f747
lea eax, [edi + 0x3c]
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x2a8], ecx
jb 0x41f71a
mov eax, dword [eax]
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
jb 0x41f726
mov edx, dword [ebp - 0x2c]
lea ecx, [edi + 0x24]
cmp dword [ecx + 0x14], 8
jb 0x41f731
mov ecx, dword [ecx]
push eax
push dword [ebp - 0x2a8]
push edx
push ecx
push 0x404948
call fcn.0041203a
add esp, 0x14
xor eax, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], al
call fcn.0040c297
xor edi, edi
lea eax, [ebp - 0x298]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f523
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x14]
call fcn.0042cd75
ret