Function at 0x10089170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.10086a50
test al, al
jne 0x10089194
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 0x10
lea eax, [edi + 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
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
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 0x10089204
mov esi, dword [esi]
jmp 0x10089206
xor esi, esi
lea ecx, [esp + 0x28]
call fcn.100491b0
cmp eax, esi
je 0x10089257
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 0x10089239
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 + 0x18]
cmp eax, dword [esp + 0x24]
push 3
sete bl
call fcn.10112de0
lea ecx, [esp + 0x28]
call fcn.100491c0
lea ecx, [esp + 0x18]
call fcn.10112e90
test bl, bl
jne 0x100892bd
lea ecx, [esp + 0x1c]
call fcn.1007fb90
mov eax, dword [eax]
cmp dword [eax + 0xe4], 4
jne 0x100892a9
mov ecx, dword [eax + 0xf0]
cmp ecx, 4
jge 0x100892a9
mov dword [edi + ecx*4 + 0x13c], eax
lea ecx, [esp + 0x1c]
call fcn.1007fad0
lea ebx, [edi + 0xd8]
jmp 0x100891d7
push 3
lea ecx, [esp + 0x1c]
call fcn.10112de0
lea ecx, [esp + 0x1c]
call fcn.100491c0
lea ecx, [esp + 0x18]
call fcn.10112e90
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x14]
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 0x100893f5
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 0x10089371
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 0x1008934f
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 + 0x18]
push eax
push dword [esp + 0x18]
push ecx
push ebx
call esi
cmp dword [edi + 0x15c], 0
je 0x100893a5
push 0xfc
push 0x101b3d88
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 0x100893de
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
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push ebx
call esi
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x100894ff
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 0x1008947b
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 0x10089459
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 + 0x18]
push eax
push dword [esp + 0x18]
push ecx
push ebx
call esi
cmp dword [edi + 0x160], 0
je 0x100894af
push 0x105
push 0x101b3d88
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 0x100894e8
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