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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xb8
mov r14, qword [rcx + 0x10]
xor eax, eax
mov r15, qword [rcx]
mov r13, rcx
xor ecx, ecx
mov qword [rbp - 0x69], r14
mov byte [rbp - 0x6f], 0
mov rdi, r8
mov qword [rbp - 0x61], r15
mov rsi, r9
mov qword [rbp - 0x51], rax
mov r8, rdx
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
test r9, r9
je 0x180097e10
cmp dword [r9], 0x40
cmovge rsi, rcx
mov qword [rbp + 0x67], rsi
movzx edx, word [rbp + 0x77]
mov r9d, 0xfeff
movzx ecx, byte [r15 + 0x5c]
and dx, r9w
mov eax, dword [r8]
and cl, 0x10
mov qword [rbp - 0x41], rsi
cmove dx, word [rbp + 0x77]
mov word [rbp - 0x71], dx
cmp eax, 0x40
jle 0x180097e63
mov r8d, 0x40
lea rdx, str.at_most__d_tables_in_a_join
mov rcx, r13
call fcn.1800136c0
xor eax, eax
add rsp, 0xb8
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
test dl, 0x20
mov qword [rsp + 0x100], rbx
mov ecx, 1
mov qword [rsp + 0xb0], r12
cmovne eax, ecx
mov rcx, r15
mov dword [rbp - 0x6d], eax
imul eax, eax, 0x58
add eax, 0x39f
and eax, 0xfffffff8
movsxd rbx, eax
lea rdx, [rbx + 0x60]
call fcn.180010400
cmp byte [r15 + 0x61], 0
mov r12, rax
je 0x180097efe
test rax, rax
je 0x180098271
cmp qword [r15 + 0x2a8], 0
je 0x180097ec8
mov rdx, rax
mov rcx, r15
call fcn.180010080
jmp 0x180098271
cmp r12, qword [r15 + 0x190]
jb 0x180097ef1
cmp r12, qword [r15 + 0x198]
jae 0x180097ef1
mov rax, qword [r15 + 0x188]
mov qword [r12], rax
mov qword [r15 + 0x188], r12
jmp 0x180098271
mov rcx, r12
call fcn.180010010
jmp 0x180098271
movsxd r15, dword [rbp - 0x6d]
mov rcx, r14
mov qword [rax], r13
mov rax, qword [rbp + 0x57]
mov r13, qword [rbp + 0x6f]
mov qword [r12 + 8], rax
or rax, 0xffffffffffffffff
mov qword [r12 + 0x10], rsi
mov qword [r12 + 0x20], rdi
mov qword [r12 + 0x18], r13
mov dword [r12 + 0x30], eax
mov dword [r12 + 0x2c], eax
mov byte [r12 + 0x42], r15b
mov qword [rbp - 0x59], rax
call fcn.1800336e0
mov r14, qword [rbp + 0x4f]
lea rcx, [r12 + 0x398]
mov dword [r12 + 0x34], eax
xor edx, edx
mov dword [r12 + 0x38], eax
movzx eax, word [rbp - 0x71]
mov word [r12 + 0x40], ax
mov eax, dword [rbp + 0x7f]
mov word [r12 + 0x28], ax
mov eax, dword [r14 + 0xb4]
mov dword [r12 + 0x3c], eax
xor eax, eax
mov qword [r12 + 0x43], rax
mov qword [r12 + 0x4b], rax
mov qword [r12 + 0x53], rax
mov qword [r12 + 0x5b], rax
mov dword [r12 + 0x63], eax
imul r8, r15, 0x58
mov byte [r12 + 0x67], al
add r8, 0x60
call fcn.18010a4e0
lea r9, [r12 + 0x68]
mov qword [rbp - 0x51], r12
lea rcx, [rbx + r12]
mov qword [rbp - 0x49], r9
xor ebx, ebx
mov qword [rbp - 0x39], rcx
mov word [rcx + 0x2c], bx
lea rax, [rcx + 0x48]
mov qword [rcx + 0x38], rax
lea r15, [r12 + 0x290]
mov dword [rcx + 0x28], ebx
mov eax, 3
mov word [rcx + 0x30], ax
mov r8b, Ordinal_46
mov dword [r15 + 4], ebx
lea rax, [r9 + 0x28]
mov rdx, rdi
mov qword [r9 + 0x20], rax
mov rcx, r9
mov qword [r9], r12
mov byte [r9 + 0x11], bl
mov qword [r9 + 8], rbx
mov dword [r9 + 0x14], ebx
mov dword [r9 + 0x18], 8
call fcn.180091cb0
mov ecx, 0x100
cmp dword [rbp - 0x6d], ebx
jne 0x180098042
test rsi, rsi
je 0x180098023
movzx eax, byte [rsi]
mov byte [r12 + 0x43], al
test word [rbp - 0x71], cx
je 0x18009802f
mov byte [r12 + 0x47], 1
lea r8, str.SCAN_CONSTANT_ROW
xor edx, edx
mov rcx, r14
call fcn.1800332f0
jmp 0x18009808e
mov r13, qword [rbp + 0x57]
lea rdi, [r13 + 0x4c]
nop word [rax + rax]
movsxd rcx, dword [r15 + 4]
lea rdx, [r13 + 8]
mov eax, dword [rdi]
lea r8, [r12 + 0x68]
mov dword [r15 + rcx*4 + 8], eax
inc dword [r15 + 4]
movsxd rax, ebx
imul rcx, rax, 0x70
add rdx, rcx
mov rcx, r14
call fcn.180092080
inc ebx
lea rdi, [rdi + 0x70]
cmp ebx, dword [r13]
jl 0x180098050
mov rsi, qword [rbp + 0x67]
mov r13, qword [rbp + 0x6f]
mov ebx, dword [r12 + 0x7c]
lea rdx, [r12 + 0x68]
sub ebx, 1
js 0x1800980d6
mov r15, qword [rbp + 0x57]
nop dword [rax]
nop word [rax + rax]
mov r8d, ebx
lea rdx, [r12 + 0x68]
mov rcx, r15
call fcn.180090f00
sub ebx, 1
jns 0x1800980b0
mov r13, qword [rbp + 0x6f]
lea r15, [r12 + 0x290]
lea rdx, [r12 + 0x68]
mov r14, qword [rbp - 0x61]
cmp byte [r14 + 0x61], 0
jne 0x180098256
xor ecx, ecx
mov r14d, ecx
cmp dword [rdx + 0x14], ecx
jle 0x1800981b2
mov r13, qword [rbp + 0x4f]
lea r8, [0x18004c510]
mov r15d, dword [rbp - 0x6d]
mov edi, ecx
lea rcx, [0x180097d80]
nop dword [rax + rax]
mov rbx, qword [r12 + 0x88]
add rbx, rdi
test byte [rbx + 0x12], 2
jne 0x18009818b
cmp qword [rbx + 0x38], 0
jne 0x18009818b
test r15d, r15d
je 0x180098162
mov rdx, qword [rbx]
xor eax, eax
mov qword [rbp - 1], rax
mov byte [rbp + 3], 1
mov qword [rbp - 0x21], rax
mov qword [rbp - 9], rax
mov qword [rbp + 7], rax
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], r8
test rdx, rdx
je 0x180098162
lea rcx, [rbp - 0x21]
call fcn.180046a40
cmp byte [rbp + 3], 0
je 0x18009817d
mov r8d, dword [r12 + 0x38]
mov r9d, reloc.WS2_32.dll_recv
mov rdx, qword [rbx]
mov rcx, r13
call fcn.1800517f0
or word [rbx + 0x12], 4
lea r8, [0x18004c510]
lea rcx, [0x180097d80]
inc r14d
add rdi, 0x40
cmp r14d, dword [r12 + 0x7c]
jl 0x180098110
mov rsi, qword [rbp + 0x67]
lea r15, [r12 + 0x290]
mov r13, qword [rbp + 0x6f]
lea rdx, [r12 + 0x68]
movzx eax, word [rbp - 0x71]
mov edi, 0x100
mov rbx, qword [rbp + 0x4f]
and ax, di
mov word [rbp + 0x67], ax
je 0x1800981fb
mov r8, rdx
mov r9, r13
mov rdx, qword [rbp + 0x57]
mov rcx, rbx
call fcn.180092910
test eax, eax
je 0x1800981e6
mov byte [r12 + 0x47], 1
jmp 0x1800981fb
test rsi, rsi
jne 0x1800981fb
mov eax, 0x80
mov qword [r12 + 0x10], r13
or word [r12 + 0x40], ax
cmp dword [rbp - 0x6d], 1
jne 0x180098212
lea rcx, [rbp - 0x51]
call fcn.180097b80
test eax, eax
jne 0x180098294
lea rcx, [rbp - 0x51]
call fcn.1800966d0
test eax, eax
jne 0x180098256
xor edx, edx
mov rcx, r12
call fcn.180097220
mov rdx, qword [rbp - 0x61]
cmp byte [rdx + 0x61], 0
jne 0x180098256
cmp qword [r12 + 0x10], 0
je 0x1800982a0
movzx edx, word [r12 + 0x60]
mov rcx, r12
inc dx
call fcn.180097220
mov rdx, qword [rbp - 0x61]
cmp byte [rdx + 0x61], 0
je 0x180098298
mov rcx, qword [rbp + 0x4f]
mov rdx, r12
mov eax, dword [r12 + 0x3c]
mov dword [rcx + 0xb4], eax
mov rcx, qword [rbp - 0x61]
call fcn.180093ea0
xor eax, eax
mov rbx, qword [rsp + 0x100]
mov r12, qword [rsp + 0xb0]
add rsp, 0xb8
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rbp - 0x61]
cmp qword [r12 + 0x10], 0
jne 0x1800982b3
mov eax, dword [rdx + 0x30]
bt rax, 0xc
jae 0x1800982b3
mov qword [r12 + 0x58], 0xffffffffffffffff
cmp dword [rbx + 0x30], 0
jne 0x180098256
cmp byte [rdx + 0x61], 0
jne 0x180098256
cmp byte [r12 + 0x42], 2
jb 0x180098441
test r13, r13
je 0x180098441
test word [rdx + 0x5c], di
jne 0x180098441
mov rdx, r13
mov rcx, r15
call fcn.180091fa0
mov rdx, qword [rbp - 0x41]
mov r13, rax
test rdx, rdx
je 0x180098300
mov rcx, r15
call fcn.180091fa0
or r13, rax
movzx ebx, byte [r12 + 0x42]
dec ebx
cmp ebx, 1
jl 0x180098439
mov r15, qword [rbp - 0x49]
lea rdi, [r12 + 0x3e0]
movsxd rax, ebx
lea r14, [r12 + 0x398]
imul rcx, rax, 0x58
lea eax, [rbx + 1]
add rdi, rcx
lea rsi, [rcx + 0x398]
movsxd rcx, eax
imul rax, rcx, 0x58
add rsi, r12
add r14, rax
nop word [rax + rax]
mov r10, qword [rdi]
movzx eax, byte [r10 + 0x10]
imul r11, rax, 0x70
add r11, qword [r12 + 8]
test byte [r11 + 0x44], 8
je 0x180098422
cmp word [rbp + 0x67], 0
jne 0x180098381
test dword [r10 + 0x28], 0x1000
je 0x180098422
mov r9, qword [r10 + 8]
test r13, r9
jne 0x180098422
mov rax, qword [r15 + 0x20]
movsxd r8, dword [r15 + 0x14]
mov rdx, rax
shl r8, 6
add r8, rax
cmp rax, r8
jae 0x1800983ce
test qword [rdx + 0x38], r9
je 0x1800983be
mov rcx, qword [rdx]
test byte [rcx + 4], 1
je 0x1800983c9
movsx ecx, word [rcx + 0x34]
cmp ecx, dword [r11 + 0x4c]
jne 0x1800983c9
add rdx, 0x40
cmp rdx, r8
jb 0x1800983a5
jmp 0x1800983ce
cmp rdx, r8
jb 0x180098422
not r9
and qword [rbp - 0x59], r9
cmp rax, r8
jae 0x1800983f8
nop word [rax + rax]
mov rcx, qword [rax + 0x38]
test qword [r10 + 8], rcx
je 0x1800983ef
or word [rax + 0x12], 4
add rax, 0x40
cmp rax, r8
jb 0x1800983e0
movzx ecx, byte [r12 + 0x42]
lea eax, [rcx - 1]
cmp ebx, eax
je 0x18009841a
sub ecx, ebx
mov rdx, r14
dec ecx
imul eax, ecx, 0x58
mov rcx, rsi
movsxd r8, eax
call fcn.180109e10
dec byte [r12 + 0x42]
dec dword [rbp - 0x6d]
dec ebx
sub r14, 0x58
sub rsi, 0x58
sub rdi, 0x58
cmp ebx, 1
jge 0x180098350
mov rbx, qword [rbp + 0x4f]
mov rdx, qword [rbp - 0x61]
mov rcx, qword [r12]
movsx eax, word [r12 + 0x60]
movzx r8d, word [rbp - 0x71]
add dword [rcx + 0xb4], eax
test r8b, 4
je 0x1800984c1
mov rax, qword [r12 + 0x3e0]
mov ecx, dword [rax + 0x28]
mov eax, ecx
shr eax, 0xc
and eax, 1
jne 0x180098489
test r8b, 8
je 0x1800984c1
bt ecx, 0xa
jb 0x1800984c1
bt ecx, 0xd
jae 0x180098489
test r8b, 0x10
je 0x1800984c1
mov r9, qword [rbp + 0x57]
test eax, eax
sete al
inc al
mov byte [r12 + 0x45], al
mov rax, qword [r9 + 0x28]
test byte [rax + 0x40], 0x20
jne 0x1800984c5
test cl, 0x40
je 0x1800984c5
mov rax, qword [r12 + 0x3e0]
and ecx, 0xffffffbf
mov dword [rax + 0x28], ecx
movzx eax, r8b
and al, 8
mov byte [rbp - 0x6f], al
jmp 0x1800984c5
mov r9, qword [rbp + 0x57]
mov r13d, dword [rbp - 0x6d]
test r13d, r13d
jle 0x180098696
lea r15, [r12 + 0x3e0]
mov qword [rbp + 0x67], r13
nop
movzx eax, byte [r15 - 0x1c]
mov esi, 0xfff0bdc0
imul r14, rax, 0x70
add r14, r9
xor r9d, r9d
mov rdi, qword [r14 + 0x28]
mov rcx, qword [rdi + 0x70]
test rcx, rcx
je 0x18009851c
mov rax, qword [rdx + 0x20]
mov esi, r9d
add rax, 0x18
cmp qword [rax], rcx
je 0x18009851c
inc esi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x180098511
test byte [rdi + 0x40], 2
mov r13, qword [r15]
jne 0x180098897
cmp qword [rdi + 0x18], 0
jne 0x180098897
mov eax, dword [r13 + 0x28]
bt eax, 0xa
jae 0x18009877e
mov rbx, qword [rdi + 0x60]
test rbx, rbx
je 0x18009855e
nop dword [rax + rax]
cmp qword [rbx], rdx
je 0x18009855e
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180098550
mov r10, qword [rbp - 0x69]
mov r8d, dword [r14 + 0x4c]
mov rax, qword [r10 + 0x18]
movsxd rdx, dword [r10 + 0xb8]
cmp dword [rax + 0x3c], edx
jg 0x180098593
mov dword [rsp + 0x20], r9d
mov edx, 0xa4
xor r9d, r9d
mov rcx, r10
call fcn.180032ba0
mov r10, qword [rbp - 0x69]
mov edx, eax
jmp 0x1800985bf
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [r10 + 0xb8], eax
mov rax, qword [r10 + 0x68]
mov dword [rax + rcx*8], 0xa4
mov dword [rax + rcx*8 + 4], r8d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [r10]
cmp byte [rax + 0x61], 0
jne 0x180098604
test edx, edx
jns 0x1800985d5
mov edx, dword [r10 + 0xb8]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [r10 + 0x68]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x180098765
mov r9d, 0xfffffff4
mov r8, rbx
mov rcx, r10
call fcn.180033df0
mov r10, qword [rbp - 0x69]
movzx r8d, word [rbp - 0x71]
test dword [r13 + 0x28], 0x200
je 0x180098645
test byte [rdi + 0x40], 0x20
mov edx, WSAGetLastError
mov rbx, qword [r13 + 0x20]
je 0x1800988a0
mov eax, dword [rbx + 0x64]
and al, 3
cmp al, 2
jne 0x1800988a0
test r8b, 0x20
je 0x1800988a0
mov eax, dword [r15 - 0x44]
mov dword [r15 - 0x40], eax
mov rbx, qword [rbp + 0x4f]
test esi, esi
js 0x180098676
mov rax, qword [rbx + 0xa0]
mov rcx, rbx
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x74]
bt eax, esi
jb 0x180098676
bts eax, esi
mov dword [rcx + 0x74], eax
cmp esi, 1
jne 0x180098676
call fcn.180061130
mov rdx, qword [rbp - 0x61]
add r15, 0x58
sub qword [rbp + 0x67], 1
movzx r8d, word [rbp - 0x71]
mov r9, qword [rbp + 0x57]
jne 0x1800984e0
mov r13d, dword [rbp - 0x6d]
mov rdi, qword [rbp - 0x69]
mov r14, qword [rbp - 0x61]
mov eax, dword [rdi + 0xb8]
mov dword [r12 + 0x4c], eax
cmp byte [r14 + 0x61], 0
jne 0x180098256
test r13d, r13d
jle 0x18009875d
lea rbx, [r12 + 0x3c4]
xor esi, esi
nop word [rax + rax]
mov rax, qword [rbx + 0x1c]
test dword [rax + 0x28], 0x4000
je 0x180098715
movzx eax, byte [rbx]
lea rdx, [rbx - 0x2c]
mov r8, qword [rbp + 0x57]
mov r9, qword [rbp - 0x59]
add r8, 8
imul rcx, rax, 0x70
mov qword [rsp + 0x20], rdx
lea rdx, [r12 + 0x68]
add r8, rcx
mov rcx, qword [rbp + 0x4f]
call fcn.180092bd0
cmp byte [r14 + 0x61], 0
jne 0x180098256
movzx r9d, word [rbp - 0x71]
lea r8, [rbx - 0x2c]
mov rdx, qword [rbp + 0x57]
mov rcx, qword [rbp + 0x4f]
call fcn.18008bdd0
mov eax, dword [rdi + 0xb8]
mov edx, esi
mov r8, qword [rbp - 0x59]
mov rcx, r12
mov dword [rbx - 0xc], eax
call fcn.18008d600
mov qword [rbp - 0x59], rax
inc esi
mov eax, dword [rbx - 0x14]
add rbx, 0x58
mov dword [r12 + 0x34], eax
cmp esi, r13d
jl 0x1800986d0
mov rax, r12
jmp 0x180098273
test rbx, rbx
je 0x180098604
mov qword [rdx + 0x10], rbx
mov byte [rdx + 1], 0xf4
inc dword [rbx + 0x18]
jmp 0x180098604
cmp dword [rdi + 0x54], 0
jne 0x180098897
test al, 0x40
jne 0x180098879
test r8b, 0x20
jne 0x180098879
cmp byte [r12 + 0x45], 0
mov ecx, WSAGetLastError
je 0x1800987b5
mov eax, dword [r14 + 0x4c]
mov ecx, WSAGetLastError
mov dword [r12 + 0x2c], eax
mov edx, dword [r14 + 0x4c]
mov r9, rdi
mov dword [rsp + 0x20], ecx
mov r8d, esi
mov rcx, rbx
call fcn.18006b710
cmp byte [r12 + 0x45], 0
jne 0x180098811
cmp word [rdi + 0x46], 0x40
jge 0x180098811
test byte [rdi + 0x40], 0x20
jne 0x180098811
mov rax, qword [r14 + 0x60]
xor ecx, ecx
test rax, rax
je 0x1800987f7
nop dword [rax + rax]
inc ecx
shr rax, 1
jne 0x1800987f0
mov r10, qword [rbp - 0x69]
movsxd r8, ecx
mov rcx, qword [r10]
cmp byte [rcx + 0x61], 0
je 0x180098841
mov edx, 0xfffffffd
call fcn.180033be0
mov r10, qword [rbp - 0x69]
mov eax, dword [r10 + 0xb8]
test eax, eax
jle 0x180098604
movzx r8d, byte [rbp - 0x6f]
dec eax
movsxd rcx, eax
mov rax, qword [r10 + 0x68]
lea rdx, [rcx + rcx*2]
mov word [rax + rdx*8 + 2], r8w
jmp 0x180098604
mov eax, dword [r10 + 0xb8]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [r10 + 0x68]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x18009886f
mov r9d, 0xfffffffd
mov rcx, r10
call fcn.180033df0
jmp 0x180098811
mov dword [rdx + 0x10], r8d
mov byte [rdx + 1], 0xfd
jmp 0x180098815
mov rax, qword [rdi]
xor r9d, r9d
mov r8d, dword [rdi + 0x38]
mov edx, esi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.180059010
jmp 0x180098600
mov r10, qword [rbp - 0x69]
jmp 0x180098609
cmp byte [r12 + 0x45], 0
je 0x1800988dd
mov rax, qword [r14 + 0x28]
mov r8d, dword [rbp + 0x7f]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1800988d1
nop dword [rax]
cmp rcx, rbx
je 0x1800988d1
mov rcx, qword [rcx + 0x28]
inc r8d
test rcx, rcx
jne 0x1800988c0
mov edx, WSAGetLastError
mov dword [r12 + 0x30], r8d
jmp 0x180098907
mov eax, dword [rbp + 0x7f]
test eax, eax
je 0x1800988f8
test r8b, 0x20
je 0x1800988f8
mov r8d, eax
mov dword [r15 - 0x40], eax
mov edx, WSAGetLastError
jmp 0x18009890b
mov rcx, qword [rbp + 0x4f]
mov r8d, dword [rcx + 0x34]
lea eax, [r8 + 1]
mov dword [rcx + 0x34], eax
mov dword [r15 - 0x40], r8d
mov r9d, dword [rbx + 0x58]
mov rcx, r10
mov dword [rsp + 0x20], esi
call fcn.180032c00
mov rdx, rbx
mov rbx, qword [rbp + 0x4f]
mov rcx, rbx
call fcn.180033fa0
mov eax, dword [r13 + 0x28]
test al, 0xf
je 0x180098649
test eax, 0x8002
jne 0x180098649
test byte [r12 + 0x40], 1
jne 0x180098649
cmp byte [r12 + 0x47], 2
je 0x180098649
mov r8, qword [rbp - 0x69]
mov eax, dword [r8 + 0xb8]
test eax, eax
jle 0x180098649
dec eax
movsxd rcx, eax
mov rax, qword [r8 + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 2
mov word [rax + rdx*8 + 2], cx
jmp 0x180098649