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

Disassembly:
push 0x4e0
mov eax, 0x105974b
call fcn.01022105
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x4c4]
mov dword [ebp - 0x4dc], esi
mov dword [ebp - 0x4d4], eax
mov dword [ebp - 0x4b4], ebx
call fcn.010155dc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x4b8]
call fcn.010155dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4bc]
call fcn.010155dc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c8]
call fcn.010155dc
mov byte [ebp - 4], 3
cmp esi, ebx
mov dword [ebp - 0x4cc], 1
jne 0x104f44c
push 0x57
pop esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c8]
call fcn.010151a6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4bc]
call fcn.010151a6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4b8]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c4]
call fcn.010151a6
mov eax, esi
call fcn.01022197
ret 8
cmp dword [0x1065908], ebx
jne 0x104f467
call fcn.0104f22d
cmp eax, ebx
mov dword [ebp - 0x4b4], eax
je 0x104f467
mov esi, eax
jmp 0x104f406
push 0x1065700
lea ecx, [ebp - 0x4c4]
call fcn.01015d13
push 0x1005f80
lea eax, [ebp - 0x4c4]
push eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.01015dca
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x4b8]
call fcn.01015b0a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c0]
call fcn.010151a6
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x4b8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x4c0], eax
jne 0x104f4dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x104f463
xor eax, eax
jmp 0x104f463
mov esi, 0x1005f7c
test byte [ebp - 0x260], 0x10
je 0x104f6ab
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x1005f78
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x104f6ab
push 0x1005f70
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x104f6ab
push esi
lea eax, [ebp - 0x4c4]
push eax
lea eax, [ebp - 0x4d0]
push eax
call fcn.01015dca
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
push ecx
push eax
lea eax, [ebp - 0x4e4]
push eax
call fcn.01015dca
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x4bc]
call fcn.01015b0a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4e4]
call fcn.010151a6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4d0]
call fcn.010151a6
push esi
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x4d8]
push eax
call fcn.01015dca
mov byte [ebp - 4], 7
push 0x1013a98
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.01015dca
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x4b8]
call fcn.01015b0a
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4ec]
call fcn.010151a6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4d8]
call fcn.010151a6
lea eax, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4b8]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x104f60a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [ebp - 0x4b4], eax
jne 0x104f6cf
and dword [ebp - 0x4b4], 0
jmp 0x104f6ab
test byte [ebp - 0x4b0], 0x10
jne 0x104f685
push esi
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x4e0]
push eax
call fcn.01015dca
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x484]
push ecx
push eax
lea eax, [ebp - 0x4e8]
push eax
call fcn.01015dca
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x4c8]
call fcn.01015b0a
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4e8]
call fcn.010151a6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4e0]
call fcn.010151a6
push dword [ebp - 0x4d4]
push dword [ebp - 0x4c8]
call dword [ebp - 0x4dc]
mov dword [ebp - 0x4cc], eax
lea eax, [ebp - 0x4b0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x104f6a4
cmp dword [ebp - 0x4cc], 0
jne 0x104f60a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x4c0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x104f6cf
cmp dword [ebp - 0x4cc], 0
jne 0x104f4e2
push dword [ebp - 0x4c0]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x4b4]
jmp 0x104f406