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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1bfc
call fcn.0041c4f4
mov eax, dword [0x4e70c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1bd4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.vsansi.dll_GetModuleFileNameW]
test eax, eax
jne 0x4a41b6
call fcn.004a40ba
jmp 0x4a4590
push 0x5c
lea eax, [ebp - 0x20c]
push eax
call fcn.00479860
and word [eax], 0
push 0x4a45d4
push 0x3e8
lea eax, [ebp - 0x197c]
push eax
call fcn.00468683
test eax, eax
jl 0x4a4590
push ebx
push esi
push edi
call fcn.004a4047
movzx ebx, ax
call dword [0x401398]
mov esi, eax
call dword [0x40139c]
mov edi, eax
movzx eax, bx
mov dword [ebp - 0x1bfc], eax
mov ebx, 0x3ff
and eax, ebx
push eax
call dword [0x4013a0]
mov dword [ebp - 0x1bf8], eax
mov eax, esi
shr eax, 0x10
and eax, 0xf
shl eax, 0x10
mov dword [ebp - 0x1bf4], esi
and esi, ebx
or eax, esi
mov edx, eax
mov dword [ebp - 0x1bec], eax
mov eax, edi
shr eax, 0x10
and eax, 0xf
mov ecx, 0x400
or edx, ecx
mov dword [ebp - 0x1be8], edi
shl eax, 0x10
and edi, ebx
or eax, edi
mov dword [ebp - 0x1bf0], edx
mov edx, eax
or edx, ecx
mov esi, 0x409
mov dword [ebp - 0x1be4], edx
mov dword [ebp - 0x1be0], eax
mov dword [ebp - 0x1bdc], esi
call dword [fcn.004013a4]
or dword [ebp - 0x1bd8], 0xffffffff
mov dword [ebp - 0x1bd0], eax
xor edi, edi
mov ebx, dword [ebp + edi*4 - 0x1bfc]
test ebx, ebx
je 0x4a431e
xor eax, eax
test edi, edi
jle 0x4a42b0
cmp dword [ebp + eax*4 - 0x1bfc], ebx
je 0x4a431e
inc eax
cmp eax, edi
jl 0x4a42a2
cmp ebx, esi
je 0x4a42dc
cmp dword [ebp - 0x1bd0], 0xfde9
je 0x4a42dc
push ebx
call fcn.004a40d7
cmp dword [ebp - 0x1bd0], eax
je 0x4a42dc
push ebx
call fcn.004a4111
cmp dword [ebp - 0x1bd0], eax
jne 0x4a431e
lea eax, [ebp - 0x197c]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x4a45c4
lea eax, [ebp - 0x11ac]
push 0x7d0
push eax
call fcn.0044a354
add esp, 0x18
test eax, eax
jl 0x4a431e
lea eax, [ebp - 0x11ac]
push eax
call dword [sym.imp.vsansi.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a448e
inc edi
cmp edi, 9
jb 0x4a428d
lea eax, [ebp - 0x197c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x4a3180
mov esi, 0x7d0
lea eax, [ebp - 0x11ac]
push esi
push eax
call fcn.0044a354
add esp, 0x14
test eax, eax
jl 0x4a436a
lea eax, [ebp - 0x11ac]
push eax
call dword [sym.imp.vsansi.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a449f
lea eax, [ebp - 0x20c]
push eax
push 0x4a45b8
lea eax, [ebp - 0x11ac]
push esi
push eax
call fcn.0044a354
add esp, 0x10
test eax, eax
jl 0x4a4451
lea eax, [ebp - 0x1bcc]
push eax
lea eax, [ebp - 0x11ac]
push eax
call dword [sym.imp.vsansi.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a4451
mov esi, dword [sym.imp.vsansi.dll_FindNextFileW]
lea eax, [ebp - 0x1bcc]
push eax
push edi
call esi
test eax, eax
je 0x4a444a
mov ebx, dword [sym.imp.vsansi.dll_lstrcmpW]
test byte [ebp - 0x1bcc], 0x10
je 0x4a443c
push 0x401fec
lea eax, [ebp - 0x1ba0]
push eax
call ebx
test eax, eax
je 0x4a443c
push 0x4a45b0
lea eax, [ebp - 0x1ba0]
push eax
call ebx
test eax, eax
je 0x4a443c
lea eax, [ebp - 0x197c]
push eax
lea eax, [ebp - 0x1ba0]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x4a45a0
lea eax, [ebp - 0x11ac]
push 0x7d0
push eax
call fcn.0044a354
add esp, 0x18
test eax, eax
jl 0x4a443c
lea eax, [ebp - 0x11ac]
push eax
call dword [sym.imp.vsansi.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a4498
lea eax, [ebp - 0x1bcc]
push eax
push edi
call esi
test eax, eax
jne 0x4a43cb
push edi
call dword [0x4013a8]
push 0x100
lea eax, [ebp - 0x1b7c]
push eax
xor edi, edi
push 0x7e9
push edi
mov dword [ebp - 0x1bd0], edi
mov dword [ebp - 0x1bd4], edi
mov dword [ebp - 0x1bd8], edi
call dword [sym.imp.vsansi.dll_LoadStringW]
test eax, eax
jne 0x4a44e6
call fcn.004a40ba
mov esi, eax
push edi
jmp 0x4a4585
mov eax, ebx
mov dword [ebp - 0x1bd8], eax
jmp 0x4a449f
push edi
call dword [0x4013a8]
push 2
push 0
lea eax, [ebp - 0x11ac]
push eax
call dword [sym.imp.vsansi.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x1bd4]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1bd8]
mov dword [0x4eee24], eax
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4a44d3
call fcn.004a40ba
jmp 0x4a458d
push ecx
push 0x4ee5c4
call dword [0x4013b0]
xor eax, eax
jmp 0x4a458d
lea eax, [ebp - 0x1b7c]
push eax
lea ecx, [ebp - 0x1bd0]
call fcn.0046b484
lea eax, [ebp - 0x197c]
push eax
lea ecx, [ebp - 0x1bd0]
call fcn.0046cca2
lea eax, [ebp - 0x1bd4]
push eax
call dword [0x401068]
mov esi, eax
cmp esi, edi
jl 0x4a455f
mov eax, dword [ebp - 0x1bd4]
push dword [ebp - 0x1bd0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, edi
jl 0x4a455f
mov eax, dword [ebp - 0x1bd4]
mov ecx, dword [eax]
lea edx, [ebp - 0x1bd8]
push edx
push 0x4a3e24
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x4a455f
push dword [ebp - 0x1bd8]
push edi
call dword [0x401064]
mov eax, dword [ebp - 0x1bd8]
cmp eax, edi
je 0x4a456f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1bd4]
cmp eax, edi
je 0x4a457f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x1bd0]
call dword [fcn.00401054]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401402
leave
ret 4