Function at 0x140062210
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3c8]
sub rsp, 0x488
movaps xmmword [rax - 0x58], xmm6
mov r13, rdx
mov eax, 0xffffffff
mov rsi, rcx
cmp rdx, rax
jg 0x140062b82
cmp r13d, 4
jb 0x140062b82
cmp dword [rcx + 0x3c0], r13d
jae 0x140062298
mov rcx, qword [rcx + 0x3b8]
test rcx, rcx
je 0x140062271
call fcn.1400b60a4
lea eax, [r13 + 0x40]
mov ecx, eax
mov dword [rsi + 0x3c0], eax
call fcn.1400b609c
mov qword [rsi + 0x3b8], rax
test rax, rax
jne 0x140062298
mov eax, 0x80040202
jmp 0x140062b87
movss xmm6, dword [0x140143aa8]
mov eax, 8
mov rbx, qword [rbp + 0x3d8]
xor r12d, r12d
cmp r13d, eax
mov ecx, r13d
cmova ecx, eax
movzx eax, byte [rbp + 0x3d8]
mov dword [rsp + 0x44], eax
mov dword [rbp + 0x3e8], ecx
jmp 0x1400622e0
mov ecx, dword [rbp + 0x3e8]
mov r13, qword [rbp + 0x3d8]
nop dword [rax + rax]
mov rdx, qword [rsi + 0x3b8]
lea r9, [rbp + 0x3e0]
mov r8d, ecx
mov dword [rbp + 0x3e0], 0
mov rcx, qword [rsi + 0x70]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140062b77
mov eax, dword [rbp + 0x3e8]
cmp dword [rbp + 0x3e0], eax
jne 0x140062b77
mov r8, qword [rsi + 0x3b8]
movzx eax, byte [r8]
lea r14, [r8 + 1]
test al, al
jns 0x140062342
mov ecx, eax
and ecx, 0x7f
jmp 0x140062391
test al, 0x40
je 0x140062352
mov ecx, eax
mov edx, 1
and ecx, 0x3f
jmp 0x140062380
test al, 0x20
je 0x140062362
mov ecx, eax
mov edx, 2
and ecx, 0x1f
jmp 0x140062380
test al, 0x10
je 0x140062b82
mov ecx, eax
mov edx, 3
and ecx, 0xf
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r14]
inc r14
shl ecx, 8
or ecx, eax
sub edx, 1
jne 0x140062380
mov edi, 0xffffffff
cmp ecx, dword [rsi + 0x2f8]
jne 0x140062b7d
cmp r13d, 8
jbe 0x1400623e6
mov rcx, qword [rsi + 0x70]
lea rdx, [r8 + 8]
xor eax, eax
lea r15d, [r13 - 8]
mov r8d, r15d
mov dword [rbp + 0x3e0], eax
lea r9, [rbp + 0x3e0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140062b77
cmp dword [rbp + 0x3e0], r15d
jne 0x140062b77
movzx eax, byte [r14 + 2]
mov r10d, r13d
add r10, qword [rsi + 0x3b8]
add r14, 3
mov qword [rsp + 0x58], r10
cmp r14, r10
jae 0x140062b6c
and al, 6
jne 0x140062422
xor r15d, r15d
sub r10d, r14d
mov dword [rbp + 0x3e0], r15d
mov dword [rsp + 0x70], r10d
jmp 0x140062612
movzx r15d, byte [r14]
lea rdx, [r14 + 1]
mov dword [rbp + 0x3e0], r15d
mov r14, rdx
cmp al, 2
jne 0x14006247d
xor r8d, r8d
test r15d, r15d
je 0x14006246f
lea rdi, [rsp + 0x70]
mov r9d, r15d
nop dword [rax + rax]
xor edx, edx
movzx ecx, byte [r14]
inc r14
add edx, ecx
cmp cl, 0xff
je 0x140062452
mov dword [rdi], edx
add r8d, edx
add rdi, 4
sub r9, 1
jne 0x140062450
mov ecx, r10d
sub ecx, r14d
sub ecx, r8d
jmp 0x140062604
cmp al, 4
jne 0x14006249e
lea ecx, [r15 + 1]
mov rax, r10
sub rax, rdx
lea rdi, [rsp + 0x70]
cqo
idiv rcx
mov eax, eax
rep stosd dword [rdi], eax
jmp 0x140062609
xor r9d, r9d
xor edx, edx
test r15d, r15d
je 0x1400625fb
lea r8, [rsp + 0x70]
movabs rsi, 0x1ffffffffff
movabs r13, 0x3ffffffff
movabs r10, 0xffffffffffff
nop
movzx ecx, byte [r14]
inc r14
test cl, cl
jns 0x1400624e7
mov ebx, ecx
and ebx, 0x7f
xor edi, edi
jmp 0x140062573
test cl, 0x40
je 0x1400624f9
mov rbx, rcx
mov edi, 1
and ebx, 0x3f
jmp 0x140062560
test cl, 0x20
je 0x14006250b
mov rbx, rcx
mov edi, 2
and ebx, 0x1f
jmp 0x140062560
test cl, 0x10
je 0x14006251d
mov rbx, rcx
mov edi, 3
and ebx, 0xf
jmp 0x140062560
test cl, 8
je 0x14006252f
mov rbx, rcx
mov edi, 4
and ebx, 7
jmp 0x140062560
test cl, 4
je 0x140062541
mov rbx, rcx
mov edi, 5
and ebx, 3
jmp 0x140062560
test cl, 2
je 0x140062553
mov rbx, rcx
mov edi, 6
and ebx, 1
jmp 0x140062560
test edi, edi
je 0x140062573
nop word [rax + rax]
movzx eax, byte [r14]
inc r14
shl rbx, 8
or rbx, rax
sub edi, 1
jne 0x140062560
dec edi
test edx, edx
je 0x1400625ce
test cl, cl
jns 0x140062583
sub rbx, 0x3f
jmp 0x1400625c9
test cl, 0x40
je 0x140062591
sub rbx, 0x1fff
jmp 0x1400625c9
test cl, 0x20
je 0x14006259f
sub rbx, 0xfffff
jmp 0x1400625c9
test cl, 0x10
je 0x1400625ad
sub rbx, 0x7ffffff
jmp 0x1400625c9
test cl, 8
je 0x1400625b7
sub rbx, r13
jmp 0x1400625c9
test cl, 4
je 0x1400625c1
sub rbx, rsi
jmp 0x1400625c9
test cl, 2
je 0x1400625c9
sub rbx, r10
add rbx, qword [rsp + 0x68]
mov dword [r8], ebx
add r9d, ebx
add r8, 4
mov qword [rsp + 0x68], rbx
inc edx
cmp edx, r15d
jb 0x1400624d0
mov rsi, qword [rbp + 0x3d0]
mov r10, qword [rsp + 0x58]
mov r13, qword [rbp + 0x3d8]
mov ecx, r10d
sub ecx, r14d
sub ecx, r9d
mov dword [rsp + r15*4 + 0x70], ecx
cmp r14, r10
jae 0x140062b6c
cmp byte [rsi + 0x2d1], 0
movzx ecx, byte [rsi + 0x358]
je 0x14006277f
sub ecx, 1
je 0x140062696
sub ecx, 1
je 0x140062677
sub ecx, 2
je 0x14006266d
sub ecx, 1
je 0x14006264d
cmp ecx, 5
jne 0x140062b65
mov dword [rsp + 0x48], 0x400
jmp 0x1400626c8
movzx ecx, byte [r14 + 4]
movzx eax, byte [r14 + 5]
and ecx, 1
shl ecx, 6
shr eax, 2
or ecx, eax
inc ecx
shl ecx, 5
mov dword [rsp + 0x48], ecx
jmp 0x1400626c8
mov dword [rsp + 0x48], 0x600
jmp 0x1400626c8
movzx r9d, byte [rsi + 0x359]
mov r8d, r9d
and r8d, 0x3f
shr r9b, 7
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x4c], r8d
jmp 0x1400626d2
movzx eax, byte [rsi + 0x359]
cmp al, 1
jne 0x1400626ab
mov dword [rsp + 0x48], 0x180
jmp 0x1400626c8
cmp al, 3
jne 0x1400626c0
comiss xmm6, dword [rsi + 0x36c]
mov dword [rsp + 0x48], 0x240
ja 0x1400626c8
mov dword [rsp + 0x48], 0x480
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x4c]
xor edi, edi
lea r13, [rsp + 0x70]
mov dword [rsp + 0x40], edi
nop dword [rax]
cmp byte [rsi + 0x358], 2
mov r15d, dword [r13]
jne 0x14006272c
mov edi, dword [rsi + 0x20]
xor edx, edx
mov ecx, edi
mov eax, r15d
imul ecx, r8d
div ecx
mov dword [rsp + 0x48], eax
cmp r8d, 1
jne 0x140062716
imul edi, eax
mov rcx, r14
mov edx, edi
call fcn.1400289d0
jmp 0x140062728
test r9b, r9b
je 0x140062728
imul edi, eax
mov rcx, r14
mov edx, edi
call fcn.140028930
mov edi, dword [rsp + 0x40]
mov rcx, qword [rsi + 0x10]
mov r8d, r15d
mov r9d, dword [rsp + 0x48]
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ecx, eax
mov r12d, eax
shr ecx, 0x1f
test cl, cl
mov ecx, dword [rbp + 0x3e8]
jne 0x1400622d1
mov r8d, dword [rsp + 0x4c]
inc edi
mov r9d, dword [rsp + 0x44]
add r14, r15
add r13, 4
mov dword [rsp + 0x40], edi
cmp edi, dword [rbp + 0x3e0]
jbe 0x1400626e0
jmp 0x1400622d1
sub ecx, 1
je 0x140062aca
sub ecx, 1
je 0x140062936
sub ecx, 4
je 0x14006288b
cmp ecx, 4
mov ecx, dword [rbp + 0x3e8]
jne 0x1400622e0
mov ecx, dword [rbp + 0x3e0]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 0
mov r13d, dword [rax]
mov r15, r14
movzx edi, r13b
test r13b, r13b
je 0x140062863
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rsi + 0x2c]
lea r8, [rsp + 0x40]
mov rdx, qword [rsi + 0x2b0]
mov r9, r15
mov rcx, qword [rsi + 0x398]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
call fcn.14003e5d0
mov r12d, eax
shr eax, 0x1f
test al, al
jne 0x140062b7d
mov ecx, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x40]
add r15, rcx
sub dil, cl
test r8d, r8d
je 0x140062854
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x2b0]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r12d, eax
shr eax, 0x1f
test al, al
jne 0x140062b7d
jmp 0x140062858
test ecx, ecx
je 0x14006285d
test dil, dil
jne 0x1400627e0
mov ecx, dword [rbp + 0x3e0]
mov edi, dword [rsp + 0x50]
add r14, r13
mov rax, qword [rsp + 0x58]
inc edi
add rax, 4
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x58], rax
cmp edi, ecx
jbe 0x1400627c1
jmp 0x1400622cb
mov dword [rsp + 0x40], 0
lea r15, [rsp + 0x70]
xor edi, edi
nop word [rax + rax]
mov r13d, dword [r15]
lea r8, [rsp + 0x40]
mov r9d, dword [rsi + 0x2c]
mov rdx, qword [rsi + 0x2b0]
mov rcx, qword [rsi + 0x398]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r14
call fcn.1400479c0
mov r12d, eax
shr eax, 0x1f
test al, al
jne 0x140062b7d
mov r8d, dword [rsp + 0x40]
lea eax, [r8 + 0x800]
cmp eax, dword [rsi + 0x2c]
ja 0x1400628f5
test r8d, r8d
je 0x14006291c
cmp edi, dword [rbp + 0x3e0]
jne 0x14006291c
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x2b0]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r12d, eax
shr eax, 0x1f
test al, al
jne 0x140062b7d
mov dword [rsp + 0x40], 0
add r14, r13
inc edi
add r15, 4
cmp edi, dword [rbp + 0x3e0]
jbe 0x1400628a0
jmp 0x1400622cb
movzx eax, byte [rsi + 0x359]
xor r9d, r9d
mov r11d, eax
xor edx, edx
shr al, 7
and r11d, 0x3f
mov dword [rsp + 0x50], eax
lea eax, [r15 + 1]
cmp eax, 8
jb 0x1400629b9
and eax, 7
mov edi, r15d
sub edi, eax
xorps xmm2, xmm2
xorps xmm1, xmm1
nop word [rax + rax]
movdqu xmm0, xmmword [rsp + rdx*4 + 0x70]
lea eax, [rdx + 4]
add edx, 8
paddd xmm0, xmm2
movdqa xmm2, xmm0
movdqu xmm0, xmmword [rsp + rax*4 + 0x70]
paddd xmm0, xmm1
movdqa xmm1, xmm0
cmp edx, edi
jbe 0x140062970
paddd xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd r9d, xmm1
xor edi, edi
xor r8d, r8d
cmp edx, r15d
ja 0x140062a05
mov eax, r15d
sub eax, edx
inc eax
cmp eax, 2
jb 0x1400629f9
lea r10d, [r15 - 1]
nop dword [rax]
nop word [rax + rax]
add edi, dword [rsp + rdx*4 + 0x70]
lea eax, [rdx + 1]
add r8d, dword [rsp + rax*4 + 0x70]
add edx, 2
cmp edx, r10d
jbe 0x1400629e0
cmp edx, r15d
ja 0x1400629fe
add r9d, dword [rsp + rdx*4 + 0x70]
lea ecx, [rdi + r8]
add r9d, ecx
mov ecx, dword [rbp + 0x3e8]
xor edx, edx
mov r13d, r11d
mov eax, r9d
imul r13d, dword [rsi + 0x20]
div r13d
mov r15d, eax
test eax, eax
je 0x1400622d1
cmp r11d, 1
lea rax, [rsi + 0x58]
sete byte [rbp + 0x3e0]
nop word [rax + rax]
cmp r15d, dword [rsi + 0x2c]
mov edi, r15d
mov edx, 2
mov rcx, rax
cmovae edi, dword [rsi + 0x2c]
sub r15d, edi
call fcn.140025da0
mov ecx, dword [rsp + 0x50]
xor r9d, r9d
mov r8d, dword [rsi + 0x20]
mov rdx, r14
mov byte [rsp + 0x38], cl
movzx ecx, byte [rbp + 0x3e0]
mov byte [rsp + 0x30], cl
mov rcx, qword [rsi + 0x2b0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call fcn.1400266e0
mov rcx, qword [rsi + 0x10]
mov r8d, edi
mov rdx, qword [rsi + 0x2b0]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r12d, eax
shr eax, 0x1f
test al, al
jne 0x140062b7d
imul edi, r13d
mov eax, edi
add r14, rax
lea rax, [rsi + 0x58]
test r15d, r15d
jne 0x140062a40
jmp 0x1400622cb
xor r13d, r13d
lea r15, [rsp + 0x70]
mov r8d, dword [r15]
mov rdx, r14
mov rcx, qword [rsi + 0x398]
call fcn.140045ba0
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rsi + 0x20]
xor r9d, r9d
mov rdx, qword [rsi + 0x2b0]
mov rcx, qword [rsi + 0x3a0]
mov qword [rsp + 0x20], 0
call fcn.14003f330
test eax, eax
je 0x140062b35
mov rcx, qword [rsi + 0x10]
mov r8d, eax
mov rdx, qword [rsi + 0x2b0]
mov rdi, qword [rcx]
call qword [rdi + reloc.WSOCK32.dll_recv]
mov r12d, eax
shr eax, 0x1f
test al, al
jne 0x140062b7d
mov rcx, qword [rsi + 0x398]
mov rax, qword [rcx]
call qword [rax + 0x30]
test al, al
je 0x140062af0
mov eax, dword [r15]
inc r13d
add r14, rax
add r15, 4
cmp r13d, dword [rbp + 0x3e0]
jbe 0x140062ad2
jmp 0x1400622cb
mov eax, 0x80040207
jmp 0x140062b87
mov r12d, 0x8004020d
mov eax, r12d
jmp 0x140062b87
mov r12d, 0x80040205
mov eax, r12d
jmp 0x140062b87
mov eax, 0x8004020d
movaps xmm6, xmmword [rsp + 0x470]
add rsp, 0x488
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret