Function at 0x140050dc0
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x14b0]
mov eax, 0x15b0
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x14a0], rax
mov r12, r8
mov rdi, rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
xor ebx, ebx
mov dword [rsp + 0x34], ebx
lea rdx, str.CheckPrinterDriverInstall::GetMIBVersion
lea rcx, [rsp + 0x60]
call fcn.14001abe0
nop
lea r13, [0x1402a8360]
lea r15, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140050e64
test byte [rcx + 0x1c], 1
je 0x140050e64
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [rbx + 0x74]
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x4a0]
call fcn.1401e7e40
mov dword [rbp + 0x150], 0x1022e30
mov dword [rbp + 0x154], 0x630a0400
mov dword [rbp + 0x158], 0x6e6f6e61
mov dword [rbp + 0x15c], 0x6573755f
mov dword [rbp + 0x160], 0x21da072
mov dword [rbp + 0x164], 0x1020001
mov dword [rbp + 0x168], 0x10200
mov dword [rbp + 0x16c], 0x10301230
mov dword [rbp + 0x170], 0x62b0c06
mov dword [rbp + 0x174], 0x8c010401
mov dword [rbp + 0x178], 0x1010142
mov dword [rbp + 0x17c], 0x50004
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1400511db
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x34], 1
mov ecx, 0x101
lea rdx, [rbp - 0x50]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x140050f37
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [rsp + 0x30], ebx
lea r8, [rsp + 0x30]
mov rdx, qword [r12]
mov esi, 2
mov ecx, esi
call qword [sym.imp.WS2_32.dll_InetPtonW]
mov ebx, 0xffffffff
cmp eax, 1
cmove ebx, dword [rsp + 0x30]
mov word [rsp + 0x48], si
mov ecx, 0xa1
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rsp + 0x4a], ax
mov dword [rsp + 0x4c], ebx
xor r8d, r8d
mov edx, esi
mov ecx, esi
call qword [sym.imp.WSOCK32.dll_socket]
mov rsi, rax
mov rbx, 0xffffffffffffffff
cmp rax, rbx
je 0x1400510a1
lea r8d, [rbx + 0x11]
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_connect]
cmp eax, ebx
jne 0x140050fb3
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
movzx r14d, byte [rbp + 0x151]
xor r9d, r9d
lea r8d, [r9 + 0x30]
lea rdx, [rbp + 0x150]
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, ebx
jne 0x140050fdc
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x4a0]
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_recv]
cmp eax, ebx
jne 0x140050fff
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x180]
call fcn.1401e7e40
movsx r8, byte [rbp + r14 + 0x4a1]
test r8, r8
jle 0x140051037
lea rdx, [rbp + 0x4a2]
add rdx, r14
lea rcx, [rbp + 0x180]
call fcn.1401e7770
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x290]
call fcn.1401e7e40
call qword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, eax
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [rbp + 0x180]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rbp + 0x290]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140051083
mov r8d, eax
lea rdx, [rbp + 0x290]
mov rcx, rdi
call fcn.140004e60
jmp 0x1400510a7
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_closesocket]
cmp eax, ebx
jne 0x1400510ba
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call qword [sym.imp.WSOCK32.dll_WSACleanup]
cmp eax, ebx
jne 0x1400510ca
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov al, 1
mov byte [rsp + 0x68], al
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x14005111d
test byte [rcx + 0x1c], al
je 0x14005111d
mov r9, r15
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x75
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
movzx eax, byte [rsp + 0x68]
mov rcx, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x60], rdx
test al, al
jne 0x140051175
cmp rcx, r13
je 0x140051175
test byte [rcx + 0x1c], 1
je 0x140051175
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
cmp qword [0x1402bbdc8], 8
cmovae r15, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x70]
call fcn.1400048a0
lea rcx, [rsp + 0x70]
call fcn.1400048a0
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400511ae
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x1400136d6.0]
mov rax, rdi
mov rcx, qword [rbp + 0x14a0]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0x15f0]
add rsp, 0x15b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001470
int3