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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov edx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 8], edi
call fcn.0101739e
lea eax, [ebp - 0x21c]
push eax
push 0x1002aa8
push 7
call fcn.01017562
add esp, 0xc
push edi
push edi
push 3
push edi
xor esi, esi
inc esi
push esi
push 0x80000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp + 0xc]
call fcn.01019f50
cmp dword [ebp + 0xc], edi
jne 0x100e30a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x41c]
call fcn.0100e252
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x1002a7c
call fcn.01011f22
add esp, 0xc
lea ecx, [ebp + 0xc]
call fcn.01019f70
jmp 0x100e572
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100e348
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x41c]
call fcn.0100e252
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x1002a40
call fcn.01011f22
add esp, 0xc
jmp 0x100e3cf
mov dword [ebp + 8], esi
mov esi, ebx
mov dword [ebp - 0xc], edi
cmp ebx, 2
jb 0x100e3dc
push edi
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
test al, al
je 0x100e3a6
push 2
pop edi
cmp dword [ebp - 4], edi
jne 0x100e3a6
mov eax, 0xfeff
cmp word [ebp - 0xc], ax
jne 0x100e3dc
push 0x1002a10
push 6
mov dword [ebp - 0x10], 0x4b0
call fcn.01017562
pop ecx
pop ecx
mov dword [ebp + 8], edi
lea esi, [ebx - 2]
jmp 0x100e3f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x41c]
call fcn.0100e252
push eax
lea eax, [ebp - 0x21c]
push eax
push 2
push 0x10029c8
call fcn.01011f22
add esp, 0x10
lea ecx, [ebp + 0xc]
call fcn.01019f70
jmp 0x100e571
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push 0x1002970
push 6
mov dword [ebp - 0x10], eax
call fcn.01017562
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.01011250
mov edi, eax
pop ecx
test edi, edi
jne 0x100e414
lea ecx, [ebp + 0xc]
call fcn.01019f70
jmp 0x100e566
xor eax, eax
mov dword [ebp - 4], esi
cmp ebx, 2
jb 0x100e434
cmp dword [ebp + 8], 1
jne 0x100e434
mov ax, word [ebp - 0xc]
push 2
lea ecx, [esi - 2]
mov word [edi], ax
pop eax
mov dword [ebp - 4], ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 4]
add eax, edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
test al, al
je 0x100e521
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jne 0x100e521
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x1002930
push 5
call fcn.01017562
push dword [ebp + 8]
lea eax, [esi + edi]
push 0
push eax
call fcn.01018ae0
xor edx, edx
mov eax, esi
div dword [ebp + 8]
add esp, 0x1c
cmp dword [ebp + 8], 1
mov ebx, eax
jne 0x100e50a
xor ecx, ecx
push 2
lea esi, [ebx + 1]
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01011250
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x100e54b
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100e4f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x41c]
call fcn.0100e252
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x10028e0
jmp 0x100e543
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x10028a0
push 7
call fcn.01017562
add esp, 0x10
jmp 0x100e50f
mov dword [ebp - 8], edi
xor edi, edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100e407
mov dword [eax], ebx
jmp 0x100e407
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x41c]
call fcn.0100e252
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 4]
push 0x10029c8
call fcn.01011f22
add esp, 0x10
lea ecx, [ebp + 0xc]
call fcn.01019f70
cmp dword [ebp - 8], 0
je 0x100e566
push dword [ebp - 8]
call fcn.01011260
and dword [ebp - 8], 0
pop ecx
test edi, edi
je 0x100e571
push edi
call fcn.01011260
pop ecx
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0xc