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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd74
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x529d5c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x274]
lea ecx, [ebp - 4]
mov edx, 1
call fcn.005280c0
lea eax, [ebp - 0x26c]
push eax
mov eax, dword [ebp - 4]
call fcn.00409e74
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x529a6a
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x529b4a
call fcn.00429c64
jmp 0x529b4a
xor eax, eax
push ebp
push 0x529b43
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
lea edx, [ebp - 0x240]
mov ecx, 0x104
call fcn.00409f30
test byte [ebp - 0x26c], 0x10
jne 0x529b05
movzx eax, byte [0x529d6c]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x274]
lea ecx, [ebp - 0x278]
mov edx, 1
call fcn.005280c0
mov eax, dword [ebp - 0x278]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x274]
lea ecx, [ebp - 0x27c]
mov edx, 1
call fcn.005280c0
mov edx, dword [ebp - 0x27c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
pop ecx
call fcn.005297e8
lea eax, [ebp - 0x26c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x529a78
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x12
je 0x529b2c
call fcn.00429c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529b4a
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindClose_1
ret
mov eax, dword [ebp + 8]
test byte [eax + 8], 1
je 0x529d31
mov dl, 1
mov eax, dword [0x48b4fc]
call fcn.004a9360
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x529d2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x274], eax
mov eax, 0x529d7c
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x274]
lea ecx, [ebp - 4]
mov edx, 1
call fcn.005280c0
lea eax, [ebp - 0x26c]
push eax
mov eax, dword [ebp - 4]
call fcn.00409e74
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x529bd1
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x529d14
call fcn.00429c64
jmp 0x529d14
xor eax, eax
push ebp
push 0x529c5e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
lea edx, [ebp - 0x240]
mov ecx, 0x104
call fcn.00409f30
test byte [ebp - 0x26c], 0x10
je 0x529c24
mov eax, dword [ebp - 8]
mov edx, 0x529d8c
call fcn.0040a278
je 0x529c24
mov eax, dword [ebp - 8]
mov edx, 0x529d9c
call fcn.0040a278
je 0x529c24
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x26c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x529bdf
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x12
je 0x529c47
call fcn.00429c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529c65
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529d31
mov eax, dword [ebp - 0x1c]
call fcn.004074b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529d63
lea eax, [ebp - 0x28c]
mov edx, 6
call fcn.0040921c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040921c
ret