Function at 0x180001db0
Capabilities:
Read file on windows

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
mov r12, rdx
mov rbp, rcx
xor r13d, r13d
nop
lea rdx, [0x180031070]
mov rcx, qword [0x18003a0f8]
call fcn.180010ea4
mov rbx, rax
test rax, rax
je 0x180001fc6
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call fcn.1800121dc
mov rcx, rbx
call fcn.180011d6c
mov edi, eax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1800121dc
lea ecx, [rdi + 1]
call fcn.18000fddc
mov rsi, rax
mov r8d, edi
mov byte [rdi + rax], 0
mov r9, rbx
mov edx, 1
mov rcx, rax
call fcn.180011b94
mov rcx, rbx
call fcn.18001118c
test rsi, rsi
je 0x180001fc6
mov rbx, r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
test edi, edi
je 0x180001e88
lea r9, [rsp + 0x28]
lea r8, [0x180030d98]
mov edx, edi
mov rcx, rsi
call fcn.18000b9a0
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.18001010c
mov r11, qword [rsp + 0x30]
sub r11, rbx
and r11, 0xfffffffffffffff8
cmp r11, 0x10
jne 0x180001f83
mov rdx, qword [rbx]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp]
sub rdi, 0x18
cmp rcx, rdi
je 0x180001f05
cmp dword [rdi + 0x10], 0
jl 0x180001ef9
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x180001ef9
call fcn.1800013c0
mov rbx, rax
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x180001eea
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lea rax, [rbx + 0x18]
mov qword [rbp], rax
mov rbx, qword [rsp + 0x28]
jmp 0x180001f05
mov r8d, dword [rdx - 0x10]
mov rcx, rbp
call fcn.180001590
mov rdx, qword [rbx + 8]
lea rcx, [rdx - 0x18]
mov rdi, qword [r12]
sub rdi, 0x18
cmp rcx, rdi
je 0x180001f65
cmp dword [rdi + 0x10], 0
jl 0x180001f59
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x180001f59
call fcn.1800013c0
mov rbx, rax
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x180001f4a
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lea rax, [rbx + 0x18]
mov qword [r12], rax
mov rbx, qword [rsp + 0x28]
jmp 0x180001f65
mov r8d, dword [rdx - 0x10]
mov rcx, r12
call fcn.180001590
xor edx, edx
mov rcx, qword [rbp]
call fcn.1800109ec
test eax, eax
jne 0x180001f83
xor edx, edx
mov rcx, qword [r12]
call fcn.1800109ec
test eax, eax
je 0x180001fd6
test rbx, rbx
je 0x180001fc6
cmp rbx, qword [rsp + 0x30]
je 0x180001fbe
nop
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180001fae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
add rbx, 8
cmp rbx, qword [rsp + 0x30]
jne 0x180001f90
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.18001010c
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180001de0
cmp rbx, qword [rsp + 0x30]
je 0x18000200f
nop dword [rax]
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180001fff
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
add rbx, 8
cmp rbx, qword [rsp + 0x30]
jne 0x180001fe0
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.18001010c
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
ret