Function at 0x5aa5a0
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 0x5aa456
mov edi, eax
test esi, esi
jle 0x5aa430
mov edx, ebx
mov esi, ebx
xor ebx, ebx
mov dword [esp + 0x30], edx
jmp 0x5aa038
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov edx, ebx
call fcn.005ab4f0
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 0x5aa060
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.005abc00
mov ecx, eax
cmp eax, ebx
jne 0x5aa008
mov dword [esi], ebx
jmp 0x5aa01d
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 0x5aa44e
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 0x5aa30c
mov eax, dword [esp + 0x3c]
sub eax, 2
cmp eax, 6
jbe 0x5aa468
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 0x5aa0d0
mov esi, dword [esp + 0x30]
mov ecx, esi
and ecx, 0xfffffff8
mov dword [esp + 0x38], ecx
mov eax, ecx
cmp ecx, esi
je 0x5aa460
vzeroupper
mov esi, dword [esp + 0x30]
sub esi, eax
lea ecx, [esi - 1]
mov dword [esp + 0x28], esi
cmp ecx, 2
jbe 0x5aa1aa
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 0x5aa30c
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 0x5aa275
mov eax, dword [esp + 0x30]
cmp ecx, eax
jg 0x5aa275
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 0x5aa370
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 0x5aa30c
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 0x5aa30c
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 0x5aa330
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_free
xor eax, eax
mov edx, dword [esp + 0x4c]
sub edx, dword [0xd3f044]
jne 0x5aa477
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 0x5aa408
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 0x5aa275
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 0x5aa275
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 0x5aa33f
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, 0xffffffeb
jmp 0x5aa351
vzeroupper
jmp 0x5aa30c
mov dword [esp + 0x38], 0
xor eax, eax
jmp 0x5aa13f
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 0x5aa587
lea esi, [esp + 0x20]
mov ecx, 0x116
cmp dword [ebx + 0x14], 1
mov edi, esi
rep stosd dword es:[edi], eax
jne 0x5aa568
mov ebp, dword [ebx + 0x58]
test ebp, ebp
js 0x5aa568
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.005912f0
mov edi, eax
test eax, eax
jne 0x5aa580
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.0058ffc0
test eax, eax
je 0x5aa570
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.00590990
test eax, eax
je 0x5aa570
movzx eax, word [esp + 0x56]
test eax, eax
jne 0x5aa548
mov eax, dword [esp + 0x47c]
sub eax, dword [0xd3f044]
jne 0x5aa58e
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 0x5aa527
mov edi, 0xfffffffd
jmp 0x5aa527
mov edi, 0xffffffed
jmp 0x5aa527
mov edi, 0xffffffef
jmp 0x5aa527
mov edi, 0xffffffff
jmp 0x5aa527
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 0x5aa5b0
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 0x5aa6c4
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 0x5aa6ba
mov eax, dword [esp + 0x44]
mov dword [edi + 0x4e00c], eax
mov dword [esp], esi
mov dword [esp + 4], 0xd35bb2
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
jne 0x5aa664
jmp 0x5aa6ce
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.005ab050
test eax, eax
js 0x5aa6b0
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 0x5aa650
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x1004c]
sub eax, dword [0xd3f044]
jne 0x5aa6d8
mov eax, dword [esp + 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], 0xfffffff8
jmp 0x5aa684
mov dword [esp + 0x1c], 0xfffffffd
jmp 0x5aa68c
mov dword [esp + 0x1c], 0xffffffff
jmp 0x5aa68c
mov dword [esp + 0x1c], 0xfffffff0
jmp 0x5aa68c
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 0x5aa720
mov ecx, dword [edx + 0xa0]
mov ebx, dword [edx + 0xa4]
mov eax, dword [esp + 0xc]
sub eax, dword [0xd3f044]
jne 0x5aa726
add esp, 0x18
mov edx, ebx
mov eax, ecx
pop ebx
ret
xor ecx, ecx
xor ebx, ebx
jmp 0x5aa703
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 0x5aa75a
mov eax, dword [eax + 0x58]
mov edx, dword [esp + 0xc]
sub edx, dword [0xd3f044]
jne 0x5aa761
add esp, 0x1c
ret
mov eax, 0xffffffff
jmp 0x5aa74a
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 0x5aa7cb
mov edx, dword [eax + 0x58]
test edx, edx
js 0x5aa7c4
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 0x5aa7d2
add esp, 0x28
pop ebx
ret
mov eax, 0xfffffff6
jmp 0x5aa7b3
mov eax, 0xffffffff
jmp 0x5aa7b3
call fcn.00401690
nop
nop
nop
nop
nop
nop
nop
nop
nop