Function at 0x140074850
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 + 0x42e8], rbx
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x4180], rax
mov rdi, r8
mov rbx, rdx
mov r14, rcx
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
mov r8, rdi
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
or r12, 0xffffffffffffffff
cmp rax, r12
jne 0x14007493b
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
je 0x140074bc5
test eax, eax
je 0x140074bc5
mov r13d, dword [rsp + 0x70]
lea ecx, [r13 + 9]
mov edx, 1
call fcn.1400d8794
mov rsi, rax
test rax, rax
je 0x140074a1d
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 + 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 rcx, str.SendFileR:_send_file_name_and_lenth_n
call fcn.1400d8d08
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
jne 0x140074a2d
mov rcx, rsi
call fcn.1400d6134
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140074bd3
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 0x140074a15
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 0x140074aec
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 0x140074ae5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor eax, eax
jmp 0x140074bd3
lea rcx, str.SendFileR:_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 0x140074a15
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 0x140074a15
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 0x140074bb1
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 0x140074aca
lea rcx, str.SendFileR:_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
mov rcx, qword [rbp + 0x4180]
xor rcx, rsp
call fcn.1400d4d90
mov rbx, qword [rsp + 0x42e8]
add rsp, 0x4290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret