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

Disassembly:
push ebp
sub esp, 0x60
push 0x100
mov eax, 0x1017b694
call fcn.1014d21b
mov dword [ebp + 0x54], ecx
xor esi, esi
inc esi
push esi
xor ebx, ebx
push 2
lea ecx, [ebp - 0x10c]
mov dword [ebp + 0x5c], ebx
mov byte [ebp + 0x5b], bl
call fcn.1000ab00
mov ecx, dword [ebp + 0x54]
push ebx
lea eax, [ebp]
push eax
mov dword [ebp - 4], ebx
call fcn.100faff3
mov edi, str.Global.db
push edi
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 4], 1
call fcn.10011f80
pop ecx
pop ecx
push eax
call fcn.10011d70
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.10001800
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10c]
call fcn.10008180
cmp dword [eax + 0x18], 0x10
jb 0x100fb16a
mov eax, dword [eax + 4]
jmp 0x100fb16d
add eax, 4
push ebx
push ebx
push 3
push ebx
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push ebx
push esi
lea ecx, [ebp]
mov dword [ebp + 0x5c], eax
call fcn.10001800
cmp dword [ebp + 0x5c], 0xffffffff
jne 0x100fb32a
push esi
push 2
lea ecx, [ebp - 0x8c]
call fcn.1000ab00
mov ecx, dword [ebp + 0x54]
push esi
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.100faff3
push edi
push eax
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 3
call fcn.10011f80
pop ecx
pop ecx
push eax
call fcn.10011d70
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.10001800
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x10c]
call fcn.10008180
push eax
mov byte [ebp - 4], 4
mov dword [ebp + 0x5c], esi
call fcn.100ec1a0
test al, al
pop ecx
jne 0x100fb22c
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10008180
push eax
mov dword [ebp - 4], 5
mov dword [ebp + 0x5c], 3
call fcn.100ec1a0
test al, al
pop ecx
mov byte [ebp + 0x63], 1
jne 0x100fb22f
mov byte [ebp + 0x63], bl
test byte [ebp + 0x5c], 2
je 0x100fb243
and dword [ebp + 0x5c], 0xfffffffd
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.10001800
test byte [ebp + 0x5c], 1
mov dword [ebp - 4], 2
je 0x100fb25a
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.10001800
cmp byte [ebp + 0x63], bl
je 0x100fb2da
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x10c]
call fcn.10008180
mov edi, eax
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
call fcn.10008180
push ebx
push edi
push eax
mov byte [ebp - 4], 7
call fcn.100ec29a
add esp, 0xc
push ebx
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp + 0x63], al
call fcn.10001800
push ebx
push esi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.10001800
cmp byte [ebp + 0x63], bl
je 0x100fb2da
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10008180
push eax
mov byte [ebp - 4], 8
call fcn.100ec22e
pop ecx
push ebx
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 2
call fcn.10001800
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10008180
cmp dword [eax + 0x18], 0x10
jb 0x100fb2f4
mov eax, dword [eax + 4]
jmp 0x100fb2f7
add eax, 4
push ebx
push ebx
push 3
push ebx
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push ebx
push esi
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x5c], eax
call fcn.10001800
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.10006f90
cmp dword [ebp + 0x5c], 0xffffffff
je 0x100fb363
push ebx
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0x10
jne 0x100fb35a
push ebx
lea eax, [ebp + 0x6c]
push eax
push 0x10
push dword [ebp + 0x6c]
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x100fb35a
cmp dword [ebp + 0x6c], 0x10
jne 0x100fb35a
mov byte [ebp + 0x5b], 1
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.10006f90
mov al, byte [ebp + 0x5b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret 4