Function at 0x14006e1d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x80
or edi, 0xffffffff
xor r13d, r13d
mov dword [rbp - 0x4c], edi
mov r12d, r9d
mov dword [rbp - 0x3c], r13d
mov r14, rdx
mov rbx, rcx
call fcn.140094390
mov rsi, rax
test rax, rax
je 0x14006e801
inc dword [rbx + 0x70]
test byte [r14 + 4], 0x20
jne 0x14006e24b
mov rcx, rbx
call fcn.140094390
mov r8d, dword [rbx + 0x5c]
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], r13d
lea eax, [r8 + 1]
lea edx, [r9 + 0x2c]
mov dword [rbx + 0x5c], eax
call fcn.140056030
mov edi, eax
mov dword [rbp - 0x4c], eax
cmp byte [rbx + 0x1ee], 2
jne 0x14006e2c7
cmp byte [r14], 0x4b
lea rax, str.LIST
mov rcx, qword [rbx]
lea r9, str.SCALAR
cmove r9, rax
lea r8, str.CORRELATED
lea rax, [0x14028fed3]
test edi, edi
lea rdx, str.EXECUTE__s_s_SUBQUERY__d
cmovns r8, rax
mov eax, dword [rbx + 0x200]
mov dword [rsp + 0x20], eax
call fcn.140037e60
mov r8d, dword [rbx + 0x1fc]
xor r9d, r9d
mov edx, 0xa0
mov dword [rsp + 0x20], r13d
mov rcx, rsi
mov rdi, rax
call fcn.140056030
or r9d, 0xffffffff
mov r8, rdi
mov edx, eax
mov rcx, rsi
call fcn.140056aa0
cmp byte [r14], 0x4b
mov qword [rsp + 0xc0], r15
je 0x14006e3bc
mov r9d, dword [rbx + 0x54]
xor r8d, r8d
mov rdi, qword [r14 + 0x20]
inc r9d
mov dword [rbx + 0x54], r9d
mov rcx, rsi
cmp byte [r14], 0x77
mov dword [rbp - 0x34], r9d
mov byte [rbp - 0x37], r13b
mov qword [rbp - 0x30], r13
mov dword [rsp + 0x20], r13d
jne 0x14006e313
mov byte [rbp - 0x38], 0xa
lea edx, [r8 + 0x1a]
mov dword [rbp - 0x30], r9d
jmp 0x14006e31c
mov byte [rbp - 0x38], 3
mov edx, reloc.WS2_32.dll_socket
call fcn.140056030
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rbx]
call fcn.14006c560
mov rcx, qword [rbx]
lea r8, [0x1402940d0]
mov r9d, 1
mov edx, 0x84
call fcn.14006bc80
mov r12, qword [rbx]
mov r15, rax
test rax, rax
jne 0x14006e368
xor edx, edx
mov rcx, r12
call fcn.14006c560
xor edx, edx
mov rcx, r12
call fcn.14006c560
jmp 0x14006e38c
mov rcx, r15
call fcn.14006bb50
mov rax, qword [rbx]
mov r8d, dword [rax + 0x74]
cmp dword [r15 + 0x28], r8d
jle 0x14006e38c
lea rdx, str.Expression_tree_is_too_large__maximum_depth__d_
mov rcx, rbx
call fcn.140038df0
mov eax, 0xfdff
mov qword [rdi + 0x60], r15
and word [rdi + 0xa], ax
lea r8, [rbp - 0x38]
mov rdx, rdi
mov dword [rdi + 0xc], r13d
mov rcx, rbx
call fcn.140098e10
test eax, eax
jne 0x14006e464
mov edi, dword [rbp - 0x34]
jmp 0x14006e760
mov rcx, qword [r14 + 0x10]
call fcn.14006b450
mov byte [rbp - 0x50], al
mov r9d, r13d
mov eax, dword [rbx + 0x50]
mov edx, reloc.WS2_32.dll_gethostname
mov dword [r14 + 0x2c], eax
mov rcx, rsi
inc dword [rbx + 0x50]
mov r8d, dword [r14 + 0x2c]
test r12d, r12d
mov dword [rsp + 0x20], r13d
sete r9b
call fcn.140056030
mov dword [rbp - 0x48], eax
mov r15d, eax
test r12d, r12d
jne 0x14006e410
mov rcx, qword [rbx]
mov edx, 1
mov r8d, edx
call fcn.140092c40
mov r13, rax
test dword [r14 + 4], 0x800
mov rdi, qword [r14 + 0x20]
mov qword [rbp - 0x10], r13
je 0x14006e48a
mov ecx, dword [r14 + 0x2c]
lea r8, [rbp - 0x38]
mov dword [rbp - 0x34], ecx
xor eax, eax
movzx ecx, byte [rbp - 0x50]
mov rdx, rdi
mov byte [rbp - 0x37], cl
mov rcx, rbx
mov byte [rbp - 0x38], listen
mov qword [rbp - 0x30], rax
mov dword [rdi + 0xc], eax
call fcn.140098e10
test eax, eax
je 0x14006e46b
test r13, r13
je 0x14006e464
add dword [r13], 0xffffffff
jne 0x14006e464
mov rcx, r13
call fcn.140035dc0
xor eax, eax
jmp 0x14006e7f9
mov rax, qword [rdi]
mov rcx, rbx
mov rdx, qword [r14 + 0x10]
mov r8, qword [rax + 8]
mov r8, qword [r8]
call fcn.14006b900
mov qword [r13 + 0x20], rax
jmp 0x14006e706
test rdi, rdi
je 0x14006e706
movzx eax, byte [rbp - 0x50]
mov edx, 0x41
test al, al
mov ecx, eax
cmove ecx, edx
mov byte [rbp - 0x50], cl
test r13, r13
je 0x14006e4bb
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14006b590
mov qword [r13 + 0x20], rax
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14006e4ce
inc dword [rbx + 0x54]
mov ecx, dword [rbx + 0x54]
mov dword [rbp - 0x40], ecx
jmp 0x14006e4dd
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov eax, dword [rbx + rax*4 + 0x24]
mov dword [rbp - 0x40], eax
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14006e4ee
inc dword [rbx + 0x54]
mov r15d, dword [rbx + 0x54]
jmp 0x14006e4fb
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0x24]
test r12d, r12d
je 0x14006e51a
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov r9d, r15d
mov rcx, rsi
lea edx, [r8 + 0x1a]
call fcn.140056030
mov r12d, dword [rdi]
mov rax, qword [rdi + 8]
mov qword [rbp - 0x18], rax
test r12d, r12d
jle 0x14006e686
mov r13d, dword [rbp - 0x40]
cmp dword [rbp - 0x4c], 0
mov rdi, qword [rax]
jl 0x14006e559
mov rcx, rdi
call fcn.14006d7f0
test eax, eax
jne 0x14006e559
mov edx, dword [rbp - 0x4c]
mov rcx, rsi
call fcn.140056a30
mov dword [rbp - 0x4c], 0xffffffff
cmp dword [rbp + 0x58], 0
je 0x14006e5d5
test dword [rdi + 4], 0x400
je 0x14006e57c
mov eax, dword [rdi + 8]
mov edx, 0x5f
mov dword [rbp - 0x44], eax
mov dword [rsp + 0x20], eax
jmp 0x14006e65b
movzx ecx, byte [rdi]
sub ecx, 0x9d
je 0x14006e5ae
cmp ecx, 1
jne 0x14006e5d5
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x44]
call fcn.14006d900
test eax, eax
je 0x14006e5d5
mov eax, dword [rbp - 0x44]
mov edx, 0x5f
mov dword [rsp + 0x20], eax
jmp 0x14006e65b
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x20]
call fcn.14006d900
test eax, eax
je 0x14006e5d5
mov eax, dword [rbp - 0x20]
mov edx, 0x5f
neg eax
mov dword [rbp - 0x44], eax
mov dword [rsp + 0x20], eax
jmp 0x14006e65b
mov r8d, r13d
mov rdx, rdi
mov rcx, rbx
call fcn.14006f600
cmp dword [rbp + 0x58], 0
mov edi, eax
mov r8d, eax
mov rcx, rsi
je 0x14006e616
mov r9d, dword [rsi + 0x3c]
mov edx, Ordinal_41
add r9d, 2
mov dword [rsp + 0x20], 0
call fcn.140056030
mov edx, 0x54
mov dword [rsp + 0x20], edi
jmp 0x14006e65b
mov r9d, 1
mov dword [rsp + 0x20], r15d
lea edx, [r9 + 0x30]
call fcn.140056030
mov r9d, 1
lea r8, [rbp - 0x50]
mov edx, eax
mov rcx, rsi
call fcn.140056aa0
mov r8d, 1
mov edx, edi
mov rcx, rbx
call fcn.14006f1f0
mov dword [rsp + 0x20], 0
mov edx, reloc.WS2_32.dll_WSAGetLastError
mov r8d, dword [r14 + 0x2c]
mov r9d, r15d
mov rcx, rsi
call fcn.140056030
mov rax, qword [rbp - 0x18]
dec r12d
add rax, 0x28
mov qword [rbp - 0x18], rax
test r12d, r12d
jg 0x14006e532
mov r13, qword [rbp - 0x10]
mov r8d, dword [rbp - 0x40]
test r8d, r8d
je 0x14006e6c3
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x14006e6c3
xor ecx, ecx
lea rax, [rbx + 0x88]
cmp dword [rax + 0xc], r8d
je 0x14006e6bf
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14006e6a1
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], r8d
inc byte [rbx + 0x1f]
jmp 0x14006e6c3
mov byte [rax + 6], 1
test r15d, r15d
je 0x14006e702
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x14006e702
xor ecx, ecx
lea rax, [rbx + 0x88]
nop word [rax + rax]
cmp dword [rax + 0xc], r15d
je 0x14006e6fe
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14006e6e0
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], r15d
inc byte [rbx + 0x1f]
jmp 0x14006e702
mov byte [rax + 6], 1
mov r15d, dword [rbp - 0x48]
test r13, r13
je 0x14006e75a
mov r8, qword [rsi + 8]
mov rcx, qword [rsi]
test r8, r8
je 0x14006e74d
cmp byte [rcx + 0x51], 0
jne 0x14006e74d
test r15d, r15d
jns 0x14006e729
mov r15d, dword [rsi + 0x3c]
dec r15d
movsxd rax, r15d
lea rdx, [rax + rax*2]
lea rdi, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rdi + 0x10]
call fcn.140056780
mov qword [rdi + 0x10], r13
mov byte [rdi + 1], 0xfa
jmp 0x14006e75a
mov r8, r13
mov edx, 0xfffffffa
call fcn.140056780
mov edi, dword [rbp - 0x3c]
xor r13d, r13d
mov eax, dword [rbp + 0x50]
test eax, eax
je 0x14006e776
mov edx, dword [r14 + 0x2c]
mov r8d, eax
mov rcx, rsi
call fcn.14006dbd0
movsxd r8, dword [rbp - 0x4c]
test r8d, r8d
js 0x14006e7af
mov rax, qword [rsi + 0x30]
mov ecx, dword [rsi + 0x3c]
dec ecx
mov dword [rax + 0x64], ecx
mov rax, qword [rsi]
mov edx, dword [rsi + 0x3c]
cmp byte [rax + 0x51], 0
je 0x14006e7a0
lea rax, [0x140330198]
jmp 0x14006e7ac
mov rax, qword [rsi + 8]
lea rcx, [r8 + r8*2]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
dec dword [rbx + 0x70]
lea rcx, [rbx + 0x94]
mov r8d, 0xa
nop
mov edx, dword [rcx]
test edx, edx
je 0x14006e7ed
mov eax, dword [rbx + 0x70]
cmp dword [rcx - 4], eax
jle 0x14006e7ed
cmp byte [rcx - 6], 0
je 0x14006e7ea
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14006e7e6
movzx eax, al
mov dword [rbx + rax*4 + 0x24], edx
inc byte [rbx + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r13d
add rcx, 0x14
sub r8, 1
jne 0x14006e7c0
mov eax, edi
mov r15, qword [rsp + 0xc0]
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret