Function at 0x481d70
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 [0x525258]
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 - 0x59c], eax
mov dword [ebp - 0x598], ebx
je 0x482327
test ebx, ebx
je 0x482327
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x482327
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ebx
call edi
mov dword [ebp - 0x594], eax
test esi, esi
je 0x481df1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x481dd3
mov eax, dword [ebp - 0x594]
sub ecx, edx
sar ecx, 1
cmovne eax, esi
mov dword [ebp - 0x594], eax
push 0x2e
call fcn.0045652a
mov esi, eax
xor eax, eax
push 0x310
push eax
mov dword [ebp - 0x5a0], 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 - 0x58c]
push eax
mov dword [esi], 0x2014b50
mov dword [esi + 4], 0x141400
call fcn.00491120
push dword [ebp - 0x594]
lea eax, [ebp - 0x58c]
mov dword [ebp - 0x590], esi
push 0x104
push eax
call fcn.004c933e
add esp, 0x1c
xor eax, eax
mov dword [ebp - 0x5a4], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
call ebx
test eax, eax
je 0x4820d5
mov ecx, dword [ebp - 0x59c]
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.004828b0
push 0x5033f0
lea eax, [ebp - 0x58c]
mov dword [esi + 0x26], 0x10
push 0x104
push eax
call fcn.004cecba
mov ecx, dword [ebp - 0x59c]
lea eax, [ebp - 0x590]
add esp, 0xc
lea ecx, [ecx + 0x1c]
push eax
call fcn.00483dd0
mov eax, dword [ebp - 0x59c]
cmp dword [eax + 0x10], 0
je 0x482305
push dword [ebp - 0x598]
call ebx
test eax, eax
je 0x482305
mov eax, dword [ebp - 0x594]
test eax, eax
je 0x481f31
mov ecx, eax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x481f20
sub ecx, edx
sar ecx, 1
jne 0x481f3f
push dword [ebp - 0x598]
call edi
mov dword [ebp - 0x594], eax
push 0x208
mov dword [ebp - 0x5a4], 1
call fcn.004560da
mov ebx, eax
push 0x208
mov dword [ebp - 0x10], ebx
call fcn.004560da
push dword [ebp - 0x598]
mov edi, eax
push 0x104
push ebx
call fcn.004c933e
push 0x5033f4
push 0x104
push ebx
call fcn.004cecba
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 0x481fba
xor eax, eax
push edi
mov dword [ebp - 0x5a4], eax
call fcn.004560e3
push ebx
call fcn.004560e3
add esp, 8
jmp 0x4822db
mov esi, dword [ebp - 0x598]
mov ecx, 0x5026d4
lea eax, [ebp - 0x250]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x481ff6
test dx, dx
je 0x481ff2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x481ff6
add eax, 4
add ecx, 4
test dx, dx
jne 0x481fd0
xor eax, eax
jmp 0x481ffb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4820a0
mov ecx, 0x5026d8
lea eax, [ebp - 0x250]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x482036
test dx, dx
je 0x482032
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x482036
add eax, 4
add ecx, 4
test dx, dx
jne 0x482010
xor eax, eax
jmp 0x48203b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4820a0
lea eax, [ebp - 0x250]
push eax
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [ebp - 0x594]
push 0x104
push edi
call fcn.004c933e
push 0x5033f0
push 0x104
push edi
call fcn.004cecba
lea eax, [ebp - 0x250]
push eax
push 0x104
push edi
call fcn.004cecba
mov ecx, dword [ebp - 0x59c]
add esp, 0x24
push edi
push ebx
call fcn.00481d70
mov ebx, eax
mov dword [ebp - 0x5a4], ebx
test ebx, ebx
je 0x4820b8
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x481fc0
mov esi, dword [ebp - 0x5a0]
mov ebx, dword [ebp - 0x10]
push edi
call fcn.004560e3
push ebx
call fcn.004560e3
add esp, 8
jmp 0x4822db
xor eax, eax
mov dword [esi + 0x26], 0x20
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocStringLen
push dword [ebp - 0x598]
xor ebx, ebx
mov dword [ebp - 0x594], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x598], edi
cmp edi, 0xffffffff
je 0x482305
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x48213c
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0xe]
push eax
lea eax, [ebp - 0x14]
jmp 0x48216d
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]
lea eax, [esi + 0xc]
push eax
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 0x48218a
xor eax, eax
mov word [esi + 0xa], ax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
jmp 0x482260
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 0x4822d2
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x594], esi
test esi, esi
je 0x4822b7
mov esi, dword [ebp - 0x5a0]
mov esi, dword [esi + 0x18]
test esi, esi
je 0x4822a6
cmp esi, 0x200
jae 0x4821ed
mov esi, 0x400
jmp 0x4821ef
add esi, esi
mov ecx, dword [ebp - 0x59c]
push esi
lea ecx, [ecx + 0x34]
call fcn.004844e0
mov edi, eax
test edi, edi
je 0x4822a0
mov ecx, dword [ebp - 0x59c]
add ecx, 0x28
mov dword [ebp - 8], edi
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x482224
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x48222e
lea edx, [ebp - 8]
push edx
push eax
call fcn.00481530
mov eax, dword [ebp - 0x5a0]
add eax, 0x10
push eax
mov eax, dword [ebp - 0x594]
push esi
mov esi, dword [ebp - 0x5a0]
push edi
push dword [esi + 0x18]
push eax
call fcn.004895e0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4822a0
mov dword [esi + 0x14], eax
mov dword [ebp - 0x280], edi
mov eax, dword [ebp - 0x59c]
mov edx, dword [eax + 0x20]
cmp dword [eax + 0x24], edx
je 0x482286
mov ecx, 0xc5
lea esi, [ebp - 0x590]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
add dword [eax + 0x20], 0x314
jmp 0x482296
lea ecx, [ebp - 0x590]
push ecx
push edx
lea ecx, [eax + 0x1c]
call fcn.00481690
mov dword [ebp - 0x5a4], 1
mov edi, dword [ebp - 0x598]
mov eax, dword [ebp - 0x594]
test eax, eax
je 0x4822b7
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ebx, ebx
je 0x4822cc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov esi, dword [ebp - 0x5a0]
jmp 0x4822d8
mov esi, dword [ebp - 0x5a0]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
mov ebx, dword [ebp - 0x5a4]
test ebx, ebx
jne 0x482312
push 0x2e
push esi
call fcn.004560cc
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004564ea
mov esp, ebp
pop ebp
ret 8
push 0x2e
push esi
xor ebx, ebx
call fcn.004560cc
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004564ea
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004564ea
mov esp, ebp
pop ebp
ret 8