Function at 0x1005f390
Capabilities:
Send data
Send data on socket

Disassembly:
mov r11, rsp
sub rsp, 0x978
mov rax, qword [0x100b4478]
xor rax, rsp
mov qword [rsp + 0x950], rax
mov qword [r11 + 0x18], rbp
mov qword [r11 - 8], rdi
xor edx, edx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov r13, rcx
lea rcx, [rsp + 0x51]
lea r8d, [rdx + 0x7f]
mov byte [rsp + 0x50], 0
call fcn.10025bb0
xor edx, edx
lea rcx, [rsp + 0xd1]
lea r8d, [rdx + 0x7f]
mov byte [rsp + 0xd0], 0
call fcn.10025bb0
mov rbp, qword [r13]
mov edx, reloc.WLDAP32.dll_Ordinal_60
mov rdi, qword [rbp + 0x208]
mov rcx, rbp
mov r9, qword [rdi + 0x1ec0]
lea r8, [rdi + 0x1cb8]
sub r9, qword [rdi + 0x1eb8]
add r9, 2
call fcn.1005ecd0
mov rax, qword [rdi + 0x1eb8]
movzx ecx, byte [rax]
add rax, 1
cmp ecx, 0x18
mov qword [rdi + 0x1eb8], rax
je 0x1005f652
cmp ecx, 0x23
je 0x1005f5ca
cmp ecx, 0x27
jne 0x1005f708
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ecx
mov r12d, 0x800
lea rcx, [rsp + 0x150]
lea r8, str._c_c_c_c
mov r9d, 0xff
mov rdx, r12
mov qword [rsp + 0x988], rbx
mov dword [rsp + 0x20], 0xfa
mov qword [rsp + 0x998], rsi
call fcn.1006e680
mov rbx, qword [rdi + 0x1cb0]
test rbx, rbx
mov esi, 4
je 0x1005f53d
nop
mov r10, qword [rbx]
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, r10
repne scasb al, byte [rdi]
not rcx
lea rdi, [rsi + rcx]
cmp rdi, 0x7fa
jae 0x1005f530
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0x50]
lea rdx, str._127_____127s
mov rcx, r10
call fcn.100228e0
test eax, eax
je 0x1005f530
lea rax, [rsp + 0xd0]
mov rdx, r12
lea rcx, [rsp + rsi + 0x150]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
lea r8, str._c_s_c_s
sub rdx, rsi
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call fcn.1006e680
mov rsi, rdi
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1005f4b0
sub r12, rsi
lea rcx, [rsp + rsi + 0x150]
lea r8, [0x1008f288]
mov r9d, 0xff
mov rdx, r12
mov dword [rsp + 0x20], 0xf0
call fcn.1006e680
mov rcx, qword [r13 + 0x238]
lea r8d, [rsi + 2]
lea rdx, [rsp + 0x150]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov rbx, qword [rsp + 0x988]
test eax, eax
jns 0x1005f5a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1004b840
lea r8, [rsp + 0x152]
mov r9, rsi
mov edx, 0x3e
mov rcx, rbp
call fcn.1005ecd0
mov rsi, qword [rsp + 0x998]
jmp 0x1005f708
lea rdx, [rdi + 0x1c28]
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x38], rdx
xor eax, eax
mov rdi, rdx
mov qword [rsp + 0x30], rax
mov rcx, 0xffffffffffffffff
lea r8, str._c_c_c_c_s_c_c
repne scasb al, byte [rdi]
mov r9d, 0xff
mov edx, 0x800
not rcx
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_35
mov dword [rsp + 0x20], 0xfa
lea rdi, [rcx - 1]
lea rcx, [rsp + 0x150]
call fcn.1006e680
mov rcx, qword [r13 + 0x238]
lea r8d, [rdi + 6]
lea rdx, [rsp + 0x150]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jmp 0x1005f6d5
lea rdx, [rdi + 0x1c08]
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x38], rdx
xor eax, eax
mov rdi, rdx
mov qword [rsp + 0x30], rax
mov rcx, 0xffffffffffffffff
lea r8, str._c_c_c_c_s_c_c
repne scasb al, byte [rdi]
mov r9d, 0xff
mov edx, 0x800
not rcx
mov dword [rsp + 0x28], Ordinal_30
mov dword [rsp + 0x20], 0xfa
lea rdi, [rcx - 1]
lea rcx, [rsp + 0x150]
call fcn.1006e680
mov rcx, qword [r13 + 0x238]
lea r8d, [rdi + 6]
lea rdx, [rsp + 0x150]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1005f6ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1004b840
lea r9, [rdi + 4]
lea r8, [rsp + 0x152]
mov edx, 0x3e
mov rcx, rbp
call fcn.1005ecd0
mov r13, qword [rsp + 0x960]
mov r12, qword [rsp + 0x968]
mov rdi, qword [rsp + 0x970]
mov rbp, qword [rsp + 0x990]
mov rcx, qword [rsp + 0x950]
xor rcx, rsp
call fcn.10021bf0
add rsp, 0x978
ret