Function at 0x497290
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
mov r11, rsp
sub rsp, 0x138
mov rax, qword [0x005c3458]
mov qword [rsp + 0xe0], rax
mov qword [r11 - 0x10], rbp
mov rbp, qword [rdx]
mov qword [r11 - 0x18], rsi
mov rsi, rdx
mov qword [rsp + 0x38], rcx
lea rdx, [r11 + 0x20]
mov rcx, r8
mov qword [r11 - 0x40], r15
call fcn.0048bb10
test rax, rax
mov r15, rax
mov qword [rsp + 0x30], rax
jne 0x4972ec
lea eax, [r15 + 0x1b]
jmp 0x497526
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0x108], r13
mov qword [rsp + 0x100], r14
mov rdi, r15
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov r14, r15
mov r15, qword [rsp + 0x38]
not rcx
mov qword [rsp + 0x130], rbx
xor edi, edi
lea r13, [rcx - 1]
lea rdx, [0x00575754]
mov qword [rsp + 0x110], r12
nop
nop
cmp r15, qword [rsi + 0x120]
mov eax, edi
sete al
movsxd rcx, eax
cmp dword [rsi + rcx*8 + 0x12c], 2
jne 0x497362
mov rbx, 0xffffffffffffffff
jmp 0x4973c9
cmp dword [rsi + 0x218], 0
je 0x497374
mov rbx, 0xffffffffffffffff
jmp 0x4973c9
mov rcx, qword [rsi + rcx*8 + 0x118]
xor r9d, r9d
mov r8d, r13d
mov rdx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x4973c2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4973a6
mov rbx, rdi
jmp 0x4973c2
mov edx, eax
mov rcx, rsi
call fcn.0048a2b0
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.00496db0
lea rdx, [0x00575754]
cmp rbx, 0xffffffffffffffff
mov r12d, reloc.WS2_32.dll_getservbyname
cmovne r12d, edi
test r12d, r12d
jne 0x4974f0
cmp byte [rbp + 0x3a0], r12b
je 0x4974d9
cmp byte [rbp + reloc.MFC42u.dll_COleSafeArray::operator], r12b
je 0x49746d
mov rax, qword [rsi + 0xa8]
test rax, rax
je 0x49746d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea r9, str.Data
lea r8, str.__s__s__s_
lea rcx, [rsp + 0x40]
mov edx, 0xa0
call fcn.0048ae70
mov r10, qword [rbp + 0x1d0]
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
test r10, r10
not rcx
lea rdi, [rcx - 1]
je 0x497499
mov rax, qword [rbp + 0x138]
lea r9, [rcx - 1]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call r10
test eax, eax
jne 0x4974d3
mov rdi, qword [rbp + 0x1d0]
test rdi, rdi
je 0x4974d7
mov rax, qword [rbp + 0x138]
mov r9, rbx
mov r8, r14
mov edx, 4
mov rcx, rbp
mov qword [rsp + 0x20], rax
call rdi
xor edi, edi
jmp 0x4974d9
mov r9, qword [rbp + 0x130]
mov edx, 2
lea rcx, [0x00575728]
lea r8d, [rdx - 1]
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rbp + 0x130]
lea rcx, [rsp + 0x40]
mov r8d, 1
mov rdx, rdi
call qword [sym.imp.msvcrt.dll_fwrite]
jmp 0x49746d
xor edi, edi
jmp 0x4974d9
xor edi, edi
cmp rbx, r13
je 0x4974f0
sub r13, rbx
lea rdx, [0x00575754]
add r14, rbx
jmp 0x497340
mov rcx, qword [rsp + 0x30]
call qword [sub.msvcrt.dll_free]
mov r14, qword [rsp + 0x100]
mov r13, qword [rsp + 0x108]
mov rdi, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x130]
mov eax, r12d
mov r12, qword [rsp + 0x110]
mov r15, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0x120]
mov rbp, qword [rsp + 0x128]
mov rcx, qword [rsp + 0xe0]
call fcn.005555b0
add rsp, 0x138
ret