Function at 0x18000f710
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1802b7c00]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
movzx r15d, dl
mov byte [rsp + 0x41], dl
mov r14, rcx
mov qword [rbp - 0x48], rcx
mov qword [rbp + 0xb0], rcx
xor r12d, r12d
mov rcx, qword [rcx + 0x10]
mov rax, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x18000f76a
mov rax, qword [r14]
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], rcx
call fcn.1801fb318
movaps xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0x20], xmm0
lea r8, [rbp + 0x20]
mov edx, eax
lea rcx, [rbp - 0x30]
call fcn.1800041b0
nop
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xc0], xmm0
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0xc0]
call fcn.180049b80
test eax, eax
jne 0x18000ff7a
lea rcx, [rbp - 0x30]
call fcn.180049030
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
mov rdi, qword [rbp + 0xc8]
mov qword [rsp + 0x50], rdi
test rdi, rdi
je 0x18000f7f0
lock inc dword [rdi + 8]
mov rdi, qword [rbp + 0xc8]
mov qword [rsp + 0x50], rdi
movaps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x100], xmm0
test rdi, rdi
je 0x18000f814
lock inc dword [rdi + 8]
mov rdi, qword [rbp + 0xc8]
mov qword [rsp + 0x50], rdi
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x170], xmm1
mov esi, 0xffffffff
test rdi, rdi
je 0x18000f873
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x18000f867
mov rbx, qword [rbp + 0xc8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18000f867
mov rdi, qword [rbp + 0xc8]
mov qword [rsp + 0x50], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x18000f873
mov rax, qword [rbp + 0xc8]
mov qword [rsp + 0x50], rax
movabs r13, 0x7fffffffffffffff
movzx ebx, byte [rsp + 0x40]
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbp + 0x100]
test rdx, rdx
je 0x18000feae
movups xmm0, xmmword [rdx]
movaps xmmword [rbp + 0x130], xmm0
movups xmm1, xmmword [rdx + 0x10]
movaps xmmword [rbp + 0x140], xmm1
add rdx, 0x20
lea rcx, [rbp + 0x150]
call fcn.1800047c0
nop
mov r8d, 3
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x130]
call fcn.180004ee0
mov rax, qword [rbp - 0x40]
mov edx, dword [rbp - 0x38]
test edx, edx
je 0x18000f8f6
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x18000ff8d
lea rcx, [rbp + 0x150]
cmp eax, 3
jne 0x18000f91d
lea rdx, [rbp + 0x30]
call fcn.1800498a0
movzx edx, r15b
lea rcx, [rbp + 0x30]
call fcn.18000f710
jmp 0x18000fe89
lea rdx, [rsp + 0x78]
call fcn.1800498a0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000f9a1
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r12
mov qword [rbp + 0xe8], r12
xor r8d, r8d
lea rdx, [0x18026f6a9]
lea rcx, [rbp + 0xd0]
call fcn.180006530
jmp 0x18000fad9
lea rdx, [rbp + 0xf0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
mov qword [rbp + 0x120], r12
mov qword [rbp + 0x128], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x110], 0
test eax, eax
jne 0x18000f9ec
mov qword [rbp + 0x120], r14
mov byte [rbp + r14 + 0x110], al
jmp 0x18000fa25
lea rcx, [rbp + 0x110]
cmp r14, 0xf
ja 0x18000fa15
mov qword [rbp + 0x120], r14
mov r8, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + r14 + 0x110], 0
jmp 0x18000fa25
mov byte [rsp + 0x20], 0
mov r9, r14
mov rdx, r14
call fcn.18004c870
lea rdx, [rbp + 0x110]
cmp qword [rbp + 0x128], 0xf
cmova rdx, qword [rbp + 0x110]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xf0]
mov r8d, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
test eax, eax
jne 0x18000fa91
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r12
mov qword [rbp + 0xe8], r12
xor r8d, r8d
lea rdx, [0x18026f6a9]
lea rcx, [rbp + 0xd0]
call fcn.180006530
jmp 0x18000facc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rbp + 0x110]
movups xmmword [rbp + 0xd0], xmm0
movups xmm1, xmmword [rbp + 0x120]
movups xmmword [rbp + 0xe0], xmm1
mov qword [rbp + 0x120], r12
mov qword [rbp + 0x128], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x110], 0
lea rcx, [rbp + 0x110]
call fcn.1800490a0
nop
lea rcx, [rsp + 0x78]
call fcn.1800490a0
nop
test r15b, r15b
je 0x18000fcc1
lea rsi, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0xf
cmova rsi, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xe0]
cmp rax, 0x14
jb 0x18000fe7c
lea r14, [rax + rsi]
lea r8, [r14 - 0x13]
sub r8, rsi
mov edx, 0x40
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x18000fe7c
nop dword [rax]
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, str.__FileFullyWritten__
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18000fb7d
inc rdi
lea r8, [r14 - 0x13]
sub r8, rdi
mov edx, 0x40
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
jne 0x18000fb40
jmp 0x18000fe7c
sub rdi, rsi
cmp rdi, 0xffffffffffffffff
je 0x18000fe7c
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
xor r8d, r8d
lea rdx, [0x18026f6a9]
lea rcx, [rsp + 0x58]
call fcn.180006530
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, str.__FileFullyWritten__
lea rcx, [rbp - 0x68]
call fcn.180006530
nop
mov rsi, qword [rbp - 0x58]
test rsi, rsi
je 0x18000fcad
mov rdi, r12
cmp qword [rbp - 0x50], 0xf
seta al
mov byte [rsp + 0x40], al
mov rbx, qword [rsp + 0x68]
nop dword [rax + rax]
lea r14, [rbp - 0x68]
test al, al
cmovne r14, qword [rbp - 0x68]
lea r13, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0xf
cmova r13, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xe0]
cmp rsi, rax
ja 0x18000fc95
sub rax, rsi
cmp rdi, rax
ja 0x18000fc95
test rsi, rsi
je 0x18000fdfa
lea r15, [rax + r13]
lea rcx, [rdi + r13]
movsx r12d, byte [r14]
lea r8, [r15 + 1]
sub r8, rcx
mov edx, r12d
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x18000fc95
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18000fdf7
inc rdi
lea r8, [r15 + 1]
sub r8, rdi
mov edx, r12d
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
jne 0x18000fc62
movzx ebx, byte [rsp + 0x40]
movzx r15d, byte [rsp + 0x41]
xor r12d, r12d
movabs r13, 0x7fffffffffffffff
lea rcx, [rbp - 0x68]
call fcn.1800490a0
nop
lea rcx, [rsp + 0x58]
call fcn.1800490a0
mov rcx, qword [0x1802c4100]
mov rax, r13
sub rax, rcx
mov rdx, qword [rbp + 0xe0]
cmp rax, rdx
jb 0x18000ff6c
lea r9, [0x1802c40f0]
cmp qword [0x1802c4108], 0xf
cmova r9, qword [0x1802c40f0]
lea rax, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0xf
cmova rax, qword [rbp + 0xd0]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [0x1802c40f0]
movzx edx, bl
lea rcx, [rbp - 0x10]
call fcn.18004d850
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rax
mov word [rsp + 0x42], 0
movdqa xmm0, xmmword [0x180288b90]
movdqu xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r12
lea r9, [rsp + 0x42]
lea r8, [rbp + 0x50]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x1a0]
call fcn.1800c1e50
nop
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x180]
call fcn.18002b330
nop
mov ecx, 0x20
call fcn.1801fc700
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 0x180]
mov rcx, rax
call fcn.18002b330
mov rdi, rax
lea rcx, [rbp + 0x180]
call fcn.1800490a0
nop
lea rcx, [rbp + 0x1a0]
call fcn.1800490a0
nop
lea rcx, [rbp - 0x10]
call fcn.1800490a0
mov qword [rbp + 0xa8], rdi
mov rdx, qword [0x1802c41d8]
cmp rdx, qword [0x1802c41e0]
je 0x18000fe3e
mov qword [rdx], rdi
add qword [0x1802c41d8], 8
jmp 0x18000fe4a
sub rdi, r13
cmp rdi, 0xffffffffffffffff
je 0x18000fc95
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova r9, qword [rsp + 0x58]
mov qword [rsp + 0x20], rbx
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp + 0xd0]
call fcn.180049100
mov rbx, qword [rsp + 0x68]
add rdi, rbx
movzx eax, byte [rsp + 0x40]
jmp 0x18000fc00
lea r8, [rbp + 0xa8]
call fcn.18004f0f0
test r15b, r15b
je 0x18000fe7c
lea rcx, [rbp + 0x150]
cmp qword [rbp + 0x168], 7
cmova rcx, qword [rbp + 0x150]
call fcn.1801fba24
mov qword [rsp + 0x48], rax
shr rax, 0x20
test eax, eax
jne 0x18000ffa1
lea rcx, [rbp + 0xd0]
call fcn.1800490a0
nop
lea rcx, [rbp + 0x150]
call fcn.180049030
lea rcx, [rbp + 0x100]
call fcn.1800050a0
test eax, eax
jne 0x18000ff72
jmp 0x18000f890
mov rcx, qword [rbp + 0x108]
mov esi, 0xffffffff
test rcx, rcx
je 0x18000fefc
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18000fef3
mov rbx, qword [rbp + 0x108]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18000fef3
mov rcx, qword [rbp + 0x108]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0xc8]
jmp 0x18000ff01
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18000ff39
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18000ff39
mov rbx, qword [rbp + 0xc8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x18000ff39
mov rcx, qword [rbp + 0xc8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp - 0x48]
call fcn.1800490a0
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1801fc6e0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800036f0
nop
mov edx, eax
call fcn.180004d20
nop
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, str.directory_iterator::directory_iterator
call fcn.180004e10
nop
lea r8, [rbp + 0x150]
lea rcx, str.directory_entry::status
call fcn.180004e10
nop
lea r8, [rbp + 0x150]
mov edx, dword [rsp + 0x4c]
lea rcx, str.remove
call fcn.180004e10
int3