Function at 0x4026e0
Capabilities:
Read file on windows

Disassembly:
cmp byte [0x40a5dd], 1
push ebx
push esi
push edi
jne 0x4026f3
mov byte [0x40a5dd], 0
mov ebx, dword [0x40a6c0]
mov edi, dword [0x40a6c4]
mov byte [0x40a9a0], 0
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xe4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 0xe0], eax
xor al, al
mov cl, byte [0x40a798]
cmp cl, 0x5c
jne 0x40272d
cmp byte [0x40a799], cl
je 0x402757
mov edx, 0x40a798
test cl, cl
je 0x402775
mov esi, 1
nop dword [eax + eax]
cmp cl, 0x3a
movzx eax, al
mov cl, byte [edx + 1]
lea edx, [edx + 1]
cmove eax, esi
test cl, cl
jne 0x402740
test al, al
je 0x402775
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x40a798]
lea ecx, [ecx + 1]
mov byte [ecx + 0x40a6cf], al
test al, al
jne 0x402760
jmp 0x4027cc
mov ecx, edi
mov edx, 0x40a6d0
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x402780
mov al, byte [0x40a6d0]
mov edx, 0x40a6d0
mov ecx, edx
test al, al
je 0x4027b2
nop dword [eax]
cmp al, 0x2f
je 0x4027a8
cmp al, 0x5c
jne 0x4027aa
mov edx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4027a0
mov ecx, 0x40a798
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx], al
test al, al
jne 0x4027c0
mov ecx, 0x40a6d0
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4027f3
test dl, dl
je 0x4027ef
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4027f3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4027d3
xor eax, eax
jmp 0x4027f8
sbb eax, eax
or eax, 1
mov esi, edi
test eax, eax
je 0x40283a
nop
mov esi, dword [esi + 0xcc]
cmp esi, edi
je 0x402858
mov eax, 0x40a6d0
mov ecx, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402831
test dl, dl
je 0x40282d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402831
add ecx, 2
add eax, 2
test dl, dl
jne 0x402811
xor eax, eax
jmp 0x402836
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402800
mov dword [ebx], esi
mov eax, dword [esi + 0xe4]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe0]
mov dword [0x40a6c4], esi
mov dword [ebx + 8], eax
pop edi
pop esi
pop ebx
ret
push 0x40720c
push 0x40a6d0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x402854
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0xec
call ebx
add esp, 4
mov esi, eax
push 0xec
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x40a6c4]
add esp, 0xc
mov eax, dword [0x40a6bc]
inc eax
mov dword [0x40a6c4], esi
mov dword [0x40a6bc], eax
mov edx, dword [ecx + 0xcc]
mov dword [ecx + 0xcc], esi
mov ecx, 0x40a6d0
mov dword [esi + 0xc8], eax
mov eax, dword [0x40a6c0]
mov dword [esi + 0xcc], edx
mov edx, esi
sub edx, ecx
mov dword [eax], esi
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4028e0
push 2
push 0
mov dword [esi + 0xd0], edi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push edi
call esi
mov eax, dword [0x40a6c4]
add esp, 0xc
push dword [eax + 0xd0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edx, dword [0x40a6c4]
mov ecx, eax
mov eax, 1
add esp, 4
mov dword [edx + 0xd4], ecx
mov dword [edx + 0xd8], ecx
cmp ecx, eax
jbe 0x40293a
add eax, eax
cmp eax, ecx
jb 0x402934
add eax, eax
mov dword [edx + 0xd8], eax
cmp eax, 0x1000
jge 0x402953
mov dword [edx + 0xd8], 0x1000
push 0
push 0
push dword [edx + 0xd0]
call esi
mov eax, dword [0x40a6c4]
add esp, 0xc
push dword [eax + 0xd8]
call ebx
mov ecx, dword [0x40a6c4]
add esp, 4
push dword [ecx + 0xd0]
mov dword [ecx + 0xdc], eax
push dword [ecx + 0xd4]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [0x40a6c4]
push dword [eax + 0xd0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [0x40a6c8]
add esp, 0x14
mov esi, dword [0x40a6c4]
mov eax, dword [ecx + 0x18]
mov edx, dword [esi + 0xe8]
add eax, 0x1c
add eax, ecx
and edx, 0xfffff000
mov dword [esi + 0xe8], eax
add edx, 0x1000
add eax, 0x1c
cmp eax, edx
jbe 0x402a1b
mov edi, dword [0x40a9a8]
mov ecx, dword [edi + 8]
test cx, cx
jne 0x402a09
cmp ecx, 0x40000000
jae 0x402a54
push 4
push 0x1000
push 0x10000
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [0x40a6c4]
mov ecx, dword [edi + 8]
lea eax, [ecx + 0x1000]
mov dword [edi + 8], eax
mov dword [esi + 0xe8], ecx
mov eax, dword [esi + 0xe8]
xorps xmm0, xmm0
pop edi
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov eax, dword [esi + 0xe8]
mov ecx, dword [esi + 0xdc]
mov edx, dword [esi + 0xd4]
pop esi
mov dword [0x40a6c8], eax
add edx, ecx
pop ebx
jmp fcn.00401f60
mov ecx, str.MemLists::get1000__out_of_memory
call fcn.00405c70
int3