Function at 0x10094150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10199555
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x101f6e00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
push esi
call fcn.10090d70
test al, al
jne 0x1009419e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x10
lea eax, [ebx + 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 0xdc]
lea ecx, [ebp - 0x20]
push 3
mov eax, dword [eax]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], eax
call fcn.10139310
mov edi, dword [ebx + 0xd8]
mov esi, dword [ebp - 0x40]
cmp esi, edi
je 0x1009426c
test esi, esi
je 0x1009425d
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
je 0x1009420d
lea ecx, [ebp - 0x40]
cmp eax, ecx
je 0x10094208
mov esi, dword [esi]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x100941f6
cmp dword [esi], 0
jne 0x10094251
push str.ITERATOR_LIST_CORRUPTED_
push 0x101d467c
push 0
push 0x536
push 0x101d4680
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x10094233
int3
push 0
push 0x536
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
push 0x101d47ac
push str._ITERATOR_LIST_CORRUPTED__
call fcn.10152640
add esp, 0x14
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
mov dword [ebp - 0x40], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
mov dword [edi + 4], eax
mov dword [ebp - 0x40], edi
lea ecx, [ebp - 0x20]
call fcn.101393c0
mov eax, dword [ebx + 0xdc]
lea ecx, [ebp - 0x20]
push 3
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
call fcn.10139310
mov edi, dword [ebx + 0xd8]
mov esi, dword [ebp - 0x34]
cmp esi, edi
je 0x1009432a
test esi, esi
je 0x1009431b
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
je 0x100942cb
lea ecx, [ebp - 0x34]
cmp eax, ecx
je 0x100942c6
mov esi, dword [esi]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x100942b4
cmp dword [esi], 0
jne 0x1009430f
push str.ITERATOR_LIST_CORRUPTED_
push 0x101d467c
push 0
push 0x536
push 0x101d4680
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x100942f1
int3
push 0
push 0x536
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
push 0x101d47ac
push str._ITERATOR_LIST_CORRUPTED__
call fcn.10152640
add esp, 0x14
mov eax, dword [ebp - 0x30]
mov dword [esi], eax
mov dword [ebp - 0x34], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
mov dword [edi + 4], eax
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x20]
call fcn.101393c0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
call fcn.1008f770
push 3
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.10139310
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x100943c7
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
je 0x10094377
nop dword [eax + eax]
lea ecx, [ebp - 0x34]
cmp eax, ecx
je 0x10094372
mov esi, dword [esi]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x10094360
cmp dword [esi], 0
jne 0x100943bb
push str.ITERATOR_LIST_CORRUPTED_
push 0x101d467c
push 0
push 0x536
push 0x101d4680
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x1009439d
int3
push 0
push 0x536
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
push 0x101d47ac
push str._ITERATOR_LIST_CORRUPTED__
call fcn.10152640
add esp, 0x14
mov eax, dword [ebp - 0x30]
mov dword [esi], eax
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x24]
call fcn.101393c0
test bl, bl
jne 0x10094408
lea ecx, [ebp - 0x40]
call fcn.10086f10
mov ebx, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [eax + 0xe4], 4
jne 0x100943fb
mov ecx, dword [eax + 0xf0]
cmp ecx, 4
jge 0x100943fb
mov dword [ebx + ecx*4 + 0x13c], eax
lea ecx, [ebp - 0x40]
call fcn.10086e50
jmp 0x10094274
push 3
lea ecx, [ebp - 0x24]
call fcn.10139310
lea ecx, [ebp - 0x40]
call fcn.1004c220
lea ecx, [ebp - 0x24]
call fcn.101393c0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0
push eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x14]
test edi, edi
jle 0x100945c9
lea eax, [ebp - 0xd]
mov dword [ebp - 0x4c], 0
push 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x24], eax
call fcn.1013ca30
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x28], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
add edi, 1
je 0x100944bc
cmp edi, 0x7fffffff
ja 0x1009477b
push edi
call fcn.100490d0
add esp, 4
mov dword [ebp - 0x4c], eax
lea esi, [eax + edi]
push edi
push 0
push eax
mov dword [ebp - 0x44], esi
call fcn.1013f8f0
add esp, 0xc
mov dword [ebp - 0x48], esi
jmp 0x100944bf
mov esi, dword [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x28], 0
sub esi, eax
jne 0x1009451a
push str.vector_subscript_out_of_range
push 0x101d467c
push esi
push 0x762
push 0x101d5190
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x100944f9
int3
push 0
push 0x762
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807include_vector
push 0x101d47ac
push str._vector_subscript_out_of_range_
call fcn.10152640
mov eax, dword [ebp - 0x4c]
add esp, 0x14
push 0
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 0x18]
cmp dword [ebx + 0x15c], 0
je 0x10094553
push 0xfc
push 0x101d9dc0
push str.memory_leak
push str.ERROR____s_n_s:__d_n_n
call fcn.10089a80
add esp, 0x10
push 3
lea ecx, [ebp - 0x24]
call fcn.10139310
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x1009457f
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x1009457f
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x10094572
lea ecx, [ebp - 0x24]
call fcn.101393c0
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x100945b2
mov eax, dword [ebp - 0x44]
sub eax, ecx
push eax
push ecx
call fcn.10048760
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x50]
push 8
push eax
mov dword [ebp - 0x50], 0
call fcn.1013c8d0
add esp, 8
jmp 0x100945cc
mov ebx, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x14]
test edi, edi
jle 0x10094765
lea eax, [ebp - 0xd]
mov dword [ebp - 0x5c], 0
push 8
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x24], eax
call fcn.1013ca30
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x28], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 1
add edi, 1
je 0x1009465e
cmp edi, 0x7fffffff
ja 0x10094780
push edi
call fcn.100490d0
add esp, 4
mov dword [ebp - 0x5c], eax
lea esi, [eax + edi]
push edi
push 0
push eax
mov dword [ebp - 0x54], esi
call fcn.1013f8f0
add esp, 0xc
mov dword [ebp - 0x58], esi
jmp 0x10094661
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], 0
sub esi, eax
jne 0x100946b5
push str.vector_subscript_out_of_range
push 0x101d467c
push esi
push 0x762
push 0x101d5190
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x10094694
int3
push 0
push 0x762
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807include_vector
push 0x101d47ac
push str._vector_subscript_out_of_range_
call fcn.10152640
mov eax, dword [ebp - 0x5c]
add esp, 0x14
push 0
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebx + 0x160], 0
je 0x100946ed
push 0x105
push 0x101d9dc0
push str.memory_leak
push str.ERROR____s_n_s:__d_n_n
call fcn.10089a80
add esp, 0x10
push 3
lea ecx, [ebp + 8]
call fcn.10139310
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x1009471d
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x1009471d
nop dword [eax]
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x10094710
lea ecx, [ebp + 8]
call fcn.101393c0
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x10094750
mov eax, dword [ebp - 0x54]
sub eax, ecx
push eax
push ecx
call fcn.10048760
add esp, 8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x60]
push 8
push eax
mov dword [ebp - 0x60], 0
call fcn.1013c8d0
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10048d00
call fcn.10048d00
int3