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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
mov eax, dword [0x111024c]
mov edi, 0x111024c
cmp eax, edi
je 0x10b1370
test byte [eax + 0x1c], 4
je 0x10b1370
cmp byte [eax + 0x19], 4
jb 0x10b1370
push 0x100b080
push 0xcc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp + 0x14]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x10b139d
xor eax, eax
jmp 0x10b178f
push esi
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10b13f8
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10b13e6
test byte [eax + 0x1c], 4
je 0x10b13e6
cmp byte [eax + 0x19], 3
jb 0x10b13e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
mov eax, dword [0x111024c]
push 0x100b080
push 0xcd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10b178e
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x1c]
mov esi, 0x200
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
push esi
push ebx
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 0x1c], eax
cmp eax, ebx
jne 0x10b142a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
push 3
pop esi
jmp 0x10b13e8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x10b1741
cmp dword [ebp - 4], esi
jne 0x10b1741
mov ecx, dword [ebp - 0xc]
xor esi, esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x1c]
call fcn.010b04aa
test al, al
jne 0x10b149d
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10b148f
test byte [eax + 0x1c], 4
je 0x10b148f
cmp byte [eax + 0x19], 3
jb 0x10b148f
push 0x100b080
push 0xcf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10b13e8
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
jg 0x10b14ee
mov ecx, dword [ebp + 0xc]
jl 0x10b14af
cmp dword [ebp - 0x14], ecx
jae 0x10b14ee
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10b148f
test byte [eax + 0x1c], 4
je 0x10b148f
cmp byte [eax + 0x19], 3
jb 0x10b148f
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
push dword [ebp - 0x14]
sar ecx, 0x1f
push edx
push 0x100b080
push 0xd0
push dword [eax + 0x14]
mov ecx, edx
push dword [eax + 0x10]
sar ecx, 0x1f
call fcn.01019e4d
jmp 0x10b148f
mov esi, 0x400
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x10b151c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
push dword [ebp + 0x1c]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10b1425
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x10b16f3
cmp dword [ebp - 4], esi
jne 0x10b16f3
mov esi, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov ecx, esi
call fcn.010ac455
test al, al
jne 0x10b1586
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10b172c
test byte [eax + 0x1c], 4
je 0x10b172c
cmp byte [eax + 0x19], 3
jb 0x10b172c
push 0x100b080
push 0xd2
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
jmp 0x10b172c
mov esi, dword [esi + 0x8c]
shl esi, 2
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10b15bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x20]
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ecx], eax
call esi
push dword [ebp + 0x1c]
call esi
jmp 0x10b1425
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x10b16b1
cmp dword [ebp - 4], esi
jne 0x10b16b1
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push esi
call fcn.010acb17
test al, al
jne 0x10b1625
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10b1617
test byte [eax + 0x1c], 4
je 0x10b1617
cmp byte [eax + 0x19], 3
jb 0x10b1617
push 0x100b080
push 0xd4
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
jmp 0x10b1732
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10b1652
test byte [eax + 0x1c], 4
je 0x10b1652
cmp byte [eax + 0x19], 4
jb 0x10b1652
push dword [ebp + 8]
push 0x100b080
push 0xd5
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp + 0x1c]
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10b178c
test byte [eax + 0x1c], 4
je 0x10b178c
cmp byte [eax + 0x19], 4
jb 0x10b178c
push 0x100b080
push 0xd6
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
jmp 0x10b178c
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10b16eb
test byte [eax + 0x1c], 4
je 0x10b16eb
cmp byte [eax + 0x19], 3
jb 0x10b16eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
mov eax, dword [0x111024c]
push esi
push 0x100b080
push 0xd3
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01065870
push dword [ebp - 0x10]
jmp 0x10b1618
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10b172c
test byte [eax + 0x1c], 4
je 0x10b172c
cmp byte [eax + 0x19], 3
jb 0x10b172c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
mov eax, dword [0x111024c]
push 0x100b080
push 0xd1
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x1c]
call esi
jmp 0x10b13e6
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10b177a
test byte [eax + 0x1c], 4
je 0x10b177a
cmp byte [eax + 0x19], 3
jb 0x10b177a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
mov eax, dword [0x111024c]
push 0x100b080
push 0xce
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0x1c