Function at 0x140067710
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, dword [rcx + 0x40]
mov rbx, rcx
test edi, edi
jne 0x14006790d
mov eax, dword [rcx + 0x24]
cmp eax, 4
ja 0x140067968
cmp eax, 1
jne 0x14006776a
movups xmm0, xmmword [rcx + 0x98]
movsd xmm1, qword [rcx + 0xa8]
movups xmmword [rcx + 0xb0], xmm0
jmp 0x14006779a
add eax, 0xfffffffd
cmp eax, 1
ja 0x140067a29
cmp qword [rcx + 0x230], 0
je 0x140067981
movups xmm0, xmmword [rcx + 0x220]
movups xmmword [rcx + 0xb0], xmm0
movsd xmm1, qword [rcx + 0x230]
movsd qword [rcx + 0xc0], xmm1
xor ebp, ebp
mov rcx, qword [rcx + 0xc0]
test rcx, rcx
je 0x1400677c9
cmp dword [rbx + 0xb8], ebp
jl 0x1400677c9
movsxd rax, dword [rbx + 0xb4]
add rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x1400677d3
mov qword [rsp + 0x58], rbp
test rcx, rcx
je 0x1400677e3
mov eax, dword [rbx + 0xb8]
test eax, eax
js 0x1400677e3
mov dword [rsp + 0x50], eax
jmp 0x1400677ee
mov dword [rsp + 0x50], ebp
mov eax, ebp
test rcx, rcx
je 0x1400677f8
mov ecx, dword [rbx + 0xb8]
test ecx, ecx
jns 0x1400677fa
mov ecx, ebp
cmp eax, ecx
ja 0x14006799a
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x1400679b3
mov eax, dword [rbx + 0x24]
lea r8, [rbx + 0x6c]
mov dword [r8], ebp
cmp eax, 4
ja 0x140067968
mov esi, 0x1c
cmp eax, 1
jne 0x14006787b
mov qword [rsp + 0x40], rbp
lea rdx, [rbx + 0x94]
mov byte [rbx + 0x74], al
lea rcx, [rbx + 0x78]
lea rax, [rbx + 0x48]
mov dword [rdx], esi
mov qword [rsp + 0x38], rax
lea r9, [rbx + 0x68]
mov qword [rsp + 0x30], rdx
mov edi, 1
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x30]
mov qword [rsp + 0x20], r8
mov r8d, edi
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
jmp 0x1400678b9
add eax, 0xfffffffd
cmp eax, 1
ja 0x140067a10
mov rcx, qword [rbx + 0x30]
lea rax, [rbx + 0x48]
mov qword [rsp + 0x30], rbp
lea r9, [rbx + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], r8
mov edi, 1
mov r8d, edi
mov byte [rbx + 0x74], bpl
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x140067932
movzx eax, word [rbx + 0x28]
cmp ax, 2
je 0x1400678d0
cmp ax, 0x17
cmovne esi, ebp
jmp 0x1400678d5
mov esi, reloc.WS2_32.dll_recv
cmp byte [rbx + 0x74], bpl
je 0x1400678ed
test esi, esi
je 0x1400678ed
mov ecx, dword [rbx + 0x94]
cmp ecx, esi
jne 0x1400679cc
mov rcx, qword [rbx + 0x60]
mov edi, 2
mov dword [rbx + 0x40], edi
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1400679d4
mov edi, dword [rbx + 0x40]
mov dword [rbx + 0x70], ebp
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008aca0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x3e5
jne 0x140067949
mov dword [rbx + 0x40], edi
mov dword [rbx + 0x70], eax
jmp 0x14006790d
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1400679ed
mov edi, 2
mov dword [rbx + 0x70], esi
mov dword [rbx + 0x40], edi
jmp 0x14006790d
lea r8, [0x14008d704]
mov edx, 0xc88
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, str.buf_defined_sb__next_
mov edx, 0xa9f
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, str.wsabuf_0_.len___BLEN_sock__reads.buf_
mov edx, 0xe35
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, str.ResetEvent_sock__reads.overlapped.hEvent_
mov edx, 0xe38
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
mov edx, esi
call fcn.140067590
int3
lea r8, str.SetEvent_sock__reads.overlapped.hEvent_
mov edx, 0xe67
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, str.SetEvent_sock__reads.overlapped.hEvent_
mov edx, 0xe7b
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, [0x14008d704]
mov edx, 0xe59
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, [0x14008d704]
mov edx, 0xe2d
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3