Function at 0x140033190
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x800]
sub rsp, 0x900
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x958], rbx
mov rax, qword [0x140121ef0]
xor rax, rsp
mov qword [rbp + 0x7f0], rax
mov r12, r8
mov qword [rbp - 0x70], r8
mov r14, rdx
mov r15, rcx
mov dword [r8], 0
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400331e4
test rax, rax
jne 0x140033201
mov dword [r8], 0x2af9
xor eax, eax
jmp 0x140033870
xor ebx, ebx
lea r13, [rcx + 0x110]
mov qword [rsp + 0x48], r13
mov rsi, qword [r13]
mov rdi, qword [rsi + 8]
cmp byte [rdi + 0x19], bl
jne 0x140033242
nop dword [rax]
lea rcx, [rdi + 0x20]
mov rdx, r14
call qword [sym.imp.MSVCR110.dll__wcsicmp]
test eax, eax
jns 0x140033237
mov rdi, qword [rdi + 0x10]
jmp 0x14003323d
mov rsi, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], bl
je 0x140033220
cmp rsi, qword [r13]
je 0x140033260
lea rdx, [rsi + 0x20]
mov rcx, r14
call qword [sym.imp.MSVCR110.dll__wcsicmp]
test eax, eax
js 0x140033260
mov qword [rsp + 0x40], rsi
jmp 0x140033269
mov rax, qword [r13]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov rax, qword [rax]
cmp qword [r13], rax
je 0x1400332e3
mov rbx, qword [rax + 0x830]
xor edi, edi
mov qword [rbp - 0x80], rdi
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x70]
lea r8d, [rdi + 1]
lea rdx, [rsp + 0x78]
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x1400332bd
mov dword [r12], VariantTimeToSystemTime
jmp 0x1400332e3
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400332d5
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 8], 0xffffffffffffffff
mov rdx, r14
mov rcx, r15
call fcn.140033da0
mov rbx, rdi
mov rsi, qword [r13]
mov rdi, qword [rsi + 8]
cmp byte [rdi + 0x19], 0
jne 0x140033314
lea rcx, [rdi + 0x20]
mov rdx, r14
call qword [sym.imp.MSVCR110.dll__wcsicmp]
test eax, eax
jns 0x140033308
mov rdi, qword [rdi + 0x10]
jmp 0x14003330e
mov rsi, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x1400332f1
cmp rsi, qword [r13]
je 0x140033332
lea rdx, [rsi + 0x20]
mov rcx, r14
call qword [sym.imp.MSVCR110.dll__wcsicmp]
test eax, eax
js 0x140033332
mov qword [rsp + 0x40], rsi
jmp 0x14003333b
mov rax, qword [r13]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov rax, qword [rax]
cmp qword [r13], rax
jne 0x14003382c
xor edi, edi
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.14005e1b0
test eax, eax
je 0x14003339c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [r12], eax
mov rax, qword [0x140122018]
mov rdi, qword [rax + 0x1a8]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.CClientData::GetRemoteConnection__::GetAddrInfoW_failed_with_0x_.8X
mov rcx, rdi
call fcn.14004c390
xor eax, eax
jmp 0x140033870
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x1400333d3
mov rax, qword [0x140122018]
mov rdi, qword [rax + 0x1a8]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.CClientData::GetRemoteConnection__::GetAddrInfoW_failed_with_0x_.8X__2_
mov rcx, rdi
call fcn.14004c390
xor eax, eax
jmp 0x140033870
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400331fa
or esi, 0xffffffff
cmp dword [r12], edi
jne 0x14003382c
cmp esi, 0xffffffff
jne 0x14003382c
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov rdx, qword [rsp + 0x40]
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
je 0x14003372b
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x58], 0x7530
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [0x140122018]
mov r13, qword [rax + 0x1a8]
mov qword [rsp + 0x50], r13
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [r14 + rax*2], si
jne 0x1400334a0
lea r12, [rax*2 + 2]
mov ecx, 0x204
call qword [sym.imp.MSVCR110.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140033828
mov rdi, rax
xor eax, eax
mov ecx, 0x204
rep stosb byte [rdi], al
mov r8, r12
mov rdx, r14
mov rcx, rsi
call sub.MSVCR110.dll_memcpy
mov ecx, dword [r13 + 0x64c0]
mov dword [r12 + rsi], ecx
xor r9d, r9d
mov r8d, 0x204
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.MSVCR110.dll_free]
cmp edi, 0xffffffff
je 0x140033705
mov ecx, 0x28
call sub.mfc110u.dll_Ordinal_1480
mov rbx, rax
xor esi, esi
test rax, rax
je 0x14003353f
mov dword [rax + 0x18], esi
mov qword [rax + 0x20], rsi
mov dword [rax], esi
mov qword [rax + 8], 0xffffffffffffffff
jmp 0x140033542
mov rbx, rsi
mov dword [rbx], 1
mov qword [rbx + 8], r15
lea rcx, [rbx + 0x20]
call qword [sym.imp.MSVCR110.dll__time64]
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
call qword [sym.imp.MSVCR110.dll_malloc]
mov r13, rax
test rax, rax
je 0x1400336f4
mov rdi, rax
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
rep stosb byte [rdi], al
mov edi, esi
mov rcx, rsi
nop
mov r8d, reloc.OLEAUT32.dll_SafeArrayLock
sub r8d, edi
lea rdx, [rcx + r13]
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400335bb
test eax, eax
je 0x1400335bb
add edi, eax
mov ecx, edi
cmp rcx, 0x14
jne 0x140033580
mov ecx, dword [r13 + 0x10]
mov dword [rbx + 0x18], ecx
mov r12, qword [rbp - 0x70]
jmp 0x1400335dc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12, qword [rbp - 0x70]
mov dword [r12], eax
cmp r15, 0xffffffffffffffff
je 0x1400335dc
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
or r15, 0xffffffffffffffff
mov rdi, qword [rsp + 0x50]
mov rax, qword [rdi + 0xca8]
cmp rax, qword [r13]
jne 0x1400335ff
mov rax, qword [rdi + 0xcb0]
cmp rax, qword [r13 + 8]
je 0x140033689
lea rax, [rbp - 0x30]
cmp r14, rax
je 0x14003364e
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x140033610
cmp rax, 0x401
jae 0x14003364e
mov r8, r14
mov edx, Ordinal_1027
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
lea r8, [r14 + 0x802]
mov edx, 6
lea rcx, [rbp + 0x7d2]
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
mov qword [rbp + 0x7e0], rbx
movzx eax, byte [0x140122350]
mov byte [rsp + 0x20], al
lea r9, [rbp - 0x30]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.140030a00
mov rcx, r13
call qword [sym.imp.MSVCR110.dll_free]
cmp dword [r12], 0
jmp 0x140033403
mov rcx, r13
call qword [sym.imp.MSVCR110.dll_free]
mov edx, 2
mov rcx, r15
call qword [sym.imp.WS2_32.dll_shutdown]
cmp r15, 0xffffffffffffffff
je 0x1400336af
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov rdx, r14
mov rcx, rdi
call fcn.140032a00
mov ecx, dword [rbx]
dec ecx
je 0x1400336d9
dec ecx
jne 0x1400336e3
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400336e3
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call sub.mfc110u.dll_Ordinal_1482
xor esi, esi
mov ebx, esi
jmp 0x14003382e
mov r12, qword [rbp - 0x70]
mov dword [r12], 8
jmp 0x14003382e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12, qword [rbp - 0x70]
mov dword [r12], eax
cmp r15, 0xffffffffffffffff
je 0x14003382c
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14003382c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [r12], eax
xor ecx, ecx
call qword [sym.imp.MSVCR110.dll__time64]
xorps xmm0, xmm0
movsd qword [rsp + 0x60], xmm0
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCR110.dll__localtime64_s]
test eax, eax
jne 0x1400337bf
mov ecx, 0x76c
movzx eax, word [rbp - 0x4c]
add ax, cx
mov word [rbp - 0x70], ax
movzx eax, word [rbp - 0x50]
inc ax
mov word [rbp - 0x6e], ax
movzx eax, word [rbp - 0x48]
mov word [rbp - 0x6c], ax
movzx eax, word [rbp - 0x54]
mov word [rbp - 0x6a], ax
movzx eax, word [rbp - 0x58]
mov word [rbp - 0x68], ax
movzx eax, word [rbp - 0x5c]
mov word [rbp - 0x66], ax
movzx eax, word [rbp - 0x60]
mov word [rbp - 0x64], ax
mov word [rbp - 0x62], si
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.140009b70
test eax, eax
mov dword [rsp + 0x68], esi
jne 0x1400337c7
mov dword [rsp + 0x68], 1
lea r8, str._H:_M:_S
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14000f850
nop
mov rcx, qword [0x140122018]
mov rdi, qword [rcx + 0x1a8]
mov rcx, rax
call qword [sym.imp.mfc110u.dll_Ordinal_1632]
mov r9, rax
mov r8d, dword [r12]
lea rdx, str.CClientData::GetRemoteConnection___::WSAConnect_failed_with_0x_.8X____s
mov rcx, rdi
call fcn.14004c390
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
cmp r15, 0xffffffffffffffff
je 0x14003382e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14003382e
mov r12, qword [rbp - 0x70]
xor esi, esi
mov eax, dword [r12]
test eax, eax
je 0x14003386d
cmp eax, 0xb7
je 0x14003386d
test rbx, rbx
je 0x14003386d
mov ecx, dword [rbx]
dec ecx
je 0x140033858
dec ecx
jne 0x140033862
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140033862
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call sub.mfc110u.dll_Ordinal_1482
mov rbx, rsi
mov rax, rbx
mov rcx, qword [rbp + 0x7f0]
xor rcx, rsp
call fcn.1400bb310
mov rbx, qword [rsp + 0x958]
add rsp, 0x900
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret