Function at 0x140004df0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x200
mov rax, qword [0x14001d008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbx, r8
mov ebp, edx
mov r14, rcx
cmp edx, 0xffffffff
jl 0x14000535d
mov rcx, qword [rcx]
cmp edx, dword [rcx + 8]
jge 0x14000535d
cmp dword [r14 + 8], 0xffffffff
je 0x140004e37
call fcn.140004cc0
mov qword [rsp + 0x228], rsi
mov dword [r14 + 8], 0xffffffff
cmp ebp, dword [r14 + 0x138]
jne 0x140004edc
cmp ebp, 0xffffffff
je 0x140004ee1
lea rcx, [r14 + 0xc]
mov eax, 2
lea rbx, [rbx + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rbx - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rbx - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rbx - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rbx - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rbx - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rbx - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rbx - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rbx - 0x10], xmm1
sub rax, 1
jne 0x140004e66
movups xmm0, xmmword [rcx]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov rax, qword [rcx + 0x20]
mov qword [rbx + 0x20], rax
mov eax, dword [rcx + 0x28]
mov dword [rbx + 0x28], eax
xor eax, eax
jmp 0x1400050f9
cmp ebp, 0xffffffff
jne 0x140004f18
mov rax, qword [r14]
xor esi, esi
mov ecx, dword [rax + 8]
xor eax, eax
mov dword [rbx], ecx
mov byte [rbx + 4], 0
mov qword [rbx + 0x108], rsi
mov dword [rbx + 0x128], esi
mov qword [rbx + 0x110], rsi
mov qword [rbx + 0x118], rsi
mov qword [rbx + 0x120], rsi
jmp 0x1400050f9
mov rcx, qword [r14]
xor esi, esi
mov qword [rsp + 0x1f8], rdi
cmp dword [rcx + 0x14], ebp
jle 0x140004f5f
mov rdi, rcx
test rcx, rcx
je 0x140004f5c
mov eax, dword [rcx + 0x28]
lea r8, [rcx + 0x7c]
lea rdx, [rcx + 0x2c]
mov dword [rcx + 0x18], eax
xor r9d, r9d
mov dword [rcx + 0x14], esi
mov dword [rsp + 0x20], esi
call fcn.140004190
mov ecx, esi
test eax, eax
sete cl
mov dword [rdi + 0x1c], ecx
mov rcx, qword [r14]
cmp dword [rcx + 0x14], ebp
jge 0x140004fb5
mov rdi, rcx
test rcx, rcx
je 0x140004fb0
cmp dword [rcx + 0x1c], esi
je 0x140004fb0
mov edx, dword [rcx + 0x14]
inc edx
cmp edx, dword [rcx + 8]
je 0x140004fb0
mov ecx, dword [rcx + 0x54]
lea r8, [rdi + 0x7c]
add ecx, dword [rdi + 0x50]
xor r9d, r9d
mov eax, dword [rdi + 0x4c]
add eax, 0x2e
mov dword [rdi + 0x14], edx
add ecx, eax
mov dword [rsp + 0x20], esi
add dword [rdi + 0x18], ecx
lea rdx, [rdi + 0x2c]
mov rcx, rdi
call fcn.140004190
mov ecx, esi
test eax, eax
sete cl
mov dword [rdi + 0x1c], ecx
mov rcx, qword [r14]
cmp dword [rcx + 0x14], ebp
jl 0x140004f61
lea r9, [rsp + 0xc0]
mov dword [rsp + 0x20], 0x104
xor r8d, r8d
lea rdx, [rsp + 0x60]
call fcn.140004190
mov rcx, qword [r14]
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x54]
call fcn.140004700
test eax, eax
je 0x140004ffa
mov eax, 0x700
jmp 0x1400050f1
mov rax, qword [r14]
mov rcx, qword [rax]
cmp byte [rcx], sil
je 0x14000502e
cmp byte [rcx + 1], sil
je 0x140005024
mov edx, dword [rcx + 0x14]
xor r9d, r9d
add edx, dword [rsp + 0x50]
xor r8d, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140005035
mov eax, 0x800
jmp 0x1400050f1
mov eax, dword [rsp + 0x50]
mov dword [rcx + 0x24], eax
mov qword [rsp + 0x1f0], r12
mov r12d, dword [rsp + 0xb0]
mov ecx, r12d
mov qword [rsp + 0x1e8], r13
mov qword [rsp + 0x1e0], r15
call fcn.140005df8
mov rcx, qword [r14]
mov rdi, rax
mov r15, qword [rcx]
cmp byte [r15], sil
je 0x14000509b
mov rcx, qword [r15 + 8]
lea r9, [rsp + 0xb0]
mov r8d, r12d
mov qword [rsp + 0x20], rsi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140005091
mov byte [r15 + 0x10], 1
mov r13d, dword [rsp + 0xb0]
jmp 0x1400050c7
mov edx, dword [r15 + 0x24]
mov ecx, dword [r15 + 0x20]
sub ecx, edx
lea eax, [r12 + rdx]
cmp eax, dword [r15 + 0x20]
cmovbe ecx, r12d
add rdx, qword [r15 + 0x18]
mov r13d, ecx
mov r8d, ecx
mov rcx, rdi
call fcn.140007840
add dword [r15 + 0x24], r13d
cmp r13, r12
mov r13, qword [rsp + 0x1e8]
je 0x14000511d
mov rcx, rdi
call fcn.140005df0
mov eax, 0x800
mov r12, qword [rsp + 0x1f0]
mov r15, qword [rsp + 0x1e0]
mov rdi, qword [rsp + 0x1f8]
mov rsi, qword [rsp + 0x228]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140005d90
add rsp, 0x200
pop r14
pop rbp
pop rbx
ret
mov rax, qword [r14]
lea rdx, [rsp + 0xc0]
mov ecx, dword [rax + 0x14]
mov rax, rbx
sub rax, rdx
mov dword [rbx], ecx
lea rcx, [rsp + 0xc0]
lea rdx, [rax + 4]
nop
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140005140
mov eax, dword [rsp + 0x94]
mov ecx, 0x80
mov r9d, eax
mov dword [rbx + 0x108], 0x80
shr r9d, 0x17
mov r8d, eax
shr r8d, 1
mov r10d, eax
shr r10d, 2
mov edx, eax
shr edx, 5
movzx r11d, al
and r9b, 1
and r8b, 1
and r10b, 1
and dl, 1
and r11b, 1
test eax, 0x40000010
je 0x1400051a6
mov ecx, 0x90
mov dword [rbx + 0x108], ecx
test dl, dl
je 0x1400051b3
or ecx, 0x20
mov dword [rbx + 0x108], ecx
test r8b, r8b
je 0x1400051c1
or ecx, 2
mov dword [rbx + 0x108], ecx
test r9b, r9b
je 0x1400051cb
test r11b, r11b
je 0x1400051d4
or ecx, 1
mov dword [rbx + 0x108], ecx
test r10b, r10b
je 0x1400051e2
or ecx, 4
mov dword [rbx + 0x108], ecx
mov eax, dword [rsp + 0x78]
lea r8, [rsp + 0xb8]
mov dword [rbx + 0x124], eax
mov eax, dword [rsp + 0x7c]
mov dword [rbx + 0x128], eax
mov eax, dword [rsp + 0x70]
mov ecx, eax
shr ecx, 0x10
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov rax, qword [rsp + 0xb8]
mov qword [rbx + 0x10c], rax
mov qword [rbx + 0x114], rax
mov qword [rbx + 0x11c], rax
cmp r12d, 4
jbe 0x1400052ce
nop word [rax + rax]
mov eax, esi
movzx edx, byte [rax + rdi]
lea eax, [rsi + 1]
cmp dl, 0x55
jne 0x140005254
cmp byte [rax + rdi], 0x54
je 0x14000526a
lea eax, [rsi + 2]
movsx eax, byte [rax + rdi]
add eax, 4
add esi, eax
lea eax, [rsi + 4]
cmp eax, r12d
jb 0x140005240
jmp 0x1400052ce
lea eax, [rsi + 4]
add esi, 5
movsx eax, byte [rax + rdi]
mov r15d, eax
mov r12d, eax
shr r12d, 1
shr r15d, 2
and r12b, 1
and r15b, 1
test al, 1
je 0x1400052a1
mov eax, esi
add esi, 4
mov ecx, dword [rax + rdi]
call fcn.140004d60
mov qword [rbx + 0x11c], rax
test r12b, r12b
je 0x1400052ba
mov eax, esi
add esi, 4
mov ecx, dword [rax + rdi]
call fcn.140004d60
mov qword [rbx + 0x10c], rax
test r15b, r15b
je 0x1400052ce
mov ecx, dword [rsi + rdi]
call fcn.140004d60
mov qword [rbx + 0x114], rax
mov rcx, rdi
call fcn.140005df0
lea rcx, [r14 + 0xc]
mov eax, 2
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x1400052e0
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
mov rax, qword [rbx + 0x20]
mov qword [rcx + 0x20], rax
mov eax, dword [rbx + 0x28]
mov dword [rcx + 0x28], eax
xor eax, eax
mov dword [r14 + 0x138], ebp
jmp 0x1400050e1
mov eax, 0x10000
jmp 0x140005101