Function at 0x498c90
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 [0x655494]
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 - 0x584], eax
mov dword [ebp - 0x580], ebx
je 0x499272
test ebx, ebx
je 0x499272
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x499272
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ebx
call edi
mov dword [ebp - 0x57c], eax
test esi, esi
je 0x498d11
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498cf3
mov eax, dword [ebp - 0x57c]
sub ecx, edx
sar ecx, 1
cmovne eax, esi
mov dword [ebp - 0x57c], eax
push 0x65f204
push 0x2e
call fcn.0046a85b
mov esi, eax
xor eax, eax
push 0x310
push eax
mov dword [ebp - 0x588], esi
mov dword [esi + 0xa], 0
mov dword [esi + 0xe], 0
mov dword [esi + 0x12], 0
mov dword [esi + 0x16], 0
mov dword [esi + 0x1a], 0
mov dword [esi + 0x26], 0
mov dword [esi + 0x2a], 0
mov word [esi + 8], ax
mov dword [esi + 0x1e], eax
mov dword [esi + 0x22], eax
lea eax, [ebp - 0x574]
push eax
mov dword [esi], 0x2014b50
mov dword [esi + 4], 0x141400
call fcn.005245e0
push dword [ebp - 0x57c]
lea eax, [ebp - 0x574]
mov dword [ebp - 0x578], esi
push 0x104
push eax
call fcn.0054000e
add esp, 0x20
xor eax, eax
mov dword [ebp - 0x58c], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
call ebx
test eax, eax
je 0x49900e
mov ecx, dword [ebp - 0x584]
xor eax, eax
mov word [esi + 0xa], ax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0xe]
push eax
call fcn.00499810
push 0x5f3ddc
lea eax, [ebp - 0x574]
mov dword [esi + 0x26], 0x10
push 0x104
push eax
call fcn.0053ff39
mov ecx, dword [ebp - 0x584]
lea eax, [ebp - 0x578]
add esp, 0xc
lea ecx, [ecx + 0x1c]
push eax
call fcn.0049acb0
mov eax, dword [ebp - 0x584]
cmp dword [eax + 0x10], 0
je 0x499250
push dword [ebp - 0x580]
call ebx
test eax, eax
je 0x499250
mov eax, dword [ebp - 0x57c]
test eax, eax
je 0x498e51
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498e40
sub ecx, edx
sar ecx, 1
jne 0x498e5f
push dword [ebp - 0x580]
call edi
mov dword [ebp - 0x57c], eax
push 0x65f204
push 0x208
mov dword [ebp - 0x58c], 1
call fcn.004698ce
mov ebx, eax
push 0x65f204
push 0x208
mov dword [ebp - 0x598], ebx
call fcn.004698ce
push dword [ebp - 0x580]
mov edi, eax
push 0x104
push ebx
call fcn.0054000e
push 0x600d48
push 0x104
push ebx
call fcn.0053ff39
add esp, 0x28
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x590], eax
cmp eax, 0xffffffff
jne 0x498eea
xor eax, eax
push edi
mov dword [ebp - 0x58c], eax
call fcn.004695ba
push ebx
call fcn.004695ba
add esp, 8
jmp 0x499226
mov esi, dword [ebp - 0x580]
mov ecx, 0x5ff5c8
lea eax, [ebp - 0x238]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x498f26
test dx, dx
je 0x498f22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x498f26
add eax, 4
add ecx, 4
test dx, dx
jne 0x498f00
xor eax, eax
jmp 0x498f2b
sbb eax, eax
or eax, 1
test eax, eax
je 0x498fd3
mov ecx, 0x5f5e50
lea eax, [ebp - 0x238]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x498f66
test dx, dx
je 0x498f62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x498f66
add eax, 4
add ecx, 4
test dx, dx
jne 0x498f40
xor eax, eax
jmp 0x498f6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x498fd3
lea eax, [ebp - 0x238]
push eax
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [ebp - 0x57c]
push 0x104
push edi
call fcn.0054000e
push 0x5f3ddc
push 0x104
push edi
call fcn.0053ff39
lea eax, [ebp - 0x238]
push eax
push 0x104
push edi
call fcn.0053ff39
mov ecx, dword [ebp - 0x584]
add esp, 0x24
push edi
push ebx
call fcn.00498c90
mov ebx, eax
mov dword [ebp - 0x58c], ebx
test ebx, ebx
je 0x498fee
mov ebx, dword [ebp - 0x598]
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x590]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x498ef0
mov esi, dword [ebp - 0x588]
mov ebx, dword [ebp - 0x598]
push edi
call fcn.004695ba
push ebx
call fcn.004695ba
add esp, 8
jmp 0x499226
xor eax, eax
mov dword [esi + 0x26], 0x20
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push dword [ebp - 0x580]
xor ebx, ebx
mov dword [ebp - 0x57c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x580], edi
cmp edi, 0xffffffff
je 0x499250
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x59c]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x49907b
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0xe]
push eax
lea eax, [ebp - 0x59c]
jmp 0x4990b8
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x594]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x5a4]
push eax
lea eax, [ebp - 0x594]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0xe]
push eax
lea eax, [ebp - 0x5a4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
cmp dword [esi + 0x18], ebx
jne 0x4990d5
xor eax, eax
mov word [esi + 0xa], ax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
jmp 0x4991ab
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 0x49921d
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x57c], esi
test esi, esi
je 0x499202
mov esi, dword [ebp - 0x588]
mov esi, dword [esi + 0x18]
test esi, esi
je 0x4991f1
cmp esi, 0x200
jae 0x499138
mov esi, 0x400
jmp 0x49913a
add esi, esi
push esi
call fcn.004bcb20
mov edi, eax
add esp, 4
test edi, edi
je 0x4991eb
mov ecx, dword [ebp - 0x584]
add ecx, 0x28
mov dword [ebp - 0x590], edi
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x49916c
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x499179
lea edx, [ebp - 0x590]
push edx
push eax
call fcn.0040a8f0
mov eax, dword [ebp - 0x588]
add eax, 0x10
push eax
mov eax, dword [ebp - 0x57c]
push esi
mov esi, dword [ebp - 0x588]
push edi
push dword [esi + 0x18]
push eax
call fcn.004bb930
add esp, 0x14
cmp eax, 0xffffffff
je 0x4991eb
mov dword [esi + 0x14], eax
mov dword [ebp - 0x268], edi
mov eax, dword [ebp - 0x584]
mov edx, dword [eax + 0x20]
cmp dword [eax + 0x24], edx
je 0x4991d1
mov ecx, 0xc5
lea esi, [ebp - 0x578]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
add dword [eax + 0x20], 0x314
jmp 0x4991e1
lea ecx, [ebp - 0x578]
push ecx
push edx
lea ecx, [eax + 0x1c]
call fcn.00498640
mov dword [ebp - 0x58c], 1
mov edi, dword [ebp - 0x580]
mov eax, dword [ebp - 0x57c]
test eax, eax
je 0x499202
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ebx, ebx
je 0x499217
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov esi, dword [ebp - 0x588]
jmp 0x499223
mov esi, dword [ebp - 0x588]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
mov ebx, dword [ebp - 0x58c]
test ebx, ebx
jne 0x49925d
push 0x2e
push esi
call fcn.00468f39
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468f28
mov esp, ebp
pop ebp
ret 8
push 0x2e
push esi
xor ebx, ebx
call fcn.00468f39
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468f28
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00468f28
mov esp, ebp
pop ebp
ret 8