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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c009
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x48d814]
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 + 8]
xor ebx, ebx
mov edi, ecx
mov esi, 0xf
mov dword [ebp - 0x2b0], edi
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x29c]
call fcn.004087c0
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x34], ebx
jne 0x40ba9e
push 0x12
push str.invalid_file_name.
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00402920
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push ecx
push ebx
mov ecx, edi
call fcn.0040a0e0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 0x10
jb 0x40ba93
mov edx, dword [ebp - 0x28]
push edx
call fcn.00450138
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], bl
jmp 0x40bc8f
lea eax, [ebp - 0x48]
push eax
push ecx
call fcn.00407cd0
add esp, 8
mov byte [ebp - 4], 2
mov dword [ebp - 0x2b8], ebx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40bac5
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x298]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x29c], esi
mov dword [ebp - 0x2b8], esi
cmp esi, 0xffffffff
jne 0x40bb75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40bb06
cmp eax, 3
je 0x40bb06
mov ecx, edi
call fcn.0040a190
jmp 0x40bc5a
push 0x1720
lea ecx, [ebp - 0x2a8]
call fcn.0042c810
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2a4]
push 4
lea eax, [ebp - 0x29c]
push eax
mov dword [ebp - 0x29c], ebx
call fcn.0042abe0
push 4
lea ecx, [ebp - 0x29c]
push ecx
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x29c], ebx
call fcn.0042abe0
lea ecx, [ebp - 0x2a8]
call fcn.0042c800
push eax
mov ecx, edi
call fcn.00409b00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2a8]
call fcn.0042c7f0
jmp 0x40bc5a
push 0x1720
lea ecx, [ebp - 0x2a8]
call fcn.0042c810
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2a4]
push 4
lea edx, [ebp - 0x2ac]
push edx
mov dword [ebp - 0x2ac], ebx
call fcn.0042abe0
lea ecx, [ebp - 0x2a8]
call fcn.0042c800
mov eax, dword [eax + 0x18]
push 4
lea ecx, [ebp - 0x2ac]
push ecx
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2b4], eax
xor esi, esi
mov dword [ebp - 0x2ac], ebx
call fcn.0042abe0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea esp, [esp]
mov ecx, dword [ebp - 0x2a4]
push 0x250
lea edx, [ebp - 0x298]
push edx
call fcn.0042abe0
mov ecx, dword [ebp - 0x29c]
lea eax, [ebp - 0x298]
push eax
push ecx
inc esi
call edi
test eax, eax
jne 0x40bbe0
lea ecx, [ebp - 0x2a8]
call fcn.0042c800
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x40bc23
mov eax, dword [eax + 4]
jmp 0x40bc25
xor eax, eax
mov edx, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2a8]
mov dword [eax + edx], esi
call fcn.0042c800
mov ecx, dword [ebp - 0x2b0]
push eax
call fcn.00409b00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2a8]
call fcn.0042c7f0
mov esi, dword [ebp - 0x29c]
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
je 0x40bc6a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 8
jb 0x40bc7f
mov eax, dword [ebp - 0x28]
push eax
call fcn.00450138
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
lea esi, [ecx + 0xf]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x30], 0x10
jb 0x40bcab
mov edx, dword [ebp - 0x44]
push edx
call fcn.00450138
add esp, 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], 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.0045075f
mov esp, ebp
pop ebp
ret 4