Function at 0x1400504d0
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.140076f80
mov rsi, rax
test rax, rax
je 0x140050b01
inc dword [rbx + 0x70]
test byte [r14 + 4], 0x20
jne 0x14005054b
mov rcx, rbx
call fcn.140076f80
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.140037d60
mov edi, eax
mov dword [rbp - 0x4c], eax
cmp byte [rbx + 0x1ee], 2
jne 0x1400505c7
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, [0x1400f82ce]
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.140019660
mov r8d, dword [rbx + 0x1fc]
xor r9d, r9d
mov edx, 0xa0
mov dword [rsp + 0x20], r13d
mov rcx, rsi
mov rdi, rax
call fcn.140037d60
or r9d, 0xffffffff
mov r8, rdi
mov edx, eax
mov rcx, rsi
call fcn.1400387d0
cmp byte [r14], 0x4b
mov qword [rsp + 0xc0], r15
je 0x1400506bc
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 0x140050613
mov byte [rbp - 0x38], 0xa
lea edx, [r8 + 0x1a]
mov dword [rbp - 0x30], r9d
jmp 0x14005061c
mov byte [rbp - 0x38], 3
mov edx, reloc.WS2_32.dll_socket
call fcn.140037d60
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rbx]
call fcn.14004e850
mov rcx, qword [rbx]
lea r8, [0x1400f6a48]
mov r9d, 1
mov edx, 0x84
call fcn.14004df70
mov r12, qword [rbx]
mov r15, rax
test rax, rax
jne 0x140050668
xor edx, edx
mov rcx, r12
call fcn.14004e850
xor edx, edx
mov rcx, r12
call fcn.14004e850
jmp 0x14005068c
mov rcx, r15
call fcn.14004de40
mov rax, qword [rbx]
mov r8d, dword [rax + 0x74]
cmp dword [r15 + 0x28], r8d
jle 0x14005068c
lea rdx, str.Expression_tree_is_too_large__maximum_depth__d_
mov rcx, rbx
call fcn.14001a630
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.14007bc80
test eax, eax
jne 0x140050764
mov edi, dword [rbp - 0x34]
jmp 0x140050a60
mov rcx, qword [r14 + 0x10]
call fcn.14004d740
mov byte [rbp - 0x50], al
mov r9d, r13d
mov eax, dword [rbx + 0x50]
mov edx, 0x39
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.140037d60
mov dword [rbp - 0x48], eax
mov r15d, eax
test r12d, r12d
jne 0x140050710
mov rcx, qword [rbx]
mov edx, 1
mov r8d, edx
call fcn.140075710
mov r13, rax
test dword [r14 + 4], 0x800
mov rdi, qword [r14 + 0x20]
mov qword [rbp - 0x10], r13
je 0x14005078a
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], 0xb
mov qword [rbp - 0x30], rax
mov dword [rdi + 0xc], eax
call fcn.14007bc80
test eax, eax
je 0x14005076b
test r13, r13
je 0x140050764
add dword [r13], 0xffffffff
jne 0x140050764
mov rcx, r13
call fcn.1400175b0
xor eax, eax
jmp 0x140050af9
mov rax, qword [rdi]
mov rcx, rbx
mov rdx, qword [r14 + 0x10]
mov r8, qword [rax + 8]
mov r8, qword [r8]
call fcn.14004dbf0
mov qword [r13 + 0x20], rax
jmp 0x140050a06
test rdi, rdi
je 0x140050a06
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 0x1400507bb
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14004d880
mov qword [r13 + 0x20], rax
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1400507ce
inc dword [rbx + 0x54]
mov ecx, dword [rbx + 0x54]
mov dword [rbp - 0x40], ecx
jmp 0x1400507dd
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 0x1400507ee
inc dword [rbx + 0x54]
mov r15d, dword [rbx + 0x54]
jmp 0x1400507fb
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0x24]
test r12d, r12d
je 0x14005081a
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov r9d, r15d
mov rcx, rsi
lea edx, [r8 + 0x1a]
call fcn.140037d60
mov r12d, dword [rdi]
mov rax, qword [rdi + 8]
mov qword [rbp - 0x18], rax
test r12d, r12d
jle 0x140050986
mov r13d, dword [rbp - 0x40]
cmp dword [rbp - 0x4c], 0
mov rdi, qword [rax]
jl 0x140050859
mov rcx, rdi
call fcn.14004fae0
test eax, eax
jne 0x140050859
mov edx, dword [rbp - 0x4c]
mov rcx, rsi
call fcn.140038760
mov dword [rbp - 0x4c], 0xffffffff
cmp dword [rbp + 0x58], 0
je 0x1400508d5
test dword [rdi + 4], 0x400
je 0x14005087c
mov eax, dword [rdi + 8]
mov edx, 0x5f
mov dword [rbp - 0x44], eax
mov dword [rsp + 0x20], eax
jmp 0x14005095b
movzx ecx, byte [rdi]
sub ecx, 0x9d
je 0x1400508ae
cmp ecx, 1
jne 0x1400508d5
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x44]
call fcn.14004fbf0
test eax, eax
je 0x1400508d5
mov eax, dword [rbp - 0x44]
mov edx, 0x5f
mov dword [rsp + 0x20], eax
jmp 0x14005095b
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x20]
call fcn.14004fbf0
test eax, eax
je 0x1400508d5
mov eax, dword [rbp - 0x20]
mov edx, 0x5f
neg eax
mov dword [rbp - 0x44], eax
mov dword [rsp + 0x20], eax
jmp 0x14005095b
mov r8d, r13d
mov rdx, rdi
mov rcx, rbx
call fcn.140051900
cmp dword [rbp + 0x58], 0
mov edi, eax
mov r8d, eax
mov rcx, rsi
je 0x140050916
mov r9d, dword [rsi + 0x3c]
mov edx, 0x26
add r9d, 2
mov dword [rsp + 0x20], 0
call fcn.140037d60
mov edx, 0x54
mov dword [rsp + 0x20], edi
jmp 0x14005095b
mov r9d, 1
mov dword [rsp + 0x20], r15d
lea edx, [r9 + 0x30]
call fcn.140037d60
mov r9d, 1
lea r8, [rbp - 0x50]
mov edx, eax
mov rcx, rsi
call fcn.1400387d0
mov r8d, 1
mov edx, edi
mov rcx, rbx
call fcn.1400514f0
mov dword [rsp + 0x20], 0
mov edx, WSAStartup
mov r8d, dword [r14 + 0x2c]
mov r9d, r15d
mov rcx, rsi
call fcn.140037d60
mov rax, qword [rbp - 0x18]
dec r12d
add rax, 0x28
mov qword [rbp - 0x18], rax
test r12d, r12d
jg 0x140050832
mov r13, qword [rbp - 0x10]
mov r8d, dword [rbp - 0x40]
test r8d, r8d
je 0x1400509c3
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x1400509c3
xor ecx, ecx
lea rax, [rbx + 0x88]
cmp dword [rax + 0xc], r8d
je 0x1400509bf
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x1400509a1
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], r8d
inc byte [rbx + 0x1f]
jmp 0x1400509c3
mov byte [rax + 6], 1
test r15d, r15d
je 0x140050a02
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x140050a02
xor ecx, ecx
lea rax, [rbx + 0x88]
nop word [rax + rax]
cmp dword [rax + 0xc], r15d
je 0x1400509fe
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x1400509e0
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], r15d
inc byte [rbx + 0x1f]
jmp 0x140050a02
mov byte [rax + 6], 1
mov r15d, dword [rbp - 0x48]
test r13, r13
je 0x140050a5a
mov r8, qword [rsi + 8]
mov rcx, qword [rsi]
test r8, r8
je 0x140050a4d
cmp byte [rcx + 0x51], 0
jne 0x140050a4d
test r15d, r15d
jns 0x140050a29
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.1400384b0
mov qword [rdi + 0x10], r13
mov byte [rdi + 1], 0xfa
jmp 0x140050a5a
mov r8, r13
mov edx, 0xfffffffa
call fcn.1400384b0
mov edi, dword [rbp - 0x3c]
xor r13d, r13d
mov eax, dword [rbp + 0x50]
test eax, eax
je 0x140050a76
mov edx, dword [r14 + 0x2c]
mov r8d, eax
mov rcx, rsi
call fcn.14004fec0
movsxd r8, dword [rbp - 0x4c]
test r8d, r8d
js 0x140050aaf
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 0x140050aa0
lea rax, [0x140120b10]
jmp 0x140050aac
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 0x140050aed
mov eax, dword [rbx + 0x70]
cmp dword [rcx - 4], eax
jle 0x140050aed
cmp byte [rcx - 6], 0
je 0x140050aea
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x140050ae6
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 0x140050ac0
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