Function at 0x14005be5c
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xa8], rbx
mov rax, qword [0x1401ff510]
xor rax, rbp
mov qword [rbp + 0x48], rax
xor r14d, r14d
mov r12, r8
and dword [rbp + 8], r14d
lea r8, str..exe
mov r15, rdx
or edi, 0xffffffff
mov edx, edi
mov rbx, rcx
lea r13d, [r14 + 1]
lea r9d, [r14 + 4]
mov dword [rsp + 0x20], r13d
call fcn.14006d8fc
test eax, eax
jne 0x14005bf0f
lea rdi, [0x1402240c0]
mov r9, rbx
mov rcx, rdi
lea r8, [0x1401e0d7c]
mov edx, 0x118
call fcn.1400010e4
mov r9, rbx
lea r8, str._s.exe
mov edx, 0x1000
lea rcx, [0x1402030c0]
mov esi, eax
call fcn.1400010e4
lea r8, [0x1401d58f0]
lea rdx, [0x1402030c0]
lea rcx, [rbp]
call fcn.1401638e0
jmp 0x14005bf5c
lea r8, [0x1401d583c]
mov edx, edi
mov rcx, rbx
call fcn.14006da20
lea rdi, [0x1402240c0]
mov edx, 0x118
lea r8, [0x1401d58ec]
mov rcx, rdi
test eax, eax
jle 0x14005bf45
cdqe
lea r9, [rbx + 1]
add r9, rax
jmp 0x14005bf48
mov r9, rbx
call fcn.1400010e4
mov esi, eax
add eax, 0xfffffffc
movsxd rcx, eax
sub esi, 3
mov byte [rcx + rdi], 0x5f
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.140002c14
test eax, eax
jne 0x14005bf9a
movsxd r11, esi
lea edx, [rax + 0x30]
lea rcx, [rbp + 0x10]
lea r8, [r11 + rdi]
call fcn.140066f88
lea rcx, [r11 + 0x10]
mov edx, 5
add rcx, rdi
lea r8, str..exe
mov r9d, edx
call section..text
lea r8, [0x1401d58f0]
mov rdx, rbx
lea rcx, [rbp]
call fcn.1401638e0
mov rcx, qword [rbp]
test rcx, rcx
je 0x14005c1d3
xor r8d, r8d
mov qword [0x140202dd8], rdi
xor edx, edx
call fcn.14015f82c
mov r9, qword [rbp]
lea rdi, [0x1402030c0]
mov esi, 2
mov rcx, rdi
mov r8d, esi
mov rdx, r13
call fcn.140164cb8
movzx ecx, word [0x1402030c0]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x14005c1ca
mov rcx, qword [rbp]
lea edx, [rsi + 0x3a]
xor r8d, r8d
call fcn.14015f82c
mov r9, qword [rbp]
lea r8d, [rsi + 2]
mov rdx, r13
mov rcx, rdi
call fcn.140164cb8
mov edx, dword [0x1402030c0]
xor r8d, r8d
mov rcx, qword [rbp]
call fcn.14015f82c
mov r9, qword [rbp]
lea r8d, [rsi + 0x16]
mov rdx, r13
mov rcx, rdi
call fcn.140164cb8
cmp dword [0x1402030c0], 0x4550
jne 0x14005c1ca
movzx edx, word [0x1402030d4]
lea rax, [rdx + 0x38]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14005c079
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14015cbf0
sub rsp, rcx
mov r9d, r13d
mov r8d, 8
lea rcx, [rsp + 0x30]
call fcn.140068a9c
mov rbx, rax
mov rdx, r13
add rax, 8
mov rcx, rbx
mov r8, qword [rbx - 0x18]
mov qword [rbx], rax
mov r9, qword [rbp]
call fcn.140164cb8
movzx eax, word [rbx]
cmp eax, 0x10b
je 0x14005c0ed
cmp eax, 0x20b
je 0x14005c0d7
mov rcx, qword [rbp]
call fcn.14015f470
jmp 0x14005c1dd
mov edx, dword [rbx + 0x90]
mov rcx, qword [rbp]
test edx, edx
je 0x14005c0f5
add edx, 0xfffffff0
xor r8d, r8d
jmp 0x14005c0fd
mov edx, dword [rbx + 0x80]
jmp 0x14005c0dd
mov edx, 0xfffffff0
mov r8d, esi
call fcn.14015f82c
mov r9, qword [rbp]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r13
mov rcx, rdi
call fcn.140164cb8
lea r8, [0x1402040c0]
mov edx, 0x20
lea rcx, str.B996015880544A19B7F7E9BE44914C18
call fcn.140067094
mov rax, qword [0x1402030c0]
cmp rax, qword [0x1402040c0]
jne 0x14005c1ca
mov rax, qword [0x1402030c8]
cmp rax, qword [0x1402040c8]
jne 0x14005c1ca
mov rcx, qword [rbp]
mov r8d, r13d
mov edx, 0xffffffec
call fcn.14015f82c
mov r9, qword [rbp]
lea rcx, [rbp + 8]
mov r8d, 4
mov rdx, r13
call fcn.140164cb8
mov ecx, dword [rbp + 8]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp]
mov edx, 0xfffffffc
sub edx, eax
mov dword [rbp + 8], eax
mov r8d, r13d
call fcn.14015f82c
mov ecx, dword [rbp + 8]
xor r9d, r9d
inc ecx
xor r8d, r8d
xor edx, edx
call fcn.140068c34
movsxd r8, dword [rbp + 8]
mov rdx, r13
mov r9, qword [rbp]
mov rcx, rax
mov r14, rax
call fcn.140164cb8
movsxd rcx, dword [rbp + 8]
mov byte [rcx + r14], 0
mov rcx, qword [rbp]
call fcn.14015f470
mov eax, dword [rbp + 8]
mov qword [r15], r14
mov dword [r12], eax
mov rcx, qword [rbp + 0x48]
xor rcx, rbp
call fcn.14015c600
mov rbx, qword [rbp + 0xa8]
lea rsp, [rbp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret