Function at 0x1008ec50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
call fcn.10086a50
test al, al
jne 0x1008ec73
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xdc]
lea ebx, [edi + 0xd8]
push ebx
lea ecx, [esp + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
call fcn.10049150
nop
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x28]
push ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
call fcn.10049150
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1008eccd
mov esi, dword [esi]
jmp 0x1008eccf
xor esi, esi
lea ecx, [esp + 0x28]
call fcn.100491b0
cmp eax, esi
je 0x1008ed20
push str.list_iterators_incompatible
push 0x101aeae8
push 0
push 0xc3
push 0x101b31b0
push 2
call fcn.1011d740
add esp, 0x18
cmp eax, 1
jne 0x1008ed02
int3
push 0
push 0xc3
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133includelist
push 0x101aec28
push str._list_iterators_incompatible_
call fcn.1012c080
add esp, 0x14
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
cmp eax, dword [esp + 0x24]
push 3
sete bl
call fcn.10112de0
lea ecx, [esp + 0x28]
call fcn.100491c0
lea ecx, [esp + 0x14]
call fcn.10112e90
test bl, bl
jne 0x1008ed9b
lea ecx, [esp + 0x1c]
call fcn.1007fb90
mov eax, dword [eax]
mov ecx, dword [eax + 0xe4]
cmp ecx, 4
jne 0x1008ed7c
lea ecx, [esp + 0x1c]
mov dword [edi + 0x124], eax
call fcn.1007fad0
lea ebx, [edi + 0xd8]
jmp 0x1008eca0
cmp ecx, 6
jne 0x1008ed87
mov dword [edi + 0x120], eax
lea ecx, [esp + 0x1c]
call fcn.1007fad0
lea ebx, [edi + 0xd8]
jmp 0x1008eca0
push 3
lea ecx, [esp + 0x18]
call fcn.10112de0
lea ecx, [esp + 0x1c]
call fcn.100491c0
lea ecx, [esp + 0x14]
call fcn.10112e90
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push eax
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push ebx
call esi
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x1008eed0
push ecx
lea ecx, [esp + 0x13]
mov byte [esp + 0x13], 0
push ecx
inc eax
lea ecx, [esp + 0x30]
push eax
call fcn.100555d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
jne 0x1008ee4f
push str.vector_subscript_out_of_range
push 0x101aeae8
push eax
push 0x611
push 0x101af550
push 2
call fcn.1011d740
add esp, 0x18
cmp eax, 1
jne 0x1008ee2d
int3
push 0
push 0x611
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133include_vector
push 0x101aec28
push str._vector_subscript_out_of_range_
call fcn.1012c080
mov ecx, dword [esp + 0x40]
add esp, 0x14
push 0
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
push ecx
push ebx
call esi
cmp dword [edi + 0x128], 0
je 0x1008ee80
push 0x44
push 0x101b4570
push str.memory_leak
push str.ERROR____s_n_s:__d_n_n
call fcn.10080f00
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.100432e0
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x1008eeb9
mov eax, dword [esp + 0x34]
sub eax, ecx
push eax
push ecx
call fcn.100479d0
add esp, 8
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x28]
push 8
push eax
mov dword [esp + 0x30], 0
call fcn.100479d0
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4