Function at 0x14001b690
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
push r12
push r14
sub rsp, 0x1d0
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x190], rax
movzx eax, word [rsp + 0x210]
mov r12, rcx
mov word [rsp + 0x50], ax
lea rcx, str.wpcap.dll
mov rax, qword [rsp + 0x218]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x220]
mov dword [rsp + 0x58], eax
mov word [rsp + 0x52], r9w
mov dword [rsp + 0x5c], r8d
mov qword [rsp + 0x68], rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov r14, rax
test rax, rax
je 0x14001b933
mov qword [rsp + 0x1c8], rbx
lea rdx, str.pcap_open
mov qword [rsp + 0x1b8], rsi
mov rcx, r14
mov qword [rsp + 0x1b0], r13
mov qword [rsp + 0x1a8], r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.pcap_close
mov rcx, r14
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.pcap_findalldevs
mov rcx, r14
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.pcap_sendpacket
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.pcap_freealldevs
mov rcx, r14
mov rsi, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
test r15, r15
je 0x14001b908
test r13, r13
je 0x14001b908
test rbx, rbx
je 0x14001b908
test rsi, rsi
je 0x14001b908
test rax, rax
je 0x14001b908
mov rax, qword [r12]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x1c0], rbp
lea rcx, [rsp + 0x78]
test rax, rax
mov rsi, rdi
lea rbp, [rax + 0xc]
cmove rbp, rdi
call rbx
test eax, eax
js 0x14001b900
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x14001b843
test rsi, rsi
jne 0x14001b83e
mov rcx, qword [rbx + 8]
mov rdx, rbp
call fcn.140022cb0
test rax, rax
je 0x14001b836
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov edx, 0xffff
mov r9d, 1
mov qword [rsp + 0x20], rdi
mov r8d, 2
call r15
mov rsi, rax
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001b7f3
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [rsp + 0x80]
mov qword [rsp + 0x78], rdi
test rsi, rsi
je 0x14001b900
mov rdx, qword [r12]
mov dword [rsp + 0x54], edi
mov eax, dword [rdx + 0x194]
cmp eax, 6
ja 0x14001b885
mov r8d, eax
lea rcx, [rsp + 0x80]
add rdx, 0x198
call fcn.140045d50
mov rcx, qword [r12 + 0x10]
call fcn.140011110
mov ecx, dword [rsp + 0x58]
lea rdx, [rsp + 0x80]
mov r9d, dword [rsp + 0x5c]
mov r8, qword [rsp + 0x68]
mov dword [rsp + 0x40], ecx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rcx
movzx ecx, word [rsp + 0x50]
mov word [rsp + 0x30], cx
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x28], eax
movzx eax, word [rsp + 0x52]
mov word [rsp + 0x20], ax
call fcn.14001b470
mov rbx, rax
test rax, rax
je 0x14001b8fa
mov r8d, dword [rsp + 0x54]
mov rdx, rax
mov rcx, rsi
call qword [rsp + WSAStartup]
test eax, eax
mov rcx, rbx
sete dil
call fcn.1400272e4
mov rcx, rsi
call r13
mov rbp, qword [rsp + 0x1c0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r15, qword [rsp + 0x1a8]
mov eax, edi
mov r13, qword [rsp + 0x1b0]
mov rsi, qword [rsp + 0x1b8]
mov rbx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x1d0
pop r14
pop r12
pop rdi
ret