Function at 0x180076df0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1b8
mov qword [rsp + 0x110], 0xfffffffffffffffe
mov rax, qword [0x1800a5008]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0x60]
call fcn.180035080
nop
mov qword [rsp + 0x60], 0xffffffffffffffff
mov qword [rsp + 0x68], 0
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov qword [rsp + 0x70], rax
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov qword [rsp + 0x78], rax
mov ecx, 0x2000
call fcn.1800359bc
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0x70], 0
je 0x180076e7f
cmp qword [rsp + 0x78], 0
jne 0x180076ed0
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180076ec1
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
xor r8d, r8d
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x180076f41
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180076f32
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
xor r8d, r8d
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180076f6f
mov r8d, 0x10
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x180076fc0
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180076fb1
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
xor r8d, r8d
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0x118]
call fcn.1800383e0
mov eax, 2
mov word [rsp + 0x118], ax
mov rax, qword [rsp + 0x1c0]
add rax, 8
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x11c], eax
mov rax, qword [rsp + 0x1c0]
movzx ecx, word [rax + 0x18]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x11a], ax
mov r8d, 0x10
lea rdx, [rsp + 0x118]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x180077097
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180077097
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077088
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 3
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0xc0]
mov qword [rsp + rax + 0x128], rcx
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x68]
mov qword [rsp + rax + 0x128], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0x2710
xor r8d, r8d
lea rdx, [rsp + 0x128]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x102
jne 0x180077155
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077144
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 7
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
cmp dword [rsp + 0x4c], 0
jne 0x1800771b0
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x1800771a1
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 0xa
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0xf0], 0x2000
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.1800383e0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xffffffff
jne 0x1800772bb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1800772bb
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x1800772ac
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 3
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
mov byte [rsp + 0x54], 0
xor ecx, ecx
call fcn.180078860
mov dword [rsp + 0xe8], eax
lea r8, [rsp + 0x148]
mov edx, 4
lea rcx, [rsp + 0xe8]
call fcn.1800529b0
mov dword [rsp + 0xec], 0x40
lea r9, [rsp + 0xec]
lea r8, [rsp + 0x160]
mov edx, socket
lea rcx, [rsp + 0x148]
call fcn.180052950
call fcn.180033b00
mov r9d, 0x180
lea r8, str.cSocketWEB.cpp
mov edx, 0x400
mov rcx, rax
call fcn.1800743e0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], 0
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0xc]
lea rdx, str.GET___HTTP_1.1_r_n
mov rcx, rax
call fcn.1800013a0
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0xc]
lea rdx, str.Connection:_upgrade_r_n
mov rcx, rax
call fcn.1800013a0
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x1c0]
movzx eax, word [rax + 0x18]
mov rcx, qword [rsp + 0x40]
movsxd rcx, dword [rcx + 4]
mov rdx, qword [rsp + 0x40]
lea rcx, [rdx + rcx + 0xc]
mov r8d, eax
lea rdx, str.Host:_127.0.0.1:_d_r_n
call fcn.1800013a0
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0xc]
lea rdx, str.Sec_WebSocket_Version:_13_r_n
mov rcx, rax
call fcn.1800013a0
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0xc]
lea r8, [rsp + 0x160]
lea rdx, str.Sec_WebSocket_Key:__s_r_n
mov rcx, rax
call fcn.1800013a0
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0xc]
lea rdx, str.Upgrade:_websocket_r_n_r_n
mov rcx, rax
call fcn.1800013a0
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
add rax, 0xc
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
mov dword [rsp + 0xd8], eax
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1800383e0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xffffffff
jne 0x180077586
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x180077586
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077577
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 3
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
mov byte [rsp + 0x48], 1
mov dword [rsp + 0x100], 0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0xb8]
mov qword [rsp + rax + 0x128], rcx
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
mov qword [rsp + rax + 0x128], rcx
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x78]
mov qword [rsp + rax + 0x128], rcx
mov eax, 8
imul rax, rax, 3
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0xc0]
mov qword [rsp + rax + 0x128], rcx
xor eax, eax
cmp eax, 1
je 0x180077f3c
mov dword [rsp + 0x20], 1
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x128]
mov ecx, 4
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x1800777fc
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x18007764b
jmp 0x180077602
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x1c0]
add rax, 0xf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x1c0]
add rax, 0xc8
mov rcx, rax
call fcn.180033ef0
test rax, rax
jbe 0x1800776b0
mov rax, qword [rsp + 0x1c0]
add rax, 0xc8
mov rcx, rax
call fcn.180033ed0
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x1c0]
add rax, 0xf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rsp + 0x40], 0
je 0x1800777f7
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 4]
cmp dword [rax + 8], ecx
jge 0x1800777f7
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
movsxd rcx, dword [rcx + 8]
add rax, rcx
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 8]
mov eax, dword [rax + 4]
sub eax, ecx
mov dword [rsp + 0xd8], eax
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1800383e0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xffffffff
jne 0x1800777f2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1800777f2
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x1800777e3
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 3
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
mov byte [rsp + 0x48], 1
jmp 0x180077f37
cmp dword [rsp + 0x4c], 1
jne 0x180077bb4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x180077884
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077875
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 3
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
add eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 4]
cmp dword [rax + 8], ecx
jge 0x1800779cc
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
movsxd rcx, dword [rcx + 8]
add rax, rcx
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 8]
mov eax, dword [rax + 4]
sub eax, ecx
mov dword [rsp + 0xd8], eax
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1800383e0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xffffffff
jne 0x1800779c2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1800779c2
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x1800779b3
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 3
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
mov byte [rsp + 0x48], 1
jmp 0x180077baf
cmp qword [rsp + 0x40], 0
je 0x1800779ef
call fcn.180033b00
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.180074200
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x1c0]
add rax, 0xf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x1c0]
add rax, 0xc8
mov rcx, rax
call fcn.180033e80
mov rax, qword [rsp + 0x1c0]
add rax, 0xc8
mov rcx, rax
call fcn.180033ef0
test rax, rax
jbe 0x180077a61
mov rax, qword [rsp + 0x1c0]
add rax, 0xc8
mov rcx, rax
call fcn.180033ed0
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x1c0]
add rax, 0xf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rsp + 0x40], 0
je 0x180077baa
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 4]
cmp dword [rax + 8], ecx
jge 0x180077baa
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
movsxd rcx, dword [rcx + 8]
add rax, rcx
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 8]
mov eax, dword [rax + 4]
sub eax, ecx
mov dword [rsp + 0xd8], eax
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1800383e0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xffffffff
jne 0x180077ba3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x180077ba3
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077b94
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 3
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
mov byte [rsp + 0x48], 1
jmp 0x180077baf
mov byte [rsp + 0x48], 0
jmp 0x180077f37
cmp dword [rsp + 0x4c], 2
jne 0x180077e8c
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x180077c3c
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077c2d
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 3
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp dword [rsp + 0x50], 0
jne 0x180077ca2
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077c93
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 4
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
movzx eax, byte [rsp + 0x54]
test eax, eax
jne 0x180077d86
lea r9, [rsp + 0x160]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x1c0]
call fcn.180076920
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 1
jne 0x180077d26
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077d1f
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x1c0]
call qword [rax]
mov byte [rsp + 0x54], 1
jmp 0x180077d84
cmp dword [rsp + 0xd0], 0xffffffff
jne 0x180077d84
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077d75
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 5
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
jmp 0x180077da0
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x1c0]
call fcn.1800760b0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0xf0], 0x2000
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.1800383e0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xffffffff
jne 0x180077e87
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x180077e87
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077e78
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 3
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
jmp 0x180077f37
cmp dword [rsp + 0x4c], 3
jne 0x180077ee6
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077ed8
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 0xa
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0x120], 0
je 0x180077f2b
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax + 0x120]
mov rcx, qword [rsp + 0x1c0]
mov rcx, qword [rcx + 0x120]
mov rax, qword [rax]
mov r8d, 6
mov rdx, qword [rsp + 0x1c0]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800350d0
jmp 0x180077f46
jmp 0x180077602
lea rcx, [rsp + 0x60]
call fcn.1800350d0
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1800352b0
add rsp, 0x1b8
ret