Function at 0x4e1480
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a4
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
cmp dword [eax + 0x10], 0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x5a0], eax
mov dword [ebp - 0x594], ebx
je 0x4e1a41
test ebx, ebx
je 0x4e1a41
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e1a41
push edi
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
call ebx
mov dword [ebp - 0x598], eax
mov edi, eax
test esi, esi
je 0x4e14fd
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e14e5
sub ecx, edx
sar ecx, 1
cmovne edi, esi
mov dword [ebp - 0x598], edi
push 0x2e
call fcn.004d9f7d
mov edi, eax
mov dword [ebp - 0x59c], eax
add esp, 4
test edi, edi
je 0x4e1522
push 0x2e
push 0
push edi
call fcn.004f39e0
add esp, 0xc
jmp 0x4e152a
xor edi, edi
mov dword [ebp - 0x59c], edi
push 0x2e
push 0
push edi
call fcn.004f39e0
xor eax, eax
mov dword [edi], 0x2014b50
push 0x314
push eax
mov word [edi + 8], ax
mov dword [edi + 0x1e], eax
mov dword [edi + 0x22], eax
lea eax, [ebp - 0x590]
push eax
mov dword [edi + 4], 0x141400
call fcn.004f39e0
push dword [ebp - 0x598]
lea eax, [ebp - 0x58c]
mov dword [ebp - 0x590], edi
push 0x104
push eax
call fcn.00521a1c
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
add esp, 0x24
xor eax, eax
mov dword [ebp - 0x5a4], eax
push dword [ebp - 0x594]
call esi
test eax, eax
je 0x4e1805
mov ecx, dword [ebp - 0x5a0]
xor eax, eax
mov word [edi + 0xa], ax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 0xe]
push eax
call fcn.004e1ff0
push 0x5856c8
lea eax, [ebp - 0x58c]
mov dword [edi + 0x26], 0x10
push 0x104
push eax
call fcn.005252b0
mov eax, dword [ebp - 0x5a0]
add esp, 0xc
mov edx, dword [eax + 0x20]
cmp dword [eax + 0x24], edx
je 0x4e160b
mov ecx, 0xc5
lea esi, [ebp - 0x590]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
add dword [eax + 0x20], 0x314
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
jmp 0x4e161b
lea ecx, [ebp - 0x590]
push ecx
push edx
lea ecx, [eax + 0x1c]
call fcn.004e0da0
mov eax, dword [ebp - 0x5a0]
cmp dword [eax + 0x10], 0
je 0x4e1a1a
mov edi, dword [ebp - 0x594]
push edi
call esi
test eax, eax
je 0x4e1a1a
mov eax, dword [ebp - 0x598]
test eax, eax
je 0x4e1661
mov ecx, eax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e1650
sub ecx, edx
sar ecx, 1
jne 0x4e166a
push edi
call ebx
mov dword [ebp - 0x598], eax
push 0x208
mov dword [ebp - 0x5a4], 1
call fcn.004da519
mov ebx, eax
push 0x208
mov dword [ebp - 0x594], ebx
call fcn.004da519
push edi
push 0x104
push ebx
mov esi, eax
call fcn.00521a1c
push 0x5856cc
push 0x104
push ebx
call fcn.005252b0
add esp, 0x20
lea eax, [ebp - 0x27c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4e16f0
xor eax, eax
push esi
mov dword [ebp - 0x5a4], eax
call fcn.004da522
push ebx
call fcn.004da522
add esp, 8
jmp 0x4e1a0e
mov ecx, 0x5856d4
lea eax, [ebp - 0x250]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e1726
test dx, dx
je 0x4e1722
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e1726
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e1700
xor eax, eax
jmp 0x4e172b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e17d3
mov ecx, 0x5856d8
lea eax, [ebp - 0x250]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e1766
test dx, dx
je 0x4e1762
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e1766
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e1740
xor eax, eax
jmp 0x4e176b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e17d3
lea eax, [ebp - 0x250]
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [ebp - 0x598]
push 0x104
push esi
call fcn.00521a1c
push 0x5856c8
push 0x104
push esi
call fcn.005252b0
lea eax, [ebp - 0x250]
push eax
push 0x104
push esi
call fcn.005252b0
mov ecx, dword [ebp - 0x5a0]
add esp, 0x24
push esi
push ebx
call fcn.004e1480
mov ebx, eax
mov dword [ebp - 0x5a4], ebx
test ebx, ebx
je 0x4e17eb
mov ebx, dword [ebp - 0x594]
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4e16f0
mov ebx, dword [ebp - 0x594]
push esi
call fcn.004da522
push ebx
call fcn.004da522
add esp, 8
jmp 0x4e1a0e
xor eax, eax
mov dword [edi + 0x26], 0x20
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push dword [ebp - 0x594]
xor ebx, ebx
mov dword [ebp - 0x598], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x594], edi
cmp edi, 0xffffffff
je 0x4e1a1a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x59c]
mov dword [ecx + 0x18], eax
lea esi, [ecx + 0xc]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4e1878
push esi
mov esi, dword [ebp - 0x59c]
lea eax, [esi + 0xe]
push eax
lea eax, [ebp - 0x14]
jmp 0x4e18ac
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
mov esi, dword [ebp - 0x59c]
lea eax, [esi + 0xe]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
cmp dword [esi + 0x18], ebx
jne 0x4e18c9
xor eax, eax
mov word [esi + 0xa], ax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
jmp 0x4e199f
push 0
push 0
push 0
push 2
push 0
mov eax, 8
push edi
mov word [esi + 0xa], ax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x4e1a05
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x598], esi
test esi, esi
je 0x4e19f6
mov esi, dword [ebp - 0x59c]
mov esi, dword [esi + 0x18]
test esi, esi
je 0x4e19e5
cmp esi, 0x200
jae 0x4e192c
mov esi, 0x400
jmp 0x4e192e
add esi, esi
mov ecx, dword [ebp - 0x5a0]
push esi
lea ecx, [ecx + 0x34]
call fcn.004e3ab0
mov edi, eax
test edi, edi
je 0x4e19df
mov ecx, dword [ebp - 0x5a0]
add ecx, 0x28
mov dword [ebp - 8], edi
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x4e1963
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x4e196d
lea edx, [ebp - 8]
push edx
push eax
call fcn.00458920
mov eax, dword [ebp - 0x59c]
add eax, 0x10
push eax
mov eax, dword [ebp - 0x598]
push esi
mov esi, dword [ebp - 0x59c]
push edi
push dword [esi + 0x18]
push eax
call fcn.004e8e90
add esp, 0x14
cmp eax, 0xffffffff
je 0x4e19df
mov dword [esi + 0x14], eax
mov dword [ebp - 0x280], edi
mov eax, dword [ebp - 0x5a0]
mov edx, dword [eax + 0x20]
cmp dword [eax + 0x24], edx
je 0x4e19c5
mov ecx, 0xc5
lea esi, [ebp - 0x590]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
add dword [eax + 0x20], 0x314
jmp 0x4e19d5
lea ecx, [ebp - 0x590]
push ecx
push edx
lea ecx, [eax + 0x1c]
call fcn.004e0da0
mov dword [ebp - 0x5a4], 1
mov edi, dword [ebp - 0x594]
mov eax, dword [ebp - 0x598]
test eax, eax
je 0x4e19f6
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4e1a0b
push ebx
call esi
jmp 0x4e1a0b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
mov ebx, dword [ebp - 0x5a4]
test ebx, ebx
jne 0x4e1a2c
jmp 0x4e1a1c
xor ebx, ebx
push 0x2e
push dword [ebp - 0x59c]
call fcn.004d9fad
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004da3bd
mov esp, ebp
pop ebp
ret 8