Function at 0x140004184
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1120]
mov eax, 0x1220
call fcn.140022100
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1250], rbx
mov qword [rsp + 0x1258], rsi
mov rax, qword [0x140035010]
xor rax, rsp
mov qword [rbp + 0x1110], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
and dword [rsp + 0x40], 0
call fcn.140005e30
mov rcx, rax
test rax, rax
je 0x140004514
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x14002dd80]
movdqu xmmword [rsp + 0x70], xmm1
mov byte [rsp + 0x60], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400042d6
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140005408
mov dword [rsp + 0x40], 1
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000429f
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
mov esi, 0x1000
cmp rdx, rsi
jb 0x14000429a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000451f
call fcn.14000f3f4
movdqa xmm0, xmmword [0x14002dd80]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400044e4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
or cl, ch
invalid
add al, byte [rax]
invalid
lea rcx, [rbp - 0x60]
call fcn.140004140
and dword [rsp + 0x44], 0
mov esi, 0x1000
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x110]
call fcn.140010f90
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, esi
lea rdx, [rbp + 0x110]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000446d
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14000433d
mov r8d, eax
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x60]
call fcn.140004dcc
jmp 0x1400042fa
test r14, r14
je 0x14000434b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140004e80
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005220
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14000439e
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, rsi
jb 0x140004399
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004525
call fcn.14000f3f4
movdqa xmm0, xmmword [0x14002dd80]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rbp]
call fcn.1400054c4
nop
mov rbx, qword [rax]
test rbx, rbx
jne 0x1400043d6
xor eax, eax
jmp 0x1400043de
mov rcx, rbx
call fcn.140013a94
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140005790
nop
lea rax, [rbp + 8]
mov rcx, qword [rbp]
cmp rcx, rax
je 0x140004401
call fcn.1400139ac
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140005408
mov dword [rsp + 0x40], 1
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000444f
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, rsi
jb 0x14000444a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000452b
call fcn.14000f3f4
movdqa xmm0, xmmword [0x14002dd80]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
jmp 0x1400044ce
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140005408
mov dword [rsp + 0x40], 1
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1400044b7
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, rsi
jb 0x1400044b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000450e
call fcn.14000f3f4
movdqa xmm0, xmmword [0x14002dd80]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400044e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, rdi
mov rcx, qword [rbp + 0x1110]
xor rcx, rsp
call fcn.14000f3d0
lea r11, [rsp + 0x1220]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140013934
nop
mov ecx, 0x80004005
call fcn.140005bc4
nop
call fcn.140013934
nop
call fcn.140013934
nop
call fcn.140013934
int3