Function at 0x404200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, ecx
cmp byte [edi + 0x12828], 0
jne 0x404237
mov ecx, dword [edi + 4]
push ecx
push 1
lea eax, [edi + 0xc]
push 4
push eax
call fcn.004f4a8e
add esp, 0x10
cmp eax, 1
jae 0x40426b
push str.Read_Error
mov ecx, edi
call fcn.00403a20
cmp dword [edi + 0x12844], 4
jae 0x40424a
push str.Read_Error
call fcn.00403a20
mov eax, dword [edi + 0x12848]
mov edx, dword [edi + 0x12840]
mov ecx, dword [eax + edx]
add eax, 4
mov dword [edi + 0xc], ecx
mov dword [edi + 0x1283c], ecx
mov dword [edi + 0x12848], eax
cmp dword [edi + 0xc], 0
je 0x4044ae
push esi
mov ecx, edi
call fcn.00403cc0
mov ecx, edi
call fcn.00403ad0
push 0xfc4
lea eax, [edi + 0x18]
push 0x20
push eax
call fcn.004f3100
xor esi, esi
add esp, 0xc
mov dword [ebp - 8], 0xfc4
mov dword [ebp - 0xc], esi
cmp dword [edi + 0xc], esi
jbe 0x40449f
push ebx
lea ecx, [ecx]
mov ecx, edi
call fcn.00403cf0
mov ebx, eax
cmp ebx, 0x100
jge 0x404304
cmp byte [edi + 0x12828], 0
jne 0x4042d9
mov eax, dword [edi + 8]
push eax
push ebx
call fcn.004f46cf
add esp, 8
jmp 0x4042eb
lea edx, [ebp - 1]
lea ecx, [edi + 0x1282c]
push edx
mov byte [ebp - 1], bl
call fcn.00404190
mov eax, dword [ebp - 8]
mov byte [edi + eax + 0x18], bl
inc eax
and eax, 0xfff
inc esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
jmp 0x40447b
mov ecx, edi
call fcn.00403e30
mov esi, dword [ebp - 8]
sub esi, eax
dec esi
add ebx, 0xffffff03
and esi, 0xfff
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0
test ebx, ebx
jle 0x404478
mov eax, dword [ebp - 0x10]
add eax, esi
and eax, 0xfff
cmp byte [edi + 0x12828], 0
movzx ebx, byte [eax + edi + 0x18]
mov dword [ebp - 0x14], ebx
jne 0x40435f
mov ecx, dword [edi + 8]
push ecx
push ebx
call fcn.004f46cf
add esp, 8
jmp 0x404455
mov eax, dword [edi + 0x12830]
lea edx, [ebp - 1]
mov byte [ebp - 1], bl
cmp edx, eax
jae 0x4043e8
mov edx, dword [edi + 0x1282c]
lea ecx, [ebp - 1]
cmp edx, ecx
ja 0x4043e8
mov ebx, ecx
mov ecx, dword [edi + 0x12834]
sub ebx, edx
mov dword [ebp - 0x1c], ebx
cmp eax, ecx
jne 0x4043c7
sub eax, edx
cmp eax, 0xfffffffe
ja 0x4044b3
inc eax
sub ecx, edx
cmp eax, ecx
jbe 0x4043c7
mov edx, ecx
shr edx, 1
or ebx, 0xffffffff
sub ebx, edx
cmp ebx, ecx
jae 0x4043b0
xor ecx, ecx
jmp 0x4043b2
add ecx, edx
cmp ecx, eax
jae 0x4043b8
mov ecx, eax
push ecx
lea ecx, [edi + 0x1282c]
call fcn.00404030
mov ebx, dword [ebp - 0x1c]
mov edx, dword [edi + 0x1282c]
mov eax, dword [edi + 0x12830]
add edx, ebx
push edx
push eax
lea ecx, [edi + 0x12838]
push ecx
call fcn.00403fa0
mov ebx, dword [ebp - 0x14]
jmp 0x404449
mov ecx, dword [edi + 0x12834]
cmp eax, ecx
jne 0x404432
mov edx, dword [edi + 0x1282c]
sub eax, edx
cmp eax, 0xfffffffe
ja 0x4044b3
inc eax
sub ecx, edx
cmp eax, ecx
jbe 0x404432
mov edx, ecx
shr edx, 1
or ebx, 0xffffffff
sub ebx, edx
cmp ebx, ecx
jae 0x40441b
xor ecx, ecx
jmp 0x40441d
add ecx, edx
cmp ecx, eax
jae 0x404423
mov ecx, eax
push ecx
lea ecx, [edi + 0x1282c]
call fcn.00404030
mov ebx, dword [ebp - 0x14]
mov eax, dword [edi + 0x12830]
lea edx, [ebp - 1]
push edx
push eax
lea ecx, [edi + 0x12838]
push ecx
call fcn.00403fa0
mov esi, dword [ebp - 0x18]
add esp, 0xc
inc dword [edi + 0x12830]
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
mov byte [edi + eax + 0x18], bl
inc eax
and eax, 0xfff
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x20]
jl 0x404332
mov esi, dword [ebp - 0xc]
cmp esi, dword [edi + 0x14]
jbe 0x404495
push esi
push str._12lu_r
call fcn.004f3ff9
add esp, 8
add dword [edi + 0x14], 0x400
cmp esi, dword [edi + 0xc]
jb 0x4042b0
pop ebx
push esi
push 0x519058
call fcn.004f3ff9
add esp, 8
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.0050b3ff
int3