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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587a5b
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x49c], ecx
mov eax, dword [0x597ad0]
mov dword [ebp - 0x21c], eax
push 0x204
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.005533a0
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
call fcn.004011a0
add esp, 4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x474]
call fcn.0041d9b0
mov dword [ebp - 4], 0
push 0x597ad4
lea ecx, [ebp - 0x488]
call fcn.0041da30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x488]
push ecx
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x478]
push eax
call fcn.0041df30
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x488]
call fcn.0041dab0
push 0x597ae4
lea ecx, [ebp - 0x474]
call fcn.0041db50
mov dword [ebp - 0x47c], 4
lea ecx, [ebp - 0x46c]
push ecx
lea ecx, [ebp - 0x474]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x470], 0xffffffff
je 0x4a2b1b
lea edx, [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4a2b1b
lea ecx, [ebp - 0x440]
push ecx
lea ecx, [ebp - 0x480]
call fcn.0041d9b0
mov byte [ebp - 4], 4
push 0x597af4
lea ecx, [ebp - 0x480]
call fcn.0041dbd0
test eax, eax
je 0x4a2b07
push 0x597af8
lea ecx, [ebp - 0x480]
call fcn.0041dbd0
test eax, eax
je 0x4a2b07
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x490]
push ecx
call fcn.0041dfe0
add esp, 0xc
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x4a0]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
mov dword [ebp - 0x48c], eax
lea ecx, [ebp - 0x490]
call fcn.0041dab0
cmp dword [ebp - 0x48c], 0
je 0x4a2b07
push 0x597b00
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x494]
push ecx
call fcn.0041dfe0
add esp, 0xc
mov dword [ebp - 0x4a4], eax
mov edx, dword [ebp - 0x4a4]
mov dword [ebp - 0x4a8], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x484]
push ecx
call fcn.0041dfe0
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x494]
call fcn.0041dab0
lea ecx, [ebp - 0x484]
call fcn.0041e1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a2af8
lea edx, [ebp - 0x440]
push edx
lea ecx, [ebp - 0x498]
call fcn.0041d9b0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x498]
push eax
mov ecx, dword [ebp - 0x49c]
add ecx, 0x1d00
call fcn.0041eaa0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x498]
call fcn.0041dab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x484]
call fcn.0041dab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x480]
call fcn.0041dab0
jmp 0x4a2990
mov ecx, dword [ebp - 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x478]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x474]
call fcn.0041dab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret