Function at 0x140072fa0
Capabilities:
Get file size
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4190]
mov eax, 0x4290
call fcn.1400e2af0
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x42e0], rbx
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x4180], rax
mov rbx, rdx
mov r14, rcx
lea rcx, str.__SendFile:_prepare_n
call fcn.1400d8d08
mov byte [rbp + 0x2180], 0
xor edx, edx
mov r8d, 0x1fff
lea rcx, [rbp + 0x2181]
call fcn.1400dd9f0
mov byte [rbp + 0x180], 0
xor edx, edx
mov r8d, 0x1fff
lea rcx, [rbp + 0x181]
call fcn.1400dd9f0
xor eax, eax
or r12, 0xffffffffffffffff
mov rcx, r12
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x140073372
test rcx, rcx
je 0x14007305c
nop dword [rax + rax]
cmp word [rbx + rcx*2], 0x5c
je 0x14007305c
dec rcx
jne 0x140073050
lea r8, [rbx + rcx*2 + 2]
mov edx, 0x104
lea rcx, [rsp + 0x78]
call fcn.1400d7f70
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r15 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400730c4
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x78]
repne scasw ax, word [rdi]
not rcx
dec rcx
add ecx, ecx
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x74], r15d
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x78]
repne scasw ax, word [rdi]
not rcx
dec rcx
add ecx, ecx
mov dword [rsp + 0x70], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [rsp + 0x74], eax
cmp eax, 0xffffffff
jne 0x140073104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, r15d
mov dword [rsp + 0x74], r15d
mov r13d, dword [rsp + 0x70]
lea ecx, [r13 + 9]
mov edx, 1
call fcn.1400d8794
mov rsi, rax
test rax, rax
je 0x140073367
mov dword [rax], r13d
mov dword [rax + 4], edi
mov r8d, r13d
lea rcx, [rax + 8]
lea rdx, [rsp + 0x78]
call fcn.1400d5d30
lea edi, [r13 + r13 + 8]
mov dword [rsp + 0x46], edi
mov word [rsp + 0x40], 0x124
mov dword [rsp + 0x42], 0x20009304
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x2180], rax
movzx eax, word [rsp + 0x48]
mov word [rbp + 0x2188], ax
mov r8d, edi
mov rdx, rsi
lea rcx, [rbp + 0x218a]
call fcn.1400d5d30
lea r8d, [rdi + 0xa]
xor r9d, r9d
lea rdx, [rbp + 0x2180]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x14007335f
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x180]
call fcn.1400dd9f0
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x180]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14007335f
mov rcx, qword [rbp + 0x180]
mov qword [rsp + 0x40], rcx
movzx eax, word [rbp + 0x188]
mov word [rsp + 0x48], ax
shr rcx, 0x10
cmp ecx, 0x55aa0000
je 0x140073261
mov rcx, rsi
call fcn.1400d6134
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov r8d, dword [rsp + 0x42]
lea rdx, str.Bad_data_type._Received_type:__04Xh.
lea rcx, [rsp + 0x50]
call fcn.140016060
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x140073370
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x140073370
cmp rbx, 0xffffffffffffffff
je 0x14007335f
cmp dword [rsp + 0x74], r15d
je 0x14007335f
lea rcx, str.SendFile:_start_transmit_n
call fcn.1400d8d08
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.MSWSOCK.dll_TransmitFile]
test eax, eax
je 0x14007335f
xor r9d, r9d
lea r8d, [r9 + 0xa]
lea rdx, [rbp + 0x180]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14007335f
mov rcx, qword [rbp + 0x180]
mov qword [rsp + 0x40], rcx
movzx eax, word [rbp + 0x188]
mov word [rsp + 0x48], ax
shr rcx, 0x10
cmp ecx, 0x55aa0000
je 0x14007333b
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov r8d, dword [rsp + 0x42]
lea rdx, str.Bad_data_type._Received_type__04Xh
lea rcx, [rsp + 0x58]
call fcn.140016060
mov rcx, rsi
call fcn.1400d6134
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x58]
jmp 0x14007323d
lea rcx, str.__SendFile:_finish_transmit_n
call fcn.1400d8d08
mov rcx, rsi
call fcn.1400d6134
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140073372
mov rcx, rsi
call fcn.1400d6134
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x4180]
xor rcx, rsp
call fcn.1400d4d90
mov rbx, qword [rsp + 0x42e0]
add rsp, 0x4290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret