Function at 0x4011ad
Capabilities:
Read file on windows

Disassembly:
xor eax, eax
push ebp
mov ebp, esp
sub esp, 0x3028
push esi
push edi
push ebx
cmp dword [0x4d10dc], 0x4c9000
setne al
shl eax, 2
lea esi, [eax + 8]
mov dword [ebp - 0x10], esi
xor edx, edx
mov dl, 1
cmp dword [ebp + 0x1c], 0
setne al
movzx ecx, al
mov dword [ebp - 0x14], ecx
je 0x401214
xor edx, edx
mov dl, 4
cmp dword [ebp + 0x1c], 1
je 0x401214
xor edx, edx
cmp dword [ebp + 0x1c], 2
mov dl, 8
je 0x401214
push 0x31e
push 0x4d13d0
push str.false
call fcn.004a6fa7
sub esp, 0xfffffff4
xor al, al
jmp 0x4015e2
xor eax, eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
jmp 0x4015d4
mov ecx, 0x400
mov esi, dword [ebp + 0x18]
sub esi, dword [ebp - 0x1c]
cmp ecx, esi
jg 0x401235
mov esi, 0x400
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp + 0x10]
imul ecx, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp byte [ebp + 0x20], 0
lea ebx, [esi + ecx]
jne 0x401333
xor esi, esi
cmp dword [0x4d10dc], 0x4c9000
jne 0x401329
jmp 0x401296
cmp dword [ebp + 0x1c], 1
jne 0x40127e
mov eax, dword [ebx + esi*4]
mov dword [ebp + esi*8 - 0x3024], eax
jmp 0x401295
push 0x2dd
push 0x4d1132
push 0x4d1126
call fcn.004a6fa7
add esp, 0xc
inc esi
cmp esi, dword [ebp - 0x18]
jge 0x401545
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + esi*4]
cmp dword [ebp - 0x14], 0
mov dword [ebp + esi*8 - 0x3028], eax
jne 0x40126c
movzx eax, byte [ebx + esi]
jmp 0x401275
mov edx, dword [ebp - 0x24]
imul eax, esi, 0xc
mov edx, dword [edx + esi*4]
cmp dword [ebp - 0x14], 0
mov dword [ebp + eax - 0x3028], edx
jne 0x4012d4
movzx edx, byte [ebx + esi]
jmp 0x4012dd
cmp dword [ebp + 0x1c], 1
jne 0x4012f4
mov edx, dword [ebx + esi*4]
mov dword [ebp + eax - 0x3024], edx
mov edx, dword [ebp + eax - 0x3020]
xor dword [ebp + eax - 0x3020], edx
jmp 0x401328
cmp dword [ebp + 0x1c], 2
jne 0x401311
mov edx, dword [ebx + esi*8 + 4]
mov dword [ebp + eax - 0x3020], edx
mov edx, dword [ebx + esi*8]
mov dword [ebp + eax - 0x3024], edx
jmp 0x401328
push 0x2f2
push 0x4d1172
push 0x4d1166
call fcn.004a6fa7
add esp, 0xc
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x4012b8
jmp 0x401545
push 0
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.004010da
add esp, 0xc
test al, al
je 0x40120d
mov esi, dword [ebp - 0x18]
imul esi, dword [ebp - 0x10]
xor edi, edi
jmp 0x4013b9
mov eax, esi
sub eax, edi
push eax
lea eax, [ebp + edi - 0x3028]
push eax
push dword [ebp + 8]
call fcn.004b31f3
sub esp, 0xfffffff4
or eax, eax
jne 0x40138a
push dword [0x4d10d0]
push str.coverage_error:_EOF_reading__s_n
jmp 0x401580
cmp eax, 0xffffffff
jne 0x4013b7
push dword [0x4d10d0]
call fcn.004a6a4b
push dword [eax]
push str.coverage_error__d_:_error_reading__s_n
call fcn.004a6738
lea eax, [eax + 0x40]
push eax
call fcn.004a68ed
sub esp, 0xfffffff0
jmp 0x40120d
add edi, eax
cmp edi, esi
jl 0x40135e
xor esi, esi
cmp dword [0x4d10dc], 0x4c9000
jne 0x401532
jmp 0x40145b
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + esi*8 - 0x3028]
mov eax, dword [eax + esi*4]
cmp edx, eax
je 0x40141e
mov ecx, edx
cmp dword [ebp + 0x1c], 0
mov edx, str.flag
je 0x4013f7
mov edx, 0x4d10e2
push eax
push ecx
push dword [0x4d10d0]
push esi
push edx
push str.coverage_error:__s_block__i_address_in__s_was_0x_0x__expected_0x_0x_n
call fcn.004a6738
lea eax, [eax + 0x40]
push eax
call fcn.004a68ed
add esp, 0x1c
xor al, al
jmp 0x40153d
cmp dword [ebp - 0x14], 0
jne 0x401431
movzx eax, byte [ebx + esi]
or dword [ebp + esi*8 - 0x3024], eax
jmp 0x40145a
cmp dword [ebp + 0x1c], 1
jne 0x401443
mov eax, dword [ebx + esi*4]
add dword [ebp + esi*8 - 0x3024], eax
jmp 0x40145a
push 0x29f
push 0x4d11b2
push 0x4d11a6
call fcn.004a6fa7
add esp, 0xc
inc esi
cmp esi, dword [ebp - 0x18]
mov al, 1
jl 0x4013d4
jmp 0x40153d
imul eax, esi, 0xc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + eax - 0x3028]
mov ecx, dword [ecx + esi*4]
cmp edx, ecx
je 0x40149e
cmp dword [ebp + 0x1c], 0
mov eax, str.flag
je 0x40148f
mov eax, 0x4d10e2
push ecx
push edx
push dword [0x4d10d0]
push esi
push eax
jmp 0x401401
cmp dword [ebp - 0x14], 0
jne 0x4014b7
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ebx + esi]
xor dword [ebp - 0xc], ecx
or dword [ebp + eax - 0x3024], edx
jmp 0x401531
cmp dword [ebp + 0x1c], 1
jne 0x4014e7
mov edx, dword [ebp + eax - 0x3024]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + eax - 0x3020]
xor dword [ebp - 8], edi
add edx, dword [ebx + esi*4]
adc ecx, 0
mov dword [ebp + eax - 0x3020], ecx
mov dword [ebp + eax - 0x3024], edx
jmp 0x401531
cmp dword [ebp + 0x1c], 2
jne 0x40151a
mov ecx, dword [ebp + eax - 0x3024]
mov edi, dword [ebx + esi*8 + 4]
mov edx, dword [ebp + eax - 0x3020]
mov dword [ebp - 0x28], edi
mov edi, dword [ebx + esi*8]
add ecx, edi
adc edx, dword [ebp - 0x28]
mov dword [ebp + eax - 0x3020], edx
mov dword [ebp + eax - 0x3024], ecx
jmp 0x401531
push 0x2ba
push 0x4d11f2
push 0x4d11e6
call fcn.004a6fa7
add esp, 0xc
inc esi
cmp esi, dword [ebp - 0x18]
mov al, 1
jl 0x40146b
or al, al
je 0x40120d
push 0
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.004010da
add esp, 0xc
test al, al
je 0x40120d
mov edi, dword [ebp - 0x18]
imul edi, dword [ebp - 0x10]
xor ebx, ebx
jmp 0x4015ca
cmp esi, 0xffffffff
jne 0x4015c8
push dword [0x4d10d0]
push str.coverage_error__d_:_error_writing__s_n
call fcn.004a6738
lea eax, [eax + 0x40]
push eax
call fcn.004a68ed
jmp 0x40120a
mov esi, edi
sub esi, ebx
push esi
lea eax, [ebp + ebx - 0x3028]
push eax
push dword [ebp + 8]
call fcn.004b3a23
add esp, 0xc
mov esi, eax
or esi, esi
jne 0x401570
push 0x173
push 0x4d1226
push str.ret___0
call fcn.004a6fa7
add esp, 0xc
add ebx, esi
cmp ebx, edi
jl 0x401593
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov al, 1
mov ebx, dword [ebp - 0x1c]
cmp ebx, dword [ebp + 0x18]
jl 0x401221
pop ebx
pop edi
pop esi
leave
ret