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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], ecx
push edi
mov edi, edx
test eax, eax
je 0x100c016c
test ebx, ebx
je 0x100c0185
xor ebx, ebx
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x2c], bl
call fcn.10099234
mov esi, eax
test esi, esi
js 0x100c019e
push ebx
push 0x2000080
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100c01b8
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
test eax, eax
je 0x100c01f1
cmp dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
jl 0x10099195
jg 0x100c0237
cmp eax, 0xffffffff
ja 0x100c0237
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x100c0244
push eax
push 8
push dword [ecx]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
test ecx, ecx
je 0x100c024e
test eax, eax
je 0x100991fc
sub eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0xc]
push 0
push ecx
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x100c025b
cmp dword [ebp - 0xc], 0
je 0x100991f9
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jb 0x100991c0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
test ebx, ebx
je 0x10099214
push ebx
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp byte [ebp - 0x2c], 0
jne 0x1009922d
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 0xc
call fcn.100edd2d
jmp 0x1009921a
push 0x10074dc4
mov edx, 0x1a1
mov ecx, 0x10023f28
call fcn.100e970f
jmp 0x10099123
push 0x10074dbc
mov edx, 0x1a2
mov ecx, 0x10023f28
call fcn.100e970f
jmp 0x1009912b
push 0x1004a8b8
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x10099214
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100c01cf
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100c01d6
mov esi, 0x80004005
push edi
push 0x10047a54
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x10099214
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100c0208
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100c020f
mov esi, 0x80004005
push edi
push 0x10047a74
jmp 0x100c0222
mov esi, 0x80004005
push edi
push 0x10047b08
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x10099209
push edi
mov esi, 0x80070057
push 0x10047aa0
jmp 0x100c0222
xor ecx, ecx
mov dword [ebp - 0x18], ecx
jmp 0x100991b4
push edi
mov esi, 0x8007000e
push 0x10047ac0
jmp 0x100c0222
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100c0272
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100c021c
jmp 0x100c0217