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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002df20
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.10014d00
mov edi, dword [ebp + 0x14]
add esp, 4
push eax
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
call fcn.10014d00
mov esi, dword [ebp + 0xc]
add esp, 4
push eax
push esi
call fcn.10014d00
mov ecx, dword [ebp + 8]
add esp, 4
push eax
push ecx
call fcn.10014d00
add esp, 4
push eax
push str.gsps:__s____s____s___x__u___s_
push 0xa
push 0x10040588
call fcn.100150b0
add esp, 0x24
test edi, edi
je 0x10014149
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10014149
test esi, esi
je 0x10014135
cmp word [esi], 0
je 0x10014135
test ebx, ebx
je 0x10014135
cmp word [ebx], 0
je 0x10014135
push 1
lea ecx, [ebp - 0x44]
call fcn.10014750
push 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.10014750
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
test eax, eax
je 0x10013ed8
lea ecx, [ebp - 0x1c]
push ecx
push 0xffffffffffffffff
push eax
push 0
lea ecx, [ebp - 0x44]
call fcn.10014870
test eax, eax
je 0x10013eed
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push esi
push 0
lea ecx, [ebp - 0x30]
call fcn.10014870
test eax, eax
jne 0x10013f02
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.100145b0
add esp, 8
mov ebx, eax
jmp 0x100140f6
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 0x10013f33
mov ebx, 0x220f1f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100140b0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x10013f51
mov ebx, 0x220f1f0b
mov esi, 0x103
jmp 0x100140a3
cmp esi, 0xffffffff
jne 0x10013f68
mov ebx, 0x220f1f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100140a3
lea ecx, [ebp + 0x1c]
lea eax, [esi + 1]
push ecx
push eax
call fcn.100141b0
push 0
push dword [ebp + 0x1c]
mov dword [ebp + 0x14], eax
call fcn.100141b0
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x1001407f
test eax, eax
je 0x1001407f
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 0x10013fc2
mov ebx, 0x220f1f09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10014089
cmp dword [ebp - 0x10], esi
je 0x10013fd3
mov ebx, 0x220f1f09
xor esi, esi
jmp 0x10014089
mov eax, dword [ebp + 0xc]
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push eax
call fcn.10013dd0
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 0x1001400d
cmp word [ecx], bx
je 0x1001400d
push dword [ebp - 0x40]
lea ecx, [ebp + 0x1c]
push ecx
push eax
call fcn.10014350
add esp, 0xc
mov edx, eax
test edx, edx
jne 0x1001401d
mov ebx, 0x220f1f0b
mov esi, 0x103
jmp 0x10014089
push dword [ebp - 0x2c]
lea eax, [ebp + 0x1c]
push eax
push edx
call fcn.10014240
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x10014048
xor ebx, ebx
mov esi, 0x103
cmp dword [ebp + 0x1c], ebx
setne bl
add ebx, 0x220f1f0c
jmp 0x10014089
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.10014a00
add esp, 0x18
test eax, eax
jne 0x1001407a
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
cmp esi, 0x7a
sete bl
lea ebx, [ebx*8 + 0x220f1f06]
jmp 0x10014089
mov esi, dword [ebp + 0x18]
jmp 0x10014089
mov ebx, 0x220f1e01
mov esi, 0xe
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10014096
push eax
call fcn.10014180
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100140a3
push eax
call fcn.10014180
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100140d9
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x100140bc
mov word [edi], ax
jmp 0x100140c6
push eax
push dword [ebp + 0x18]
push edi
call fcn.100017b0
push esi
push ebx
call fcn.10014550
push edx
push eax
call fcn.100145b0
add esp, 0x10
test ebx, ebx
mov ebx, 0
sete bl
push ebx
push str.gsps_d
push 0xa
push 0x10040588
call fcn.10015020
add esp, 0x10
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], vtable.CAhnI2s_Memory.0
call fcn.10014800
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 7
mov dword [ebp - 0x44], vtable.CAhnI2s_Memory.0
call fcn.10014800
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 0x10014141
mov word [edi], ax
jmp 0x10014149
push eax
push ecx
push edi
call fcn.100017b0
push 0x57
push 0x220f1f01
call fcn.10014550
push edx
push eax
call fcn.100145b0
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