Function at 0x40c5a0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x413e00]
push ebx
xor ebx, ebx
push esi
cmp eax, 0x400
push edi
jge 0x40c63f
cmp byte [0x413dfd], bl
jne 0x40c624
mov esi, dword [0x413e04]
mov ecx, eax
mov edx, ecx
mov edi, 0x413e08
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [eax + 0x413e08]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41c2
sub ecx, eax
mov eax, dword [0x417fd0]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, ebx
jge 0x40c5fd
xor eax, eax
mov ecx, dword [0x413e00]
mov dword [0x413e04], 0x413e08
add ecx, eax
cmp ecx, 0x41c2
mov dword [0x413e00], ecx
je 0x40c624
mov byte [0x413dfd], 1
cmp dword [0x413e00], ebx
jne 0x40c63f
pop edi
mov byte [0x413dfe], bl
mov byte [0x413dfd], bl
pop esi
or al, 0xff
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [0x413e04]
xor ecx, ecx
mov al, byte [ebp]
inc ebp
mov cl, al
mov byte [0x4180ea], al
mov esi, ecx
and esi, 0xffffffbf
cmp esi, 0x20
mov dword [esp + 0x10], esi
jl 0x40c67d
cmp esi, 0x30
jge 0x40c67d
add esi, 0xffffffe1
mov dword [esp + 0x10], 2
add word [0x4180e4], si
jmp case.0x40c68e.9
cmp esi, 0x16
ja case.0x40c68e.9
xor edx, edx
mov dl, byte [esi + 0x40c9f8]
jmp dword [edx*4 + 0x40c9d0]
cmp byte [0x413dfe], bl
je case.0x40c68e.8
push str.Multiple_Headers
call fcn.00404c40
add esp, 4
mov byte [0x413dfe], 1
mov al, byte [ebp]
inc ebp
mov byte [0x4180e9], al
mov cl, byte [ebp]
inc ebp
mov byte [0x4180e8], cl
mov dl, byte [ebp]
inc ebp
mov byte [0x4180e7], dl
mov dl, byte [ebp]
inc ebp
cmp al, 1
mov byte [0x4180e6], dl
mov byte [0x413dfc], bl
jne 0x40c6f1
cmp cl, al
jne case.0x40c68e.9
mov byte [0x413dfc], al
jmp 0x40c701
cmp al, 2
jne case.0x40c68e.9
cmp cl, bl
jne case.0x40c68e.9
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x417fd8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40c72b
mov dword [0x4180d8], ebp
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [ecx + ebp + 1]
jmp case.0x40c68e.9
mov ax, word [ebp]
add ebp, 2
add word [0x4180e4], ax
mov dword [esp + 0x10], 2
jmp case.0x40c68e.9
mov ax, word [ebp]
add ebp, 2
cmp ax, bx
mov word [0x4180e4], ax
je case.0x40c68e.9
dec ax
mov word [0x4180e4], ax
jmp case.0x40c68e.9
test al, 0x40
mov dword [0x4180e0], ebx
jne 0x40c7b3
xor eax, eax
mov ax, word [ebp]
add ebp, 2
mov dword [0x4180e0], eax
mov cl, byte [ebp]
inc ebp
test ah, 0x80
mov byte [0x417fd4], cl
je case.0x40c68e.9
or eax, 0xffff0000
jmp 0x40c992
mov dl, byte [ebp]
inc ebp
mov byte [0x4180e0], dl
mov al, byte [ebp]
inc ebp
mov byte [0x4180e1], al
mov cl, byte [ebp]
inc ebp
mov byte [0x4180e2], cl
mov dl, byte [ebp]
mov byte [0x417fd4], dl
jmp 0x40c917
test al, 0x40
jne 0x40c874
cmp byte [0x413dfc], bl
jne 0x40c807
mov al, byte [ebp]
inc ebp
mov byte [0x417fd4], al
mov cx, word [ebp]
add ebp, 2
mov word [0x4180dc], cx
jmp 0x40c825
mov ax, word [ebp]
add ebp, 2
mov dx, ax
shr dx, 0xb
and ax, 0x7ff
mov byte [0x417fd4], dl
mov word [0x4180dc], ax
mov al, byte [0x4180e6]
xor edx, edx
mov dword [0x4180e0], ebx
mov dx, word [ebp]
add ebp, 2
cmp al, bl
mov dword [0x4180e0], edx
je 0x40c844
inc ebp
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4180d8], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
test dh, 0x80
lea ebp, [ecx + ebp + 1]
je case.0x40c68e.9
or edx, 0xffff0000
mov dword [0x4180e0], edx
jmp case.0x40c68e.9
mov al, byte [ebp]
inc ebp
mov byte [0x417fd4], al
mov cx, word [ebp]
add ebp, 2
mov word [0x4180dc], cx
mov dword [0x4180e0], ebx
mov dl, byte [ebp]
inc ebp
mov byte [0x4180e0], dl
mov al, byte [ebp]
inc ebp
mov byte [0x4180e1], al
mov al, byte [0x4180e6]
mov cl, byte [ebp]
inc ebp
cmp al, bl
mov byte [0x4180e2], cl
je 0x40c8b8
inc ebp
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4180d8], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [ecx + ebp + 1]
jmp 0x40c918
test al, 0x40
mov dword [0x4180e0], ebx
jne 0x40c8fb
xor eax, eax
mov ax, word [ebp]
add ebp, 2
test ah, 0x80
mov dword [0x4180e0], eax
je case.0x40c68e.9
or eax, 0xffff0000
jmp 0x40c992
mov dl, byte [ebp]
inc ebp
mov byte [0x4180e0], dl
mov al, byte [ebp]
inc ebp
mov byte [0x4180e1], al
mov cl, byte [ebp]
mov byte [0x4180e2], cl
inc ebp
test dword [0x4180e0], 0x800000
je case.0x40c68e.9
jmp 0x40c988
test al, 0x40
mov dword [0x4180e0], ebx
jne 0x40c955
mov cl, byte [0x4180e6]
xor eax, eax
mov ax, word [ebp]
add ebp, 2
cmp cl, bl
mov dword [0x4180e0], eax
je 0x40c949
inc ebp
test ah, 0x80
je case.0x40c68e.9
or eax, 0xffff0000
jmp 0x40c992
mov dl, byte [ebp]
inc ebp
mov byte [0x4180e0], dl
mov al, byte [ebp]
inc ebp
mov byte [0x4180e1], al
mov al, byte [0x4180e6]
mov cl, byte [ebp]
inc ebp
cmp al, bl
mov byte [0x4180e2], cl
je 0x40c97c
inc ebp
test dword [0x4180e0], 0x800000
je case.0x40c68e.9
mov eax, dword [0x4180e0]
or eax, 0xff000000
mov dword [0x4180e0], eax
mov eax, dword [0x413e04]
mov ecx, dword [0x413e00]
sub eax, ebp
mov dword [0x413e04], ebp
add ecx, eax
pop ebp
mov dword [0x413e00], ecx
jns 0x40c9c2
push str.premature_EOF
call fcn.00404c40
add esp, 4
mov al, byte [esp + 0xc]
pop edi
pop esi
mov byte [0x4180ea], al
pop ebx
pop ecx
ret