Function at 0x5a90d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, edx
and esp, 0xffffffe0
sub esp, 0x50
mov dword [esp + 0x24], eax
mov eax, dword [0xd3f044]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 4], 8
mov dword [esp], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
call sub.msvcrt.dll_calloc
test eax, eax
je 0x5a8f86
mov edi, eax
test esi, esi
jle 0x5a8f60
mov edx, ebx
mov esi, ebx
xor ebx, ebx
mov dword [esp + 0x30], edx
jmp 0x5a8b68
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov edx, ebx
call fcn.005aa020
mov ecx, dword [esp + 0x38]
mov dword [esi], ecx
mov dword [esp], ebx
add esi, 0x18
mov dword [esp + 4], 1
call fcn.00402690
mov ebx, eax
cmp dword [esp + 0x3c], eax
je 0x5a8b90
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [edi + ebx*8], eax
mov eax, edi
mov dword [edi + ebx*8 + 4], edx
mov edx, ebx
call fcn.005aa730
mov ecx, eax
cmp eax, ebx
jne 0x5a8b38
mov dword [esi], ebx
jmp 0x5a8b4d
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov dword [esp + 4], 4
mov dword [esp], esi
mov dword [esp + 0x38], edx
call sub.msvcrt.dll_calloc
mov ebx, eax
test eax, eax
je 0x5a8f7e
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call fcn.00402690
mov edx, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x30], eax
je 0x5a8e3c
mov eax, dword [esp + 0x3c]
sub eax, 2
cmp eax, 6
jbe 0x5a8f98
mov esi, dword [esp + 0x30]
mov ecx, ebx
mov eax, edi
shr esi, 3
shl esi, 5
add esi, ebx
lea esi, [esi]
lea esi, [esi]
vmovdqu ymm3, ymmword [eax + 8]
vperm2i128 ymm0, ymm3, ymmword [eax + 0x28], 0x20
add ecx, 0x20
add eax, 0x40
vperm2i128 ymm1, ymm3, ymmword [eax - 0x18], 0x31
vmovdqu ymm5, ymmword [eax - 0x40]
vpshufd ymm0, ymm0, 0xd8
vperm2i128 ymm2, ymm5, ymmword [eax - 0x20], 0x20
vpshufd ymm1, ymm1, 0xd8
vpunpcklqdq ymm0, ymm0, ymm1
vperm2i128 ymm1, ymm5, ymmword [eax - 0x20], 0x31
vpshufd ymm2, ymm2, 0xd8
vpshufd ymm1, ymm1, 0xd8
vpunpcklqdq ymm1, ymm2, ymm1
vpsubd ymm0, ymm0, ymm1
vmovdqu ymmword [ecx - 0x20], ymm0
cmp ecx, esi
jne 0x5a8c00
mov esi, dword [esp + 0x30]
mov ecx, esi
and ecx, 0xfffffff8
mov dword [esp + 0x38], ecx
mov eax, ecx
cmp ecx, esi
je 0x5a8f90
vzeroupper
mov esi, dword [esp + 0x30]
sub esi, eax
lea ecx, [esi - 1]
mov dword [esp + 0x28], esi
cmp ecx, 2
jbe 0x5a8cda
lea ecx, [eax*8 + 8]
mov dword [esp + 0x2c], edx
lea esi, [edi + ecx]
lea ecx, [edi + ecx - 8]
vmovdqu xmm7, xmmword [esi]
vshufps xmm0, xmm7, xmmword [esi + 0x10], 0x88
mov esi, dword [esp + 0x28]
vmovdqu xmm7, xmmword [ecx]
vshufps xmm1, xmm7, xmmword [ecx + 0x10], 0x88
vpsubd xmm0, xmm0, xmm1
vmovdqu xmmword [ebx + eax*4], xmm0
mov eax, esi
and eax, 0xfffffffc
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00402690
and esi, 3
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
je 0x5a8e3c
mov esi, dword [esp + 0x38]
mov dword [esp + 0x1c], edx
mov dword [esp + 4], 1
lea eax, [esi*8]
mov dword [esp], esi
mov dword [esp + 0x2c], eax
add eax, edi
mov dword [esp + 0x18], eax
call fcn.00402690
mov dword [esp + 4], 0xfffffffe
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00402690
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
cmp ecx, eax
jge 0x5a8da5
mov eax, dword [esp + 0x30]
cmp ecx, eax
jg 0x5a8da5
mov eax, dword [esp + 0x2c]
mov edx, esi
mov ecx, dword [edi + eax + 8]
lea eax, [esi*4]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, ecx
sub eax, dword [esi]
mov esi, edx
mov dword [ebx + edx*4], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [edi + eax + 0x10]
mov dword [esp + 0x18], eax
sub eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx + ecx + 4], eax
mov dword [esp], edx
mov dword [esp + 4], 3
call fcn.00402690
cmp dword [esp + 0x20], eax
mov edx, dword [esp + 0x1c]
jg 0x5a8ea0
mov dword [esp + 0x2c], edx
mov dword [esp + 4], 2
mov dword [esp], esi
call fcn.00402690
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x38]
lea eax, [edx + 1]
lea esi, [edx*4]
lea ecx, [eax*8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + eax*8]
mov esi, ecx
sub esi, dword [edi + eax*8 - 8]
mov dword [esp + 0x1c], ecx
mov dword [ebx + edx*4], esi
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.00402690
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
cmp esi, eax
jle 0x5a8e3c
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x38]
mov eax, dword [edi + ecx + 8]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx + ecx + 4], eax
mov dword [esp], edx
mov dword [esp + 4], 2
call fcn.00402690
mov edx, dword [esp + 0x30]
cmp esi, eax
jle 0x5a8e3c
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + ecx + 0x10]
sub eax, dword [edi + ecx + 8]
mov ecx, dword [esp + 0x28]
mov dword [ebx + ecx + 8], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
sub eax, dword [edi + esi*8 - 8]
mov dword [ebx + esi*4 - 4], eax
lea eax, [esi + esi*2]
lea ecx, [ecx + eax*8]
lea esi, [esi]
nop
mov eax, dword [edx]
add edx, 0x18
mov eax, dword [ebx + eax*4]
mov dword [edx - 8], eax
cmp ecx, edx
jne 0x5a8e60
mov dword [esp], ebx
call fcn.0040f8d8
mov dword [esp], edi
call fcn.0040f8d8
xor eax, eax
mov edx, dword [esp + 0x4c]
sub edx, dword [0xd3f044]
jne 0x5a8fa7
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + edx + 0x18]
mov eax, ecx
sub eax, esi
mov esi, dword [esp + 0x28]
mov dword [ebx + esi + 8], eax
mov eax, dword [edi + edx + 0x20]
mov dword [esp + 0x18], eax
sub eax, ecx
mov dword [ebx + esi + 0xc], eax
mov esi, dword [esp + 0x38]
mov dword [esp + 4], 5
mov dword [esp], esi
call fcn.00402690
cmp dword [esp + 0x20], eax
mov edx, dword [esp + 0x1c]
jle 0x5a8f38
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
mov ecx, dword [edi + eax + 0x28]
mov eax, ecx
sub eax, edx
mov dword [ebx + esi + 0x10], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [edi + eax + 0x30]
sub eax, ecx
mov dword [ebx + esi + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], 6
mov dword [esp], eax
call fcn.00402690
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
jmp 0x5a8da5
mov dword [esp + 0x2c], edx
mov dword [esp + 4], 4
mov dword [esp], esi
call fcn.00402690
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
jmp 0x5a8da5
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov ebx, eax
test eax, eax
jne 0x5a8e6f
mov dword [esp], edi
call fcn.0040f8d8
mov eax, 0xffffffeb
jmp 0x5a8e81
vzeroupper
jmp 0x5a8e3c
mov dword [esp + 0x38], 0
xor eax, eax
jmp 0x5a8c6f
call fcn.00401690
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x48c
mov eax, dword [esp + 0x4a4]
mov ebx, dword [esp + 0x4a0]
mov dword [esp + 0x1c], eax
mov eax, dword [0xd3f044]
mov dword [esp + 0x47c], eax
xor eax, eax
test ebx, ebx
je 0x5a90b7
lea esi, [esp + 0x20]
mov ecx, 0x116
cmp dword [ebx + 0x14], 1
mov edi, esi
rep stosd dword es:[edi], eax
jne 0x5a9098
mov ebp, dword [ebx + 0x58]
test ebp, ebp
js 0x5a9098
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.0058f5c0
mov edi, eax
test eax, eax
jne 0x5a90b0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0058e290
test eax, eax
je 0x5a90a0
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.0058ec60
test eax, eax
je 0x5a90a0
movzx eax, word [esp + 0x56]
test eax, eax
jne 0x5a9078
mov eax, dword [esp + 0x47c]
sub eax, dword [0xd3f044]
jne 0x5a90be
add esp, 0x48c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll__chmod
test eax, eax
mov eax, 0xffffffec
cmovs edi, eax
jmp 0x5a9057
mov edi, 0xfffffffd
jmp 0x5a9057
mov edi, 0xffffffed
jmp 0x5a9057
mov edi, 0xffffffef
jmp 0x5a9057
mov edi, 0xffffffff
jmp 0x5a9057
call fcn.00401690
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
lea eax, [esp - 0x10000]
sub esp, 0x1000
or dword [esp], 0
cmp esp, eax
jne 0x5a90e0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [0xd3f044]
mov dword [esp + 0x1004c], eax
xor eax, eax
test edi, edi
je 0x5a91f4
lea ebx, [esp + 0x4c]
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0040f948
lea eax, [esp + 0x28]
mov dword [esp], esi
vpxor xmm0, xmm0, xmm0
mov dword [esp + 4], eax
mov dword [esp + 0x48], 0
vmovdqu xmmword [esp + 0x28], xmm0
vmovdqu xmmword [esp + 0x38], xmm0
call fcn.00402920
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x5a91ea
mov eax, dword [esp + 0x44]
mov dword [edi + 0x4e00c], eax
mov dword [esp], esi
mov dword [esp + 4], 0xd355e6
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
jne 0x5a9194
jmp 0x5a91fe
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.005a9b80
test eax, eax
js 0x5a91e0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.0040f8d0
test eax, eax
jne 0x5a9180
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x1004c]
sub eax, dword [0xd3f044]
jne 0x5a9208
mov eax, dword [esp + 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], 0xfffffff8
jmp 0x5a91b4
mov dword [esp + 0x1c], 0xfffffffd
jmp 0x5a91bc
mov dword [esp + 0x1c], 0xffffffff
jmp 0x5a91bc
mov dword [esp + 0x1c], 0xfffffff0
jmp 0x5a91bc
call fcn.00401690
nop
nop
nop
push ebx
sub esp, 0x18
mov eax, dword [0xd3f044]
mov dword [esp + 0xc], eax
xor eax, eax
mov edx, dword [esp + 0x20]
test edx, edx
je 0x5a9250
mov ecx, dword [edx + 0xa0]
mov ebx, dword [edx + 0xa4]
mov eax, dword [esp + 0xc]
sub eax, dword [0xd3f044]
jne 0x5a9256
add esp, 0x18
mov edx, ebx
mov eax, ecx
pop ebx
ret
xor ecx, ecx
xor ebx, ebx
jmp 0x5a9233
call fcn.00401690
nop
nop
nop
nop
nop
sub esp, 0x1c
mov edx, dword [0xd3f044]
mov dword [esp + 0xc], edx
xor edx, edx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5a928a
mov eax, dword [eax + 0x58]
mov edx, dword [esp + 0xc]
sub edx, dword [0xd3f044]
jne 0x5a9291
add esp, 0x1c
ret
mov eax, 0xffffffff
jmp 0x5a927a
call fcn.00401690
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
sub esp, 0x28
mov edx, dword [0xd3f044]
mov dword [esp + 0x1c], edx
xor edx, edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5a92fb
mov edx, dword [eax + 0x58]
test edx, edx
js 0x5a92f4
mov ebx, dword [eax + 0x5c]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
movzx eax, ax
movzx edx, byte [ebx + eax - 1]
cmp dl, 0x2f
sete al
cmp dl, 0x5c
sete dl
or eax, edx
movzx eax, al
mov edx, dword [esp + 0x1c]
sub edx, dword [0xd3f044]
jne 0x5a9302
add esp, 0x28
pop ebx
ret
mov eax, 0xfffffff6
jmp 0x5a92e3
mov eax, 0xffffffff
jmp 0x5a92e3
call fcn.00401690
nop
nop
nop
nop
nop
nop
nop
nop
nop