Function at 0x102e831
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_Ordinal_52]
xor esi, esi
push esi
push esi
push 3
push esi
push esi
mov ebx, 0x80000000
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x102e8a6
cmp dword [ebp + 0x18], esi
jne 0x102ea9c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push esi
push 3
push esi
lea eax, [ebp - 0x240]
push esi
mov dword [ebp + 8], eax
push ebx
lea eax, [ebp - 0x240]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x102ea9c
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ebx, [eax + 0x10]
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
cmp edi, esi
mov dword [ebp - 8], edi
jne 0x102e8d4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x102ea9c
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [ebx + ebx]
push edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x10], ebx
jne 0x102e910
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x102ea9c
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push esi
rep stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
push dword [ebp - 8]
push ebx
call fcn.0102cbcd
push dword [ebp + 8]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x240]
push eax
call ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x240]
push eax
call edi
lea eax, [ebp + eax*2 - 0x240]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0102e536
test eax, eax
jl 0x102ea8c
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x102e9f9
jmp 0x102e9e6
push dword [ebp + 8]
push dword [ebp - 0x14]
call ebx
cmp dword [ebp + 0x18], esi
lea eax, [ebp - 0x240]
je 0x102e9d0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0102ddcd
jmp 0x102e9d9
push dword [ebp + 0xc]
push eax
call fcn.0102dfd8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*2 + 2]
mov dword [ebp + 8], eax
push eax
call edi
cmp eax, esi
mov dword [ebp - 4], eax
ja 0x102e9ac
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0x18], esi
jne 0x102ea8c
cmp dword [ebp + 0x10], esi
je 0x102ea8c
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
je 0x102ea8c
push ebx
push esi
mov edi, 0x1006110
push edi
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_Ordinal_85]
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [sym.imp.SHLWAPI.dll_Ordinal_298]
mov dword [ebp + 0xc], eax
call edi
cmp dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
jbe 0x102ea69
push dword [ebp + 8]
lea eax, [ebp - 0x38]
push 0x1002fc8
push 0x10
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x10]
call edi
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jb 0x102ea3c
push ebx
push 0x10
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x10]
call fcn.0102d221
cmp word [ebp - 0x38], si
jne 0x102ea8c
cmp word [ebp - 0x36], si
jne 0x102ea8c
push ebx
push esi
push esi
push dword [ebp + 0x10]
call edi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 0x14