Function at 0x4f72e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cf70
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c], esi
mov ebx, dword [ebp + 8]
push 0
mov dword [ebp - 0x50], ebx
mov eax, dword [ebx + 8]
mov dl, al
mov dword [ebp - 0x44], eax
movzx eax, byte [ebp - 0x41]
mov cl, byte [ebp - 0x43]
mov byte [ebp - 0x44], al
movzx eax, byte [ebp - 0x42]
mov byte [ebp - 0x41], dl
mov byte [ebp - 0x43], al
mov byte [ebp - 0x42], cl
mov eax, dword [ebp - 0x44]
push eax
mov dword [ebx + 8], eax
push dword [esi]
call fcn.0055499d
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x1c]
push dword [esi]
push 1
push 6
push eax
call fcn.005534f0
movzx eax, word [ebp - 0x1a]
xorps xmm0, xmm0
movzx ecx, word [ebp - 0x18]
xor edx, edx
mov word [ebp - 0x44], ax
add esp, 0x10
movzx eax, byte [ebp - 0x19]
mov byte [ebp - 0x44], al
movzx eax, byte [ebp - 0x1a]
mov byte [ebp - 0x43], al
mov ax, word [ebp - 0x44]
mov word [ebp - 0x44], cx
movzx ecx, byte [ebp - 0x17]
mov byte [ebp - 0x44], cl
movzx ecx, byte [ebp - 0x18]
mov byte [ebp - 0x43], cl
mov di, word [ebp - 0x44]
movzx ecx, word [ebp - 0x1c]
mov word [ebp - 0x44], cx
movzx ecx, byte [ebp - 0x1b]
mov byte [ebp - 0x44], cl
movzx ecx, byte [ebp - 0x1c]
mov byte [ebp - 0x43], cl
movzx ecx, word [ebp - 0x44]
mov word [ebp - 0x1c], cx
xor ecx, ecx
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
mov word [ebp - 0x1a], ax
mov word [ebp - 0x18], di
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x38], edx
xor ebx, ebx
mov dword [ebp - 4], edx
cmp dx, ax
jae 0x4f74f1
nop dword [eax]
push dword [esi]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], 0
push 1
xorps xmm0, xmm0
push 0xc
push eax
movq qword [ebp - 0x28], xmm0
call fcn.005534f0
movzx eax, word [ebp - 0x22]
lea ecx, [ebp - 0x40]
mov word [ebp - 0x44], ax
add esp, 0x10
movzx eax, byte [ebp - 0x21]
mov byte [ebp - 0x44], al
movzx eax, byte [ebp - 0x22]
mov byte [ebp - 0x43], al
movzx eax, word [ebp - 0x44]
mov word [ebp - 0x22], ax
movzx eax, word [ebp - 0x26]
mov word [ebp - 0x44], ax
movzx eax, byte [ebp - 0x25]
mov byte [ebp - 0x44], al
movzx eax, byte [ebp - 0x26]
mov byte [ebp - 0x43], al
movzx eax, word [ebp - 0x44]
mov word [ebp - 0x26], ax
movzx eax, word [ebp - 0x1e]
mov word [ebp - 0x44], ax
movzx eax, byte [ebp - 0x1d]
mov byte [ebp - 0x44], al
movzx eax, byte [ebp - 0x1e]
mov byte [ebp - 0x43], al
movzx eax, word [ebp - 0x44]
mov word [ebp - 0x1e], ax
movzx eax, word [ebp - 0x20]
mov word [ebp - 0x44], ax
movzx eax, byte [ebp - 0x1f]
mov byte [ebp - 0x44], al
movzx eax, byte [ebp - 0x20]
mov byte [ebp - 0x43], al
movzx eax, word [ebp - 0x44]
mov word [ebp - 0x20], ax
movzx eax, word [ebp - 0x28]
mov word [ebp - 0x44], ax
movzx eax, byte [ebp - 0x27]
mov byte [ebp - 0x44], al
movzx eax, byte [ebp - 0x28]
mov byte [ebp - 0x43], al
movzx eax, word [ebp - 0x44]
mov word [ebp - 0x28], ax
movzx eax, word [ebp - 0x24]
mov word [ebp - 0x44], ax
movzx eax, byte [ebp - 0x23]
mov byte [ebp - 0x44], al
movzx eax, byte [ebp - 0x24]
mov byte [ebp - 0x43], al
movzx eax, word [ebp - 0x44]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x28]
push eax
call fcn.004f8080
inc ebx
cmp bx, word [ebp - 0x1a]
jb 0x4f73f0
mov edx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x40]
mov di, word [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x48], ebx
jmp 0x4f74f3
xor ebx, ebx
sub ecx, ebx
mov dword [ebp - 0x54], 0
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x60], eax
je 0x4f7842
add ebx, 8
nop dword [eax + eax]
movzx eax, word [ebx - 8]
test ax, ax
je 0x4f7678
cmp eax, 3
je 0x4f7678
movzx ecx, word [ebx + 2]
movzx eax, di
add ecx, eax
mov eax, dword [ebp - 0x50]
push 0
add ecx, dword [eax + 8]
push ecx
push dword [esi]
call fcn.0055499d
movzx eax, word [ebx]
add esp, 0xc
inc eax
mov dword [ebp - 0x44], eax
push eax
call fcn.0053f7f7
add esp, 4
mov edi, eax
push dword [ebp - 0x44]
push 0
push edi
call fcn.005481a0
movzx eax, word [ebx]
add esp, 0xc
push dword [esi]
push 1
push eax
push edi
call fcn.005534f0
add esp, 0x10
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp byte [edi], 0
jne 0x4f759e
xor ecx, ecx
jmp 0x4f75ac
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f75a3
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x34]
call fcn.004f4a60
mov byte [ebp - 4], 2
lea edx, [ebp - 0x34]
movzx esi, word [ebx - 2]
lea ecx, [ebp - 0x78]
call fcn.004f7a80
push eax
push esi
mov esi, dword [ebp - 0x4c]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004f78f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x4f7630
mov ecx, dword [ebp - 0x78]
inc eax
cmp eax, 0x7fffffff
ja 0x4f77f9
add eax, eax
cmp eax, 0x1000
jb 0x4f7627
test cl, 0x1f
jne 0x4f77f9
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4f77f9
sub ecx, eax
cmp ecx, 4
jb 0x4f77f9
cmp ecx, 0x23
ja 0x4f77f9
mov ecx, eax
push ecx
call fcn.0053f797
add esp, 4
push dword [ebp - 0x44]
push 0
push edi
call fcn.005481a0
add esp, 0xc
push edi
call fcn.0053f7f2
add esp, 4
cmp byte [esi + 0xdc], 0xff
je 0x4f77cd
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x4f77b5
push 1
inc eax
push eax
push dword [ebp - 0x34]
call fcn.00403190
add esp, 0xc
jmp 0x4f77b5
movzx ecx, word [ebx + 2]
movzx eax, di
add ecx, eax
mov eax, dword [ebp - 0x50]
push 0
add ecx, dword [eax + 8]
push ecx
push dword [esi]
call fcn.0055499d
movzx edi, word [ebx]
xor ecx, ecx
shr edi, 1
add esp, 0xc
inc edi
mov edx, 2
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053f7f7
add esp, 4
mov esi, eax
lea eax, [edi + edi]
mov dword [ebp - 0x5c], eax
push eax
push 0
push esi
call fcn.005481a0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
push dword [eax]
movzx eax, word [ebx]
push 1
push eax
push esi
call fcn.005534f0
add esp, 0x10
xor edx, edx
test edi, edi
je 0x4f7703
movzx eax, word [esi + edx*2]
mov word [ebp - 0x44], ax
mov cl, al
mov al, byte [ebp - 0x43]
mov byte [ebp - 0x44], al
mov byte [ebp - 0x43], cl
movzx eax, word [ebp - 0x44]
mov word [esi + edx*2], ax
inc edx
cmp edx, edi
jb 0x4f76e3
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
cmp word [esi], ax
je 0x4f7730
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f7721
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.00402b20
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
movzx eax, word [ebx - 2]
push eax
call fcn.004f78f0
push dword [ebp - 0x5c]
push 0
push esi
call fcn.005481a0
add esp, 0xc
push esi
call fcn.0053f7f2
mov esi, dword [ebp - 0x4c]
add esp, 4
cmp byte [esi + 0xdc], 0xff
je 0x4f77e6
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x4f77b5
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, 0x7fffffff
ja 0x4f77f9
add eax, eax
cmp eax, 0x1000
jb 0x4f77ac
test cl, 0x1f
jne 0x4f77f9
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4f77f9
sub ecx, eax
cmp ecx, 4
jb 0x4f77f9
cmp ecx, 0x23
ja 0x4f77f9
mov ecx, eax
push ecx
call fcn.0053f797
add esp, 4
mov eax, dword [ebp - 0x54]
add ebx, 0xc
inc eax
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x60]
jae 0x4f783f
mov di, word [ebp - 0x18]
jmp 0x4f7520
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x4f783f
push 1
inc eax
push eax
push dword [ebp - 0x34]
call fcn.00403190
add esp, 0xc
jmp 0x4f783f
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x4f783f
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, 0x7fffffff
jbe 0x4f77fe
call fcn.0054a911
add eax, eax
cmp eax, 0x1000
jb 0x4f7836
test byte [ebp - 0x34], 0x1f
je 0x4f7812
call fcn.0054a911
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4f781e
call fcn.0054a911
sub ecx, eax
cmp ecx, 4
jae 0x4f782a
call fcn.0054a911
cmp ecx, 0x23
jbe 0x4f7834
call fcn.0054a911
mov ecx, eax
push ecx
call fcn.0053f797
add esp, 4
mov ebx, dword [ebp - 0x48]
mov eax, dword [esi]
test eax, eax
je 0x4f785a
cmp byte [esi + 0xdd], 0
jne 0x4f785a
push eax
call fcn.00553616
add esp, 4
mov dword [esi], 0
test ebx, ebx
je 0x4f78ca
mov ecx, dword [ebp - 0x58]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x15555555
jbe 0x4f7885
call fcn.0054a911
lea eax, [eax + eax*2]
shl eax, 2
cmp eax, 0x1000
jb 0x4f78c1
test byte [ebp - 0x40], 0x1f
je 0x4f789d
call fcn.0054a911
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x4f78a9
call fcn.0054a911
sub ebx, eax
cmp ebx, 4
jae 0x4f78b5
call fcn.0054a911
cmp ebx, 0x23
jbe 0x4f78bf
call fcn.0054a911
mov ebx, eax
push ebx
call fcn.0053f797
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053f778
mov esp, ebp
pop ebp
ret 4