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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002de80
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1003e030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x1c]
push ebx
call fcn.10014c70
mov edi, dword [ebp + 0x14]
add esp, 4
push eax
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
call fcn.10014c70
mov esi, dword [ebp + 0xc]
add esp, 4
push eax
push esi
call fcn.10014c70
mov ecx, dword [ebp + 8]
add esp, 4
push eax
push ecx
call fcn.10014c70
add esp, 4
push eax
push str.gsps:__s____s____s___x__u___s_
push 0xa
push 0x10040558
call fcn.10015020
add esp, 0x24
test edi, edi
je 0x100140b9
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x100140b9
test esi, esi
je 0x100140a5
cmp word [esi], 0
je 0x100140a5
test ebx, ebx
je 0x100140a5
cmp word [ebx], 0
je 0x100140a5
push 1
lea ecx, [ebp - 0x44]
call fcn.100146c0
push 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.100146c0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
test eax, eax
je 0x10013e48
lea ecx, [ebp - 0x1c]
push ecx
push 0xffffffffffffffff
push eax
push 0
lea ecx, [ebp - 0x44]
call fcn.100147e0
test eax, eax
je 0x10013e5d
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push esi
push 0
lea ecx, [ebp - 0x30]
call fcn.100147e0
test eax, eax
jne 0x10013e72
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.10014520
add esp, 8
mov ebx, eax
jmp 0x10014066
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x10013ea3
mov ebx, 0x220f1f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10014020
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x10013ec1
mov ebx, 0x220f1f0b
mov esi, 0x103
jmp 0x10014013
cmp esi, 0xffffffff
jne 0x10013ed8
mov ebx, 0x220f1f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10014013
lea ecx, [ebp + 0x1c]
lea eax, [esi + 1]
push ecx
push eax
call fcn.10014120
push 0
push dword [ebp + 0x1c]
mov dword [ebp + 0x14], eax
call fcn.10014120
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x10013fef
test eax, eax
je 0x10013fef
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10013f32
mov ebx, 0x220f1f09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10013ff9
cmp dword [ebp - 0x10], esi
je 0x10013f43
mov ebx, 0x220f1f09
xor esi, esi
jmp 0x10013ff9
mov eax, dword [ebp + 0xc]
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push eax
call fcn.10013d40
mov eax, dword [ebp + 0xc]
mov edx, eax
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x1c], ebx
mov byte [eax + esi], bl
test ecx, ecx
je 0x10013f7d
cmp word [ecx], bx
je 0x10013f7d
push dword [ebp - 0x40]
lea ecx, [ebp + 0x1c]
push ecx
push eax
call fcn.100142c0
add esp, 0xc
mov edx, eax
test edx, edx
jne 0x10013f8d
mov ebx, 0x220f1f0b
mov esi, 0x103
jmp 0x10013ff9
push dword [ebp - 0x2c]
lea eax, [ebp + 0x1c]
push eax
push edx
call fcn.100141b0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x10013fb8
xor ebx, ebx
mov esi, 0x103
cmp dword [ebp + 0x1c], ebx
setne bl
add ebx, 0x220f1f0c
jmp 0x10013ff9
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push ecx
push 0
push dword [ebp + 0x18]
push edi
call fcn.10014970
add esp, 0x18
test eax, eax
jne 0x10013fea
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
cmp esi, 0x7a
sete bl
lea ebx, [ebx*8 + 0x220f1f06]
jmp 0x10013ff9
mov esi, dword [ebp + 0x18]
jmp 0x10013ff9
mov ebx, 0x220f1e01
mov esi, 0xe
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10014006
push eax
call fcn.100140f0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10014013
push eax
call fcn.100140f0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10014049
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1001402c
mov word [edi], ax
jmp 0x10014036
push eax
push dword [ebp + 0x18]
push edi
call fcn.100017b0
push esi
push ebx
call fcn.100144c0
push edx
push eax
call fcn.10014520
add esp, 0x10
test ebx, ebx
mov ebx, 0
sete bl
push ebx
push str.gsps_d
push 0xa
push 0x10040558
call fcn.10014f90
add esp, 0x10
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], vtable.CAhnI2s_Memory.0
call fcn.10014770
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 7
mov dword [ebp - 0x44], vtable.CAhnI2s_Memory.0
call fcn.10014770
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x100140b1
mov word [edi], ax
jmp 0x100140b9
push eax
push ecx
push edi
call fcn.100017b0
push 0x57
push 0x220f1f01
call fcn.100144c0
push edx
push eax
call fcn.10014520
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18