Function at 0x13c8cfa
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x4084
call fcn.013df53c
mov dword [esp + 8], edx
mov esi, dword [esp + 0x40a4]
mov ebx, ecx
lea ebp, [esp + 0x80]
mov eax, dword [0x41f214]
mov dword [esp + 0x4080], eax
mov dword [esi], 0
push ebx
push 0x4000
push 1
push ebp
call fcn.013ee167
add esp, 0x10
mov edi, eax
push ebx
call fcn.013ed774
add esp, 4
test edi, edi
js 0x13c8ea8
cmp edi, 0x4000
je 0x13c8ea8
cmp edi, 2
mov dword [esi], 0x40f39c
jl 0x13c8eae
mov al, byte [esp + 0x80]
test al, al
jne 0x13c8eae
mov bl, byte [esp + 0x81]
cmp bl, 3
je 0x13c8d90
test bl, bl
jne 0x13c8eae
cmp edi, 6
jl 0x13c8eae
cmp byte [esp + 0x82], 0
jne 0x13c8eae
cmp byte [esp + 0x83], 0
jne 0x13c8eae
cmp byte [esp + 0x84], 0
jne 0x13c8eae
cmp byte [esp + 0x85], 0
jne 0x13c8eae
lea eax, [edi - 6]
lea ecx, [esp + 0x86]
push 1
push 0
push dword [esp + 0x10]
push eax
push ecx
call fcn.013cafa4
add esp, 0x14
test eax, eax
js 0x13c8eae
mov ecx, dword [esp + eax + 0x86]
bswap ecx
push ecx
mov dword [esp + 8], eax
call fcn.013a3350
add esp, 4
test eax, eax
js 0x13c8eae
mov edx, dword [esp + 4]
mov ecx, edi
add edx, 0xa
sub ecx, edx
cmp ecx, eax
mov ecx, edx
jl 0x13c8eae
mov byte [esp + 3], bl
xor ebx, ebx
mov dword [esp + 4], ecx
lea ecx, [eax + 1]
mov dword [esp + 0xc], eax
inc ebx
push ebx
push ecx
call fcn.013a300b
add esp, 8
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x10], ecx
je 0x13c8e73
mov eax, dword [esp + 4]
lea eax, [esp + eax + 0x80]
push dword [esp + 0xc]
push eax
push ecx
call fcn.013e1a9c
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0xc]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x409c]
test eax, eax
je 0x13c8e94
push ecx
call fcn.013a2fa2
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x409c]
mov dword [edx], eax
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x4098]
test eax, eax
je 0x13c8ed7
mov dword [eax + 0x20], ecx
jmp 0x13c8ee7
mov dword [esi], 0x40f8a6
xor ebx, ebx
push 0x4000
push ebp
call fcn.013d78fa
add esp, 8
mov ecx, dword [esp + 0x4080]
call fcn.013df522
mov eax, ebx
add esp, 0x4084
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
call fcn.013a31d8
mov edx, dword [esp + 0x409c]
add esp, 4
test edx, edx
jne 0x13c8eb0
cmp dword [esp + 8], 0
je 0x13c9092
mov eax, dword [esp + 0xc]
add eax, dword [esp + 4]
cmp byte [esp + 3], 0
mov dword [esp + 0xc], eax
je 0x13c8f7d
lea eax, [esp + 0x14]
push eax
call fcn.013c7f4c
add esp, 4
push dword [esp + 0x40a0]
call fcn.013ef39c
add esp, 4
push eax
push dword [esp + 0x40a4]
lea eax, [esp + 0x1c]
push eax
call fcn.013c7f66
add esp, 0xc
lea ecx, [esp + 0x14]
lea eax, [esp + 0x70]
push ecx
push eax
call fcn.013c87a7
add esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [edi + 7]
sub eax, ecx
lea ecx, [esp + ecx + 0x80]
and eax, 0xfffffff8
push eax
push ecx
lea eax, [esp + 0x78]
push eax
call fcn.013c09fc
add esp, 0xc
push 0x10
lea eax, [esp + 0x74]
push eax
call fcn.013d78fa
add esp, 8
mov ecx, dword [esp + 0xc]
mov eax, edi
sub eax, ecx
cmp eax, 4
jl 0x13c8eae
mov al, byte [esp + ecx + 0x80]
cmp al, byte [esp + ecx + 0x82]
jne 0x13c90a7
mov al, byte [esp + ecx + 0x81]
cmp al, byte [esp + ecx + 0x83]
jne 0x13c90a7
lea edx, [ecx + 4]
mov eax, edi
lea ecx, [esp + ecx + 0x84]
mov dword [esp + 4], edx
sub eax, edx
push dword [esp + 8]
push eax
push ecx
call fcn.013cb0a2
add esp, 0xc
mov ecx, eax
test eax, eax
js 0x13c8eae
mov edx, ecx
mov eax, dword [esp + 8]
mov ecx, edi
add edx, dword [esp + 4]
lea eax, [eax + 0x1c]
sub ecx, edx
mov dword [esp + 4], edx
lea edx, [esp + edx + 0x80]
push eax
push ecx
push edx
call fcn.013bec58
add esp, 0xc
mov ecx, eax
test eax, eax
js 0x13c8eae
mov edx, ecx
mov eax, dword [esp + 8]
mov ecx, edi
add edx, dword [esp + 4]
lea eax, [eax + 0x18]
sub ecx, edx
mov dword [esp + 4], edx
lea edx, [esp + edx + 0x80]
push eax
push ecx
push edx
call fcn.013bec58
add esp, 0xc
test eax, eax
js 0x13c8eae
mov ecx, dword [esp + 8]
add eax, dword [esp + 4]
lea ecx, [ecx + 0x14]
sub edi, eax
lea eax, [esp + eax + 0x80]
push ecx
push edi
push eax
call fcn.013bec58
add esp, 0xc
test eax, eax
js 0x13c8eae
push dword [esp + 8]
call fcn.013cb80f
add esp, 4
test eax, eax
jne 0x13c8eb0
mov dword [esi], 0x40f8b9
push dword [esp + 8]
call fcn.013cb9fe
add esp, 4
jmp 0x13c8eae
xor ebx, ebx
cmp byte [esp + 3], 0
mov dword [esi], 0
setne bl
jmp 0x13c8eb0
xor ebx, ebx
mov dword [esi], 0x40f3ff
dec ebx
jmp 0x13c8eb0