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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
mov rdi, rcx
xor ebx, ebx
mov ecx, 1
mov eax, dword [rdi + 0x204]
mov rsi, rdx
mov qword [rbp - 0x58], rbx
mov dword [rbp + 0x60], eax
mov eax, dword [rdi + 0x208]
mov qword [rbp + 0xa0], rcx
mov dword [rdi + 0x204], eax
inc eax
mov dword [rdi + 0x208], eax
mov rax, qword [rdi]
mov qword [rsp + 0x70], rax
test rdx, rdx
je 0x18008adad
cmp byte [rax + 0x55], bl
jne 0x18008adad
cmp dword [rdi + 0x50], ebx
jne 0x18008adad
lea edx, [rbx + 0x15]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call fcn.18005cfa0
test eax, eax
je 0x1800883c3
lea eax, [rbx + 1]
add rsp, 0x1e8
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x120]
cmp byte [rax], 8
ja 0x180088407
mov rdx, qword [rsi + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.180052df0
and dword [rsi + 0xc], 0xfffffffe
mov qword [rsi + 0x40], rbx
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.180087800
mov rax, qword [rsi + 0x40]
mov r9, qword [rsi + 0x20]
xor r11d, r11d
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x68], r9
mov qword [rbp + 0x70], r11
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], r11
mov qword [rbp + 0x80], r11
mov qword [rbp + 0x88], r11
mov qword [rbp + 0x90], r11
cmp dword [rdi + 0x50], ebx
jne 0x1800884a0
mov rax, qword [rsp + 0x70]
cmp byte [rax + 0x55], bl
jne 0x18008ac2e
mov rax, qword [rbp + 0x120]
mov r8d, dword [rsi + 0xc]
movzx ecx, byte [rax]
mov rax, qword [rsi]
shr r8d, 3
and r8d, 1
cmp dword [rax], 1
mov dword [rbp + 0x128], r8d
jle 0x1800884fd
cmp ecx, 0xa
je 0x18008848c
cmp ecx, 0xb
jne 0x1800884fd
lea rdx, str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
mov rcx, rdi
call fcn.18001a500
mov r9, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
cmp dword [rbp + 0xa0], 0
mov ecx, dword [rbp + 0x60]
mov dword [rdi + 0x204], ecx
jne 0x1800884d2
mov rax, qword [rbp + 0x120]
cmp byte [rax], 9
jne 0x1800884d2
mov r8, qword [rbp - 0x58]
mov rdx, r9
mov rcx, rdi
call fcn.180080fe0
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x18008acbc
cmp qword [rsi + 0x290], 0
je 0x18008ac36
mov rdx, rbx
mov rcx, rsi
call fcn.180017190
jmp 0x18008acbc
mov r10, qword [rbp + 0x118]
mov esi, ebx
mov rax, rbx
mov qword [rbp - 0x50], rbx
cmp qword [r10 + 0x48], rbx
jne 0x1800885f6
cmp esi, dword [r9]
jge 0x1800885ef
imul rax, rax, 0x78
mov rdx, qword [rax + r9 + 0x30]
mov r9, qword [rax + r9 + 0x28]
test rdx, rdx
je 0x1800885d3
mov rax, qword [rdx]
movsx ecx, word [r9 + 0x3e]
cmp ecx, dword [rax]
jne 0x180088642
mov edi, dword [rdx + 0xc]
mov rcx, qword [rbp + 0x110]
mov r9d, r8d
shr edi, 3
mov r8d, esi
mov rdx, r10
and edi, 1
mov dword [rsp + 0x20], edi
call fcn.180085540
test eax, eax
je 0x180088591
test edi, edi
je 0x180088586
mov rax, qword [rbp + 0x118]
mov dword [rbp + 0x128], 1
or dword [rax + 0xc], 8
or esi, 0xffffffff
mov qword [rbp - 0x50], 0xffffffffffffffff
mov rax, qword [rbp + 0x118]
mov rcx, qword [rsp + 0x70]
mov r9, qword [rax + 0x20]
mov qword [rsp + 0x68], r9
cmp byte [rcx + 0x55], bl
jne 0x18008ac1a
mov rcx, qword [rbp + 0x120]
mov r8d, dword [rbp + 0x128]
mov r10, rax
cmp byte [rcx], 8
jbe 0x1800885d8
mov rdx, qword [rax + 0x40]
mov qword [rbp - 0x78], rdx
mov qword [rbp + 0x70], rdx
jmp 0x1800885d8
mov r9, qword [rsp + 0x68]
mov rax, qword [rbp - 0x50]
inc esi
inc rax
mov qword [rbp - 0x50], rax
cmp qword [r10 + 0x48], rbx
je 0x180088517
mov rdi, qword [rbp + 0x110]
mov rcx, rdi
call fcn.180081d60
mov rsi, rax
mov qword [rbp - 0x50], rax
test rax, rax
je 0x18008849b
mov rcx, qword [rbp + 0x118]
cmp qword [rcx + 0x48], rbx
je 0x18008866b
mov r8, qword [rbp + 0x120]
mov rdx, rcx
mov rcx, rdi
call fcn.1800829e0
mov ecx, dword [rbp + 0x60]
mov dword [rdi + 0x204], ecx
add rsp, 0x1e8
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, dword [rax]
movsx r8d, word [r9 + 0x3e]
mov rdi, qword [rbp + 0x110]
mov r9, qword [r9]
lea rdx, str.expected__d_columns_for__s_but_got__d
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.18001a500
jmp 0x18008849b
mov r10, qword [rsp + 0x68]
mov rax, rbx
mov r9d, ebx
mov dword [rsp + 0x64], ebx
mov qword [rbp + 0x68], rbx
cmp dword [r10], eax
jle 0x180088718
nop word [rax + rax]
mov rdi, rax
imul rdi, rdi, 0x78
mov rax, qword [rdi + r10 + 0x30]
mov qword [rbp - 0x80], rax
test rax, rax
je 0x1800886f5
mov edx, dword [rdi + r10 + 0x38]
test edx, edx
je 0x180088842
test byte [rdi + r10 + 0x48], 0x10
jne 0x1800886f5
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov r8d, dword [rdi + r10 + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180088812
mov r9d, edx
mov rcx, rsi
mov edx, select
mov dword [rsp + 0x20], ebx
call fcn.18003a660
mov r9d, dword [rsp + 0x64]
mov r10, qword [rsp + 0x68]
mov rcx, qword [rbp + 0x118]
mov rdi, qword [rbp + 0x110]
mov rax, qword [rbp + 0x68]
inc r9d
inc rax
mov dword [rsp + 0x64], r9d
mov qword [rbp + 0x68], rax
cmp r9d, dword [r10]
jl 0x180088690
mov rax, qword [rcx + 0x28]
mov r9, qword [rcx]
mov rdx, qword [rcx + 0x38]
mov qword [rbp - 0x30], rax
mov rax, qword [rcx + 0x30]
mov qword [rbp - 0x58], r9
mov qword [rbp - 0x80], rax
movzx eax, byte [rcx + 0xc]
mov qword [rbp + 0x98], rdx
and al, 1
mov byte [rbp - 0x28], al
mov eax, dword [rcx + 0xc]
and al, 9
cmp al, 1
jne 0x180088792
mov rcx, qword [rbp - 0x78]
or r8d, 0xffffffff
mov rdx, r9
call fcn.180057e70
test eax, eax
jne 0x18008878e
mov rax, qword [rbp + 0x118]
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rsp + 0x70]
and dword [rax + 0xc], 0xfffffffe
xor r8d, r8d
call fcn.1800524b0
mov rdx, rax
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x118]
mov qword [rax + 0x30], rdx
mov r9, qword [rbp - 0x58]
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x180088baa
mov r9d, dword [r9]
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.18007fb10
mov r10d, dword [rdi + 0x54]
lea ecx, [r10 + 1]
mov r8, rax
mov qword [rsp + 0x58], rax
mov rax, qword [rbp - 0x58]
mov dword [rdi + 0x54], ecx
movsxd r11, dword [rsi + 0x3c]
mov edx, dword [rax]
mov rax, qword [rbp - 0x78]
mov dword [rbp + 0x7c], r10d
mov ecx, dword [rax]
mov dword [rbp - 0x70], r11d
lea r9d, [rdx + rcx + 1]
mov rcx, qword [rsi + 0x30]
cmp dword [rcx + 0x64], r11d
jg 0x180088b0a
mov r8d, r10d
mov edx, 0x39
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.18003a660
mov r8, qword [rsp + 0x58]
mov r11d, eax
mov dword [rbp - 0x70], eax
jmp 0x180088b37
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], select
jmp 0x1800886ee
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
call fcn.1800512d0
mov r9, qword [rbp + 0x110]
mov eax, dword [rsp + 0x50]
mov r10, qword [rsp + 0x68]
add dword [r9 + 0x200], eax
test byte [rdi + r10 + 0x44], 0x20
jne 0x180088899
mov r9d, dword [rdi + r10 + 0x50]
mov r10, qword [rbp + 0x118]
mov rdx, qword [rbp - 0x80]
mov r8, qword [r10 + 0x28]
mov rcx, qword [rsp + 0x70]
call fcn.180085b50
mov r9, qword [rbp + 0x110]
mov r10, qword [rsp + 0x68]
cmp qword [rbp + 0x68], 0
jne 0x18008897f
cmp dword [r10], 1
je 0x1800888b8
test byte [r10 + 0xbc], 0xa
je 0x18008897f
mov rax, qword [rbp + 0x118]
test byte [rax + 0xc], 2
jne 0x18008897f
mov rax, qword [rsp + 0x70]
mov ecx, 0x100
test word [rax + 0x50], cx
jne 0x18008897f
mov r8d, dword [r9 + 0x58]
mov ebx, dword [rsi + 0x3c]
mov rcx, rsi
inc r8d
inc ebx
mov dword [r9 + 0x58], r8d
xor r9d, r9d
mov dword [rdi + r10 + 0x3c], r8d
lea edx, [r9 + 0x10]
mov dword [rsp + 0x20], ebx
call fcn.18003a6c0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rbp + 0x110]
mov eax, dword [rdi + rdx + 0x3c]
mov dword [rdi + rdx + 0x38], ebx
lea r8, [rbp - 0x28]
mov dword [rbp - 0x24], eax
xor eax, eax
mov word [rbp - 0x28], select
mov qword [rbp - 0x20], rax
movzx eax, byte [rcx + 0x208]
mov byte [rdi + rdx + 0x4c], al
mov rdx, qword [rbp - 0x80]
call fcn.180088320
mov rcx, qword [rsp + 0x68]
mov rax, qword [rbp - 0x80]
movzx eax, word [rax + 0xa]
mov r11, qword [rdi + rcx + 0x28]
mov word [r11 + 0x42], ax
mov eax, dword [rbp - 0x20]
mov edx, dword [rdi + rcx + 0x3c]
or dword [rdi + rcx + 0x48], 0x10
mov dword [rdi + rcx + 0x40], eax
mov rcx, rsi
call fcn.18003acb0
lea edx, [rbx - 1]
mov rcx, rsi
call fcn.18003b0c0
jmp 0x180088ab8
mov r8d, dword [r9 + 0x58]
mov dword [rsp + 0x50], ebx
inc r8d
mov dword [r9 + 0x58], r8d
mov dword [rdi + r10 + 0x3c], r8d
mov rax, qword [rsi + 0x30]
movsxd rbx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ebx
jg 0x1800889c7
xor eax, eax
mov r9d, r8d
mov rcx, rsi
lea edx, [rax + 0x16]
xor r8d, r8d
mov dword [rsp + 0x20], eax
call fcn.18003a660
mov r9, qword [rbp + 0x110]
mov r10, qword [rsp + 0x68]
mov ebx, eax
jmp 0x1800889f4
lea rcx, [rbx + rbx*2]
xor edx, edx
lea eax, [rbx + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov word [rax + rcx*8], reloc.WS2_32.dll_shutdown
test byte [rdi + r10 + 0x48], 8
lea eax, [rbx + 1]
mov dword [rdi + r10 + 0x38], eax
jne 0x180088a15
mov rcx, r9
call fcn.180053430
mov r10, qword [rsp + 0x68]
mov dword [rsp + 0x50], eax
mov ecx, dword [rdi + r10 + 0x50]
mov rdx, qword [rbp - 0x80]
xor eax, eax
mov dword [rbp - 0x24], ecx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x110]
movzx ecx, byte [rax + 0x208]
lea r8, [rbp - 0x28]
mov word [rbp - 0x28], reloc.WS2_32.dll_inet_ntoa
mov byte [rdi + r10 + 0x4c], cl
mov rcx, rax
call fcn.180088320
mov rax, qword [rbp - 0x80]
mov r10, qword [rsp + 0x68]
movzx eax, word [rax + 0xa]
mov r11, qword [rdi + r10 + 0x28]
mov word [r11 + 0x42], ax
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x180088a75
mov edx, eax
mov rcx, rsi
call fcn.18003b0c0
mov r8d, dword [rdi + r10 + 0x3c]
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rsi
call fcn.18003a7c0
mov r11d, eax
test ebx, ebx
jns 0x180088a93
mov ebx, dword [rsi + 0x3c]
dec ebx
mov rcx, qword [rsi]
cmp byte [rcx + 0x55], 0
je 0x180088aa5
lea rcx, [0x1802f0540]
jmp 0x180088ab4
movsxd rax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rcx, [rax + rcx*8]
mov dword [rcx + 4], r11d
mov rdi, qword [rbp + 0x110]
mov rax, qword [rsp + 0x70]
xor ebx, ebx
mov dword [rdi + 0x48], ebx
mov byte [rdi + 0x1f], bl
cmp byte [rax + 0x55], bl
jne 0x18008ac29
mov rcx, qword [rbp + 0x118]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
call fcn.1800512d0
mov edx, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x64]
sub dword [rdi + 0x200], edx
mov r10, qword [rsp + 0x68]
mov rcx, qword [rbp + 0x118]
jmp 0x1800886fc
lea rcx, [r11 + r11*2]
lea eax, [r11 + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r10d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x39
mov rcx, qword [rsi]
mov eax, r11d
cmp byte [rcx + 0x55], 0
je 0x180088b5a
mov edx, 0xfffffffa
call fcn.18003b100
mov r11d, dword [rbp - 0x70]
mov dword [rbp + 0x88], r11d
jmp 0x180088bb6
test r11d, r11d
jns 0x180088b64
mov eax, dword [rsi + 0x3c]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x180088b94
mov r9d, 0xfffffffa
mov rcx, rsi
call fcn.18003b3c0
mov r11d, dword [rbp - 0x70]
mov dword [rbp + 0x88], r11d
jmp 0x180088bb6
test r8, r8
je 0x180088ba1
mov qword [rdx + 0x10], r8
mov byte [rdx + 1], 0xfa
mov dword [rbp + 0x88], r11d
jmp 0x180088bb6
or eax, 0xffffffff
mov dword [rbp - 0x70], eax
mov dword [rbp + 0x88], eax
mov rax, qword [rbp + 0x120]
cmp byte [rax], 0xc
jne 0x180088c1a
mov rcx, qword [rbp - 0x58]
mov r8d, dword [rax + 4]
mov rax, qword [rsi + 0x30]
mov edx, dword [rcx]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180088bef
mov r9d, edx
mov rcx, rsi
mov edx, 0x39
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x180088c1a
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x39
mov rcx, rsi
call fcn.18003ad30
mov edx, 0x140
mov rcx, rdi
mov r8d, eax
mov dword [rbp + 0x68], eax
mov rax, qword [rbp + 0x118]
mov word [rax + 0xa], dx
mov rdx, rax
call fcn.180081dd0
mov rdx, qword [rbp + 0x118]
cmp dword [rdx + 0x10], 0
jne 0x180088c80
movsxd rax, dword [rbp - 0x70]
test eax, eax
js 0x180088c80
mov rcx, qword [rsi]
cmp byte [rcx + 0x55], 0
je 0x180088c6a
lea rax, [0x1802f0540]
jmp 0x180088c76
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
or byte [rbp + 0x90], 1
mov byte [rax], 0x3a
test byte [rdx + 0xc], 1
je 0x180088da2
mov eax, dword [rdi + 0x54]
xor r9d, r9d
xor r8d, r8d
mov dword [rbp - 0x24], eax
inc eax
mov rcx, rdi
mov dword [rdi + 0x54], eax
mov rdx, qword [rdx]
call fcn.18007fb10
movsxd rdx, dword [rsi + 0x3c]
mov rcx, qword [rsi + 0x30]
mov r8d, dword [rbp - 0x24]
mov r11, rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x64], edx
cmp dword [rcx + 0x64], edx
jg 0x180088ce3
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x20], ebx
lea edx, [r9 + 0x39]
call fcn.18003a660
mov r11, qword [rsp + 0x58]
mov edx, eax
mov dword [rsp + 0x64], eax
jmp 0x180088d0f
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x39
mov rcx, qword [rsi]
mov eax, edx
cmp byte [rcx + 0x55], 0
je 0x180088d2d
mov r8, r11
mov edx, 0xfffffffa
call fcn.18003b100
mov edx, dword [rsp + 0x64]
jmp 0x180088d73
test edx, edx
jns 0x180088d36
mov eax, dword [rsi + 0x3c]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
cmp byte [rax + rcx*8 + 1], 0
lea r10, [rax + rcx*8]
je 0x180088d65
mov r9d, 0xfffffffa
mov r8, r11
mov rdx, r10
mov rcx, rsi
call fcn.18003b3c0
mov edx, dword [rsp + 0x64]
jmp 0x180088d73
test r11, r11
je 0x180088d73
mov qword [r10 + 0x10], r11
mov byte [r10 + 1], 0xfa
mov rax, qword [rsi]
mov dword [rbp - 0x20], edx
cmp byte [rax + 0x55], 0
jne 0x180088d90
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 - 0x15], 8
mov rdx, qword [rbp + 0x118]
mov cl, 3
mov dword [rsp + 0x64], ecx
mov byte [rbp - 0x27], cl
jmp 0x180088dab
xor al, al
mov dword [rsp + 0x64], eax
mov byte [rbp - 0x27], al
mov eax, dword [rbp + 0x128]
mov r9, qword [rbp - 0x80]
test eax, eax
jne 0x180088ee2
test r9, r9
jne 0x180088ee2
movzx eax, byte [rbp - 0x28]
mov r9, qword [rbp - 0x78]
mov r8d, 0x4000
neg al
movzx eax, word [rdx + 0xc]
sbb cx, cx
and ax, r8w
mov r8, qword [rbp - 0x30]
and cx, 0x400
or cx, ax
movsx eax, word [rdx + 0xa]
mov dword [rsp + 0x30], eax
mov rax, qword [rdx]
mov rdx, qword [rsp + 0x68]
mov word [rsp + 0x28], cx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.18009dae0
mov rdx, rax
mov qword [rbp + 0x110], rax
test rax, rax
je 0x18008849b
mov rcx, qword [rbp + 0x118]
movzx eax, word [rax + 0x30]
cmp ax, word [rcx + 0xa]
jge 0x180088e37
mov word [rcx + 0xa], ax
cmp byte [rbp - 0x28], 0
je 0x180088e54
movzx ecx, byte [rdx + 0x3a]
mov eax, dword [rsp + 0x64]
movzx eax, al
test cl, cl
cmovne eax, ecx
mov dword [rsp + 0x64], eax
mov byte [rbp - 0x27], al
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x180088e6e
movsx eax, byte [rdx + 0x36]
cmp eax, dword [rcx]
mov dword [rbp + 0x78], eax
cmove rcx, rbx
mov qword [rbp + 0x70], rcx
mov eax, dword [rbp - 0x70]
test eax, eax
js 0x180088e8b
test rcx, rcx
jne 0x180088e8b
mov edx, eax
mov rcx, rsi
call fcn.18003b360
mov rdx, qword [rbp + 0x110]
mov eax, dword [rdx + 0x44]
mov rbx, qword [rbp + 0x118]
mov r8, qword [rbp - 0x58]
mov dword [rsp + 0x40], eax
mov eax, dword [rdx + 0x40]
or r9d, 0xffffffff
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x120]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.18007e9f0
mov rcx, qword [rbp + 0x110]
call fcn.18009e620
jmp 0x18008ab7a
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x50], ebx
test r9, r9
je 0x180088f3f
mov rax, qword [rdx]
mov ecx, dword [rax]
mov rax, qword [rax + 8]
test ecx, ecx
jle 0x180088f0d
add rax, 0x22
dec ecx
mov word [rax], bx
add rax, 0x28
test ecx, ecx
jg 0x180088f00
mov eax, dword [r9]
mov rcx, qword [r9 + 8]
test eax, eax
jle 0x180088f2d
add rcx, 0x22
nop dword [rax]
dec eax
mov word [rcx], bx
add rcx, 0x28
test eax, eax
jg 0x180088f20
cmp word [rdx + 0xa], 0x42
jle 0x180088f43
mov eax, 0x42
mov word [rdx + 0xa], ax
jmp 0x180088f43
mov word [rdx + 0xa], bx
mov rdx, qword [rbp - 0x78]
or r8d, 0xffffffff
mov rcx, r9
call fcn.180057e70
mov ecx, ebx
test eax, eax
mov eax, 1
cmove ecx, eax
mov dword [rbp - 0x5c], ecx
mov rcx, qword [rsi + 0x30]
mov edx, dword [rcx + 0x80]
mov qword [rsp + 0x58], rcx
lea eax, [rdx + 1]
mov dword [rbp + 0x128], edx
mov dword [rcx + 0x80], eax
lea eax, [rdx - 1]
test edx, eax
jne 0x180088fb3
lea eax, [rdx + rdx + 1]
mov rdx, qword [rcx + 0x88]
mov rcx, qword [rcx]
movsxd r8, eax
shl r8, 2
call fcn.180017710
mov rcx, qword [rsp + 0x58]
mov edx, dword [rbp + 0x128]
mov qword [rcx + 0x88], rax
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x180088fca
movsxd rax, edx
mov dword [r8 + rax*4], 0xffffffff
mov rcx, qword [rbp - 0x80]
or eax, 0xffffffff
sub eax, edx
mov dword [rsp + 0x7c], eax
xor eax, eax
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov rax, qword [rsp + 0x68]
mov qword [rbp + 0xa8], rdi
mov qword [rbp + 0xb0], rax
lea rax, [rbp - 0x10]
mov qword [rbp + 0xc0], rax
mov eax, dword [rdi + 0x58]
inc eax
mov dword [rbp], eax
test rcx, rcx
je 0x18008903c
mov eax, dword [rcx]
mov dword [rbp - 4], eax
jmp 0x18008903f
mov dword [rbp - 4], ebx
mov rdx, qword [rbp - 0x58]
mov qword [rbp + 8], rcx
lea r9, [0x180058250]
lea r10, [fcn.1800169c0]
test rdx, rdx
je 0x1800890f1
cmp dword [rdx], 0
mov rax, qword [rdx + 8]
mov ecx, ebx
mov qword [rsp + 0x58], rax
mov dword [rbp + 0x128], ebx
jle 0x1800890f1
mov rsi, rdx
nop dword [rax + rax]
mov rdx, qword [rax]
xor r8d, r8d
mov qword [rbp + 0x38], r8
mov qword [rbp + 0x40], r8
mov qword [rbp + 0x58], r8
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x48], r8
mov qword [rbp + 0x50], r8
lea r8, [rbp + 0xa8]
mov qword [rbp + 0x38], r9
mov qword [rbp + 0x40], r10
mov qword [rbp + 0x58], r8
test rdx, rdx
je 0x1800890d8
lea rcx, [rbp + 0x30]
call fcn.18004e050
mov rax, qword [rsp + 0x58]
mov ecx, dword [rbp + 0x128]
lea r9, [0x180058250]
lea r10, [fcn.1800169c0]
inc ecx
add rax, 0x28
mov dword [rbp + 0x128], ecx
mov qword [rsp + 0x58], rax
cmp ecx, dword [rsi]
jl 0x180089080
mov rsi, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x180089194
cmp dword [rdx], 0
mov rax, qword [rdx + 8]
mov ecx, ebx
mov qword [rsp + 0x58], rax
mov dword [rbp + 0x128], ebx
jle 0x180089194
mov rdi, rdx
nop dword [rax + rax]
mov rdx, qword [rax]
xor r8d, r8d
mov qword [rbp + 0x38], r8
mov qword [rbp + 0x40], r8
mov qword [rbp + 0x58], r8
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x48], r8
mov qword [rbp + 0x50], r8
lea r8, [rbp + 0xa8]
mov qword [rbp + 0x38], r9
mov qword [rbp + 0x40], r10
mov qword [rbp + 0x58], r8
test rdx, rdx
je 0x180089178
lea rcx, [rbp + 0x30]
call fcn.18004e050
mov rax, qword [rsp + 0x58]
mov ecx, dword [rbp + 0x128]
lea r9, [0x180058250]
lea r10, [fcn.1800169c0]
inc ecx
add rax, 0x28
mov dword [rbp + 0x128], ecx
mov qword [rsp + 0x58], rax
cmp ecx, dword [rdi]
jl 0x180089120
mov rdi, qword [rbp + 0x110]
mov rax, qword [rbp + 0x98]
test rax, rax
je 0x1800891d9
xor ecx, ecx
mov rdx, rax
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], rcx
lea rcx, [rbp + 0xa8]
mov qword [rbp + 0x38], r9
mov qword [rbp + 0x40], r10
mov qword [rbp + 0x58], rcx
lea rcx, [rbp + 0x30]
call fcn.18004e050
mov edx, dword [rbp + 0x28]
mov eax, dword [rbp + 0x18]
mov r9d, ebx
mov dword [rbp + 0x1c], eax
mov dword [rsp + 0x60], ebx
test edx, edx
jle 0x180089307
movzx edx, word [rbp + 0xd8]
mov r8d, dword [rbp + 0x28]
mov rsi, rbx
mov qword [rsp + 0x58], rbx
nop word [rax + rax]
mov rax, qword [rbp + 0x20]
or dx, 8
mov word [rbp + 0xd8], dx
mov rcx, qword [rsi + rax]
mov rcx, qword [rcx + 0x20]
mov qword [rbp - 0x38], rcx
test rcx, rcx
je 0x1800892d0
cmp dword [rcx], 0
mov rdi, qword [rcx + 8]
mov eax, ebx
mov dword [rbp + 0x128], ebx
jle 0x1800892d0
lea rbx, [0x180058250]
lea rsi, [fcn.1800169c0]
nop word [rax + rax]
mov rdx, qword [rdi]
xor r8d, r8d
mov qword [rbp + 0x38], r8
mov qword [rbp + 0x40], r8
mov qword [rbp + 0x58], r8
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x48], r8
mov qword [rbp + 0x50], r8
lea r8, [rbp + 0xa8]
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x58], r8
test rdx, rdx
je 0x1800892a9
lea rcx, [rbp + 0x30]
call fcn.18004e050
mov eax, dword [rbp + 0x128]
mov rcx, qword [rbp - 0x38]
inc eax
add rdi, 0x28
mov dword [rbp + 0x128], eax
cmp eax, dword [rcx]
jl 0x180089260
movzx edx, word [rbp + 0xd8]
mov r8d, dword [rbp + 0x28]
mov rsi, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x60]
xor ebx, ebx
inc r9d
add rsi, 0x18
mov eax, 0xfff7
and dx, ax
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x58], rsi
mov word [rbp + 0xd8], dx
cmp r9d, r8d
jl 0x180089210
mov rsi, qword [rbp - 0x50]
mov rdi, qword [rbp + 0x110]
mov edx, dword [rbp + 0x28]
mov eax, dword [rdi + 0x58]
mov dword [rbp + 4], eax
mov rax, qword [rsp + 0x70]
cmp byte [rax + 0x55], 0
jne 0x18008ac29
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x18008a5d2
mov eax, dword [rdi + 0x54]
mov r9d, dword [rbp + 0x18]
mov rdx, rcx
mov dword [rbp - 0xc], eax
inc eax
xor r8d, r8d
mov rcx, rdi
mov dword [rdi + 0x54], eax
call fcn.18007fb10
movsxd r9, dword [rsi + 0x3c]
mov rcx, qword [rsi + 0x30]
mov edx, dword [rbp - 4]
mov r8d, dword [rbp - 0xc]
mov r10, rax
mov qword [rbp - 0x38], rax
mov dword [rbp + 0x64], r9d
cmp dword [rcx + 0x64], r9d
jg 0x180089386
mov r9d, edx
mov rcx, rsi
mov edx, 0x3a
mov dword [rsp + 0x20], ebx
call fcn.18003a660
mov r10, qword [rbp - 0x38]
mov r9d, eax
mov dword [rbp + 0x64], eax
jmp 0x1800893b2
lea rcx, [r9 + r9*2]
lea eax, [r9 + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x3a
mov rcx, qword [rsi]
mov eax, r9d
cmp byte [rcx + 0x55], 0
je 0x1800893cd
mov r8, r10
mov edx, 0xfffffffa
call fcn.18003b100
jmp 0x18008940c
test r9d, r9d
jns 0x1800893d7
mov eax, dword [rsi + 0x3c]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x1800893ff
mov r9d, 0xfffffffa
mov r8, r10
mov rcx, rsi
call fcn.18003b3c0
jmp 0x18008940c
test r10, r10
je 0x18008940c
mov qword [rdx + 0x10], r10
mov byte [rdx + 1], 0xfa
inc dword [rdi + 0x58]
mov eax, dword [rdi + 0x58]
mov dword [rbp - 0x64], eax
inc eax
mov dword [rbp + 0x128], eax
inc eax
mov dword [rdi + 0x58], eax
mov rcx, qword [rsi + 0x30]
mov edx, dword [rcx + 0x80]
mov qword [rsp + 0x58], rcx
lea eax, [rdx + 1]
mov dword [rbp - 0x6c], edx
mov dword [rcx + 0x80], eax
lea eax, [rdx - 1]
test edx, eax
jne 0x18008946d
lea eax, [rdx + rdx + 1]
mov rdx, qword [rcx + 0x88]
mov rcx, qword [rcx]
movsxd r8, eax
shl r8, 2
call fcn.180017710
mov rcx, qword [rsp + 0x58]
mov edx, dword [rbp - 0x6c]
mov qword [rcx + 0x88], rax
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x180089484
movsxd rax, edx
mov dword [r8 + rax*4], 0xffffffff
inc dword [rdi + 0x58]
mov rcx, qword [rsi + 0x30]
or eax, 0xffffffff
sub eax, edx
mov edx, dword [rcx + 0x80]
mov qword [rsp + 0x58], rcx
mov dword [rbp - 0x48], eax
mov eax, dword [rdi + 0x58]
mov dword [rbp - 0x6c], edx
mov dword [rbp - 0x60], eax
lea eax, [rdx + 1]
mov dword [rcx + 0x80], eax
lea eax, [rdx - 1]
test edx, eax
jne 0x1800894e0
lea eax, [rdx + rdx + 1]
mov rdx, qword [rcx + 0x88]
mov rcx, qword [rcx]
movsxd r8, eax
shl r8, 2
call fcn.180017710
mov rcx, qword [rsp + 0x58]
mov edx, dword [rbp - 0x6c]
mov qword [rcx + 0x88], rax
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1800894f7
movsxd rax, edx
mov dword [r8 + rax*4], 0xffffffff
mov ecx, dword [rdi + 0x58]
mov r8, qword [rbp - 0x80]
or eax, 0xffffffff
sub eax, edx
mov edx, dword [r8]
add edx, ecx
mov dword [rsp + 0x60], eax
lea eax, [rcx + 1]
mov dword [rdi + 0x58], edx
mov dword [rbp - 0x44], eax
lea eax, [rdx + 1]
mov dword [rsp + 0x78], eax
mov eax, dword [r8]
lea ecx, [rdx + rax]
mov dword [rdi + 0x58], ecx
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18008954e
mov r9d, dword [rbp + 0x128]
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0x16]
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008957e
mov edx, dword [rbp + 0x128]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], reloc.WS2_32.dll_shutdown
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x1800895a4
mov r9d, dword [rbp - 0x64]
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0x16]
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x1800895d1
mov edx, dword [rbp - 0x64]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], reloc.WS2_32.dll_shutdown
mov rax, qword [rbp - 0x80]
mov r8d, dword [rbp - 0x44]
movsxd rcx, dword [rsi + 0x3c]
mov eax, dword [rax]
lea edx, [rax + r8 - 1]
mov rax, qword [rsi + 0x30]
cmp dword [rax + 0x64], ecx
jg 0x180089605
mov r9d, r8d
xor r8d, r8d
mov dword [rsp + 0x20], edx
lea edx, [r8 + 0x19]
mov rcx, rsi
call fcn.18003a660
jmp 0x180089630
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x19
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180089659
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rbp - 0x60]
mov edx, select
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008968a
mov edx, dword [rbp - 0x60]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x60]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], select
mov dword [rax + rcx*8 + 8], edx
mov eax, dword [rbp - 0x5c]
mov r9, qword [rbp - 0x80]
mov r8, qword [rbp - 0x30]
mov rdx, qword [rsp + 0x68]
neg eax
mov eax, 0x100
sbb cx, cx
mov dword [rsp + 0x30], ebx
and cx, 0x800
or cx, ax
mov word [rsp + 0x28], cx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call fcn.18009dae0
mov rdx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x18008849b
movsx ecx, byte [rax + 0x36]
mov rax, qword [rbp - 0x80]
cmp ecx, dword [rax]
jne 0x1800896e9
mov eax, ebx
mov dword [rbp - 0x40], ebx
jmp 0x180089bd8
cmp byte [rbp - 0x28], 0
je 0x180089703
mov rax, qword [rbp + 0x118]
lea rdx, str.DISTINCT
test byte [rax + 0xc], 1
je 0x18008970a
lea rdx, str.GROUP_BY
mov rcx, rdi
call fcn.18007fbd0
mov r11, qword [rbp - 0x80]
mov edx, dword [rbp + 0x18]
mov eax, dword [r11]
mov dword [rbp - 0x40], 1
mov dword [rsp + 0x50], eax
mov r8d, eax
mov dword [rbp - 0x68], eax
mov ecx, eax
test edx, edx
jle 0x180089756
mov rax, qword [rbp + 0x10]
add rax, 0x10
nop dword [rax + rax]
cmp dword [rax], ecx
jl 0x180089749
inc r8d
inc ecx
add rax, 0x20
dec rdx
jne 0x180089740
mov dword [rbp - 0x68], r8d
mov ecx, dword [rdi + 0x48]
mov r10d, dword [rdi + 0x4c]
mov dword [rsp + 0x54], r10d
cmp r8d, ecx
jg 0x180089776
lea eax, [r8 + r10]
sub ecx, r8d
mov dword [rdi + 0x4c], eax
mov dword [rdi + 0x48], ecx
jmp 0x180089788
mov eax, dword [rdi + 0x58]
lea r10d, [rax + 1]
add eax, r8d
mov dword [rsp + 0x54], r10d
mov dword [rdi + 0x58], eax
lea rax, [rdi + 0x90]
mov r8d, 0xa
lea rcx, [rax + 0xc]
nop dword [rax]
mov edx, dword [rcx]
test edx, edx
je 0x1800897c4
cmp byte [rcx - 6], 0
je 0x1800897c2
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1800897be
movzx eax, al
mov dword [rdi + rax*4 + 0x28], edx
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], ebx
add rcx, 0x14
dec r8
jne 0x1800897a0
mov byte [rsp + 0x20], r8b
xor r9d, r9d
mov rdx, r11
mov r8d, r10d
mov rcx, rdi
call fcn.180057060
cmp dword [rbp + 0x18], 0
mov ecx, ebx
mov dword [rbp - 0x6c], ebx
jle 0x18008989f
mov edx, dword [rsp + 0x50]
mov rsi, rbx
nop dword [rax]
mov rax, qword [rbp + 0x10]
cmp dword [rsi + rax + 0x10], edx
jl 0x180089889
mov r11d, dword [rsp + 0x54]
mov r8d, dword [rsi + rax + 8]
mov r9d, dword [rsi + rax + 0xc]
mov r10, qword [rsi + rax]
add r11d, edx
mov dword [rbp - 0x78], r8d
lea rdx, [rdi + 0x90]
mov dword [rbp - 0x30], r9d
mov ecx, ebx
cmp dword [rdx + 0xc], 0
jle 0x180089845
cmp dword [rdx], r8d
jne 0x180089845
movsx eax, word [rdx + 4]
cmp eax, r9d
je 0x1800898b6
inc ecx
add rdx, 0x14
cmp ecx, 0xa
jl 0x180089831
mov rcx, qword [rdi + 0x10]
mov rdx, r10
mov dword [rsp + 0x20], r11d
call fcn.180055360
mov eax, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
mov r8d, dword [rbp - 0x30]
mov edx, dword [rbp - 0x78]
add r9d, eax
mov rcx, rdi
call fcn.1800551b0
mov edx, dword [rsp + 0x50]
mov ecx, dword [rbp - 0x6c]
inc edx
mov dword [rsp + 0x50], edx
inc ecx
add rsi, 0x20
mov dword [rbp - 0x6c], ecx
cmp ecx, dword [rbp + 0x18]
jl 0x180089800
mov rsi, qword [rbp - 0x50]
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x180089948
inc dword [rdi + 0x58]
mov edx, dword [rdi + 0x58]
jmp 0x180089954
mov eax, dword [rdi + 0x7c]
mov ecx, 0xa
mov dword [rdx + 0x10], eax
inc dword [rdi + 0x7c]
mov r8d, dword [rdx + 0xc]
lea rax, [rdi + 0x96]
nop
cmp dword [rax + 6], r8d
jne 0x1800898d9
mov byte [rax], 0
add rax, 0x14
dec rcx
jne 0x1800898d0
mov edx, dword [rdx + 0xc]
cmp edx, r11d
je 0x18008987c
mov r10, qword [rdi + 0x10]
mov rax, qword [r10 + 0x30]
movsxd rcx, dword [r10 + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180089917
mov r8d, edx
mov r9d, r11d
mov rcx, r10
mov edx, 0x1f
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008987c
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [r10 + 0x3c], eax
mov rax, qword [r10 + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r11d
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x1f
jmp 0x18008987c
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov edx, dword [rdi + rax*4 + 0x28]
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov r9d, dword [rbp - 0x68]
mov r8d, dword [rsp + 0x54]
mov dword [rsp + 0x50], edx
cmp dword [rax + 0x64], ecx
jg 0x180089985
mov dword [rsp + 0x20], edx
mov rcx, rsi
mov edx, gethostbyaddr
call fcn.18003a660
mov edx, dword [rsp + 0x50]
jmp 0x1800899b1
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], gethostbyaddr
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov r8d, dword [rbp - 0xc]
cmp dword [rax + 0x64], ecx
jg 0x1800899dc
mov r9d, edx
mov rcx, rsi
mov edx, WSASetLastError
mov dword [rsp + 0x20], ebx
call fcn.18003a660
mov edx, dword [rsp + 0x50]
jmp 0x180089a07
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], WSASetLastError
test edx, edx
je 0x180089a41
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x180089a41
mov ecx, ebx
lea rax, [rdi + 0x90]
nop
cmp dword [rax + 0xc], edx
je 0x180089a3d
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x180089a20
movzx eax, r8b
mov dword [rdi + rax*4 + 0x28], edx
inc byte [rdi + 0x1f]
jmp 0x180089a41
mov byte [rax + 6], 1
mov eax, dword [rsp + 0x54]
mov r10d, dword [rbp - 0x68]
lea rcx, [rdi + 0x9c]
lea r9d, [rax + r10 - 1]
mov r8d, 0xa
nop dword [rax + rax]
mov edx, dword [rcx]
cmp edx, eax
jl 0x180089a8d
cmp edx, r9d
jg 0x180089a8d
cmp byte [rcx - 6], 0
je 0x180089a8b
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x180089a83
movzx eax, al
mov dword [rdi + rax*4 + 0x28], edx
inc byte [rdi + 0x1f]
mov eax, dword [rsp + 0x54]
mov byte [rcx - 6], 0
mov dword [rcx], ebx
add rcx, 0x14
dec r8
jne 0x180089a60
cmp r10d, dword [rdi + 0x48]
jle 0x180089aa3
mov dword [rdi + 0x48], r10d
mov dword [rdi + 0x4c], eax
mov rcx, qword [rsp + 0x58]
call fcn.18009e620
mov r8d, dword [rdi + 0x54]
lea eax, [r8 + 1]
mov dword [rsp + 0x54], r8d
mov dword [rbp - 8], r8d
mov dword [rdi + 0x54], eax
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x180089ad1
inc dword [rdi + 0x58]
mov edx, dword [rdi + 0x58]
jmp 0x180089add
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov edx, dword [rdi + rax*4 + 0x28]
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov r9d, dword [rbp - 0x68]
mov dword [rsp + 0x50], edx
cmp dword [rax + 0x64], ecx
jg 0x180089b09
mov dword [rsp + 0x20], r9d
mov r9d, edx
mov rcx, rsi
mov edx, 0x3c
call fcn.18003a660
jmp 0x180089b35
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x3c
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov edx, dword [rbp - 0xc]
cmp dword [rax + 0x64], ecx
jg 0x180089b60
mov r9d, dword [rsp + 0x7c]
mov r8d, edx
mov rcx, rsi
mov edx, 0x6a
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x180089b8e
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x7c]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], WSAGetLastError
mov dword [rax + rcx*8 + 8], edx
lea rax, [rdi + 0x90]
mov byte [rbp - 0xf], 1
mov r8d, 0xa
lea rcx, [rax + 0xc]
mov edx, dword [rcx]
test edx, edx
je 0x180089bc7
cmp byte [rcx - 6], 0
je 0x180089bc5
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x180089bc1
movzx eax, al
mov dword [rdi + rax*4 + 0x28], edx
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], ebx
add rcx, 0x14
dec r8
jne 0x180089ba3
mov eax, dword [rbp - 0x40]
mov rdx, qword [rsp + 0x58]
cmp dword [rbp - 0x5c], 0
je 0x180089c30
mov rcx, qword [rsp + 0x70]
test byte [rcx + 0x50], 4
jne 0x180089c30
test eax, eax
jne 0x180089bf2
cmp byte [rdx + 0x37], al
je 0x180089c30
mov rcx, qword [rsi]
mov qword [rbp + 0x70], rbx
cmp byte [rcx + 0x55], 0
jne 0x180089c30
mov rbx, qword [rsi + 8]
movsxd rax, dword [rbp - 0x70]
lea rdi, [rax + rax*2]
movsx edx, byte [rbx + rdi*8 + 1]
mov r8, qword [rbx + rdi*8 + 0x10]
call fcn.18003b100
xor eax, eax
mov word [rbx + rdi*8], 0xa0
mov qword [rbx + rdi*8 + 0x10], rax
mov rdi, qword [rbp + 0x110]
xor ebx, ebx
mov eax, dword [rsi + 0x3c]
lea rcx, [rdi + 0x9c]
mov r8d, 0xa
mov dword [rbp - 0x5c], eax
mov edx, dword [rcx]
test edx, edx
je 0x180089c67
cmp byte [rcx - 6], 0
je 0x180089c65
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x180089c61
movzx eax, al
mov dword [rdi + rax*4 + 0x28], edx
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], ebx
add rcx, 0x14
dec r8
jne 0x180089c43
cmp dword [rbp - 0x40], r8d
je 0x180089ca7
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov edx, dword [rbp - 0xc]
cmp dword [rax + 0x64], ecx
jg 0x180089d09
mov eax, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x50]
mov r8d, edx
mov edx, 0x64
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.18003a660
mov r10d, dword [rsp + 0x54]
mov rdx, qword [rbp - 0x80]
movsxd rcx, dword [rbp - 0x40]
mov r8d, ebx
cmp dword [rdx], 0
mov dword [rsp + 0x50], ebx
mov qword [rbp - 0x30], rcx
jle 0x180089dc1
mov rax, rbx
mov qword [rbp - 0x78], rbx
nop
test rcx, rcx
je 0x180089d79
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180089d44
mov eax, dword [rsp + 0x78]
mov r9d, r8d
mov edx, gethostbyaddr
add eax, r8d
mov r8d, r10d
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.18003a660
jmp 0x180089d92
mov r8d, dword [rsp + 0x50]
mov r10d, dword [rsp + 0x54]
lea eax, [rcx + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x64
jmp 0x180089cac
lea rdx, [rcx + rcx*2]
lea eax, [rcx + 1]
mov rcx, qword [rsi + 8]
mov dword [rsi + 0x3c], eax
mov eax, dword [rsp + 0x78]
mov byte [rcx + rdx*8 + 3], 0
add eax, r8d
mov dword [rcx + rdx*8 + 4], r10d
mov dword [rcx + rdx*8 + 8], r8d
mov qword [rcx + rdx*8 + 0x10], rbx
mov word [rcx + rdx*8], gethostbyaddr
mov dword [rcx + rdx*8 + 0xc], eax
jmp 0x180089d9c
add r8d, dword [rsp + 0x78]
mov byte [rbp - 0x10], 1
mov rdx, qword [rdx + 8]
mov rdx, qword [rdx + rax]
mov rcx, rdi
call fcn.180056ec0
mov r10d, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x50]
mov rax, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x30]
inc r8d
add rax, 0x28
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x50], r8d
cmp r8d, dword [rdx]
jl 0x180089cd0
mov r10, qword [rbp - 0x38]
test r10, r10
je 0x180089dcd
inc dword [r10]
mov r8d, dword [rdx]
mov rax, qword [rsi + 0x30]
movsxd rdx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], edx
jg 0x180089e00
mov r9d, dword [rsp + 0x78]
mov dword [rsp + 0x20], r8d
mov r8d, dword [rbp - 0x44]
mov edx, 0x2a
mov rcx, rsi
call fcn.18003a660
mov r10, qword [rbp - 0x38]
mov edx, eax
jmp 0x180089e36
mov r9d, dword [rbp - 0x44]
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 4], r9d
mov r9d, dword [rsp + 0x78]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x2a
mov dword [rax + rcx*8 + 8], r9d
mov rcx, qword [rsi]
cmp byte [rcx + 0x55], 0
je 0x180089e4e
mov r8, r10
mov edx, 0xfffffffa
call fcn.18003b100
jmp 0x180089e8d
test edx, edx
jns 0x180089e57
mov edx, dword [rsi + 0x3c]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x180089e80
mov r9d, 0xfffffffa
mov r8, r10
mov rcx, rsi
call fcn.18003b3c0
jmp 0x180089e8d
test r10, r10
je 0x180089e8d
mov qword [rdx + 0x10], r10
mov byte [rdx + 1], 0xfa
movsxd rcx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
mov dword [rbp - 0x30], ecx
lea edx, [rcx + 1]
cmp dword [rax + 0x64], ecx
jg 0x180089eb8
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, edx
lea edx, [r9 + 0x2b]
mov rcx, rsi
call fcn.18003a660
jmp 0x180089ee2
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x2b
mov rax, qword [rbp - 0x80]
mov r10, qword [rdi + 0x10]
mov r8d, dword [rsp + 0x78]
mov edx, dword [rax]
mov rax, qword [r10 + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov dword [rbp - 0x78], edx
cmp dword [rax + 0x64], ecx
jg 0x180089f1b
mov r9d, dword [rbp - 0x44]
mov dword [rsp + 0x20], edx
mov rcx, r10
mov edx, 0x1d
call fcn.18003a660
mov edx, dword [rbp - 0x78]
jmp 0x180089f4c
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [r10 + 0x3c], eax
mov rax, qword [r10 + 8]
mov dword [rax + rcx*8 + 4], r8d
mov r8d, dword [rbp - 0x44]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x1d
mov dword [rax + rcx*8 + 8], r8d
mov eax, dword [rsp + 0x78]
lea rcx, [rdi + 0x9c]
mov esi, 0xa
lea r8d, [rax + rdx - 1]
mov edx, dword [rcx]
cmp edx, eax
jl 0x180089f8e
cmp edx, r8d
jg 0x180089f8e
cmp byte [rcx - 6], 0
je 0x180089f8c
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x180089f84
movzx eax, al
mov dword [rdi + rax*4 + 0x28], edx
inc byte [rdi + 0x1f]
mov eax, dword [rsp + 0x78]
mov byte [rcx - 6], 0
mov dword [rcx], ebx
add rcx, 0x14
dec rsi
jne 0x180089f61
mov rsi, qword [rbp - 0x50]
mov r8d, dword [rbp + 0x128]
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x180089fd0
mov r9d, dword [rbp - 0x48]
inc r8d
mov edx, select
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.18003a660
mov r8d, dword [rbp + 0x128]
jmp 0x18008a001
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
lea edx, [r8 + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rbp - 0x48]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], select
mov dword [rax + rcx*8 + 8], edx
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18008a026
mov r9d, dword [rsp + 0x7c]
mov edx, 0x8a
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008a055
mov edx, dword [rsp + 0x7c]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x8a
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18008a07e
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rbp - 0x60]
mov edx, select
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008a0af
mov edx, dword [rbp - 0x60]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x60]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], select
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov ecx, dword [rbp - 0x30]
mov edx, dword [rsi + 0x3c]
test ecx, ecx
jns 0x18008a0c8
lea ecx, [rdx - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
je 0x18008a0da
lea rax, [0x1802f0540]
jmp 0x18008a0e9
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.180087bc0
mov rax, qword [rsi + 0x30]
movsxd r11, dword [rsi + 0x3c]
cmp dword [rax + 0x64], r11d
jg 0x18008a121
mov r9d, dword [rbp - 0x64]
mov edx, reloc.WS2_32.dll_shutdown
mov rcx, rsi
lea r8d, [rdx - 0x15]
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008a153
mov edx, dword [rbp - 0x64]
lea rcx, [r11 + r11*2]
lea eax, [r11 + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], reloc.WS2_32.dll_shutdown
cmp dword [rbp - 0x40], 0
je 0x18008a1b4
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov edx, dword [rbp - 0xc]
cmp dword [rax + 0x64], ecx
jg 0x18008a183
mov r9d, dword [rbp - 0x5c]
mov r8d, edx
mov rcx, rsi
mov edx, 3
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008a1f8
mov r8d, dword [rbp - 0x5c]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 3
jmp 0x18008a1f8
mov rcx, qword [rsp + 0x58]
call fcn.18009e620
mov rcx, qword [rsi]
cmp byte [rcx + 0x55], 0
jne 0x18008a1f8
mov rbx, qword [rsi + 8]
movsxd rax, dword [rbp + 0x64]
lea rdi, [rax + rax*2]
movsx edx, byte [rbx + rdi*8 + 1]
mov r8, qword [rbx + rdi*8 + 0x10]
call fcn.18003b100
xor eax, eax
mov word [rbx + rdi*8], 0xa0
mov qword [rbx + rdi*8 + 0x10], rax
mov rdi, qword [rbp + 0x110]
xor ebx, ebx
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18008a226
mov r8d, dword [rbp + 0x128]
mov r9d, dword [rbp - 0x48]
mov edx, select
mov rcx, rsi
inc r8d
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008a25b
mov edx, dword [rbp + 0x128]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
inc edx
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rbp - 0x48]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], select
mov dword [rax + rcx*8 + 8], edx
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18008a282
mov r9d, dword [rsp + 0x7c]
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0xd]
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008a2b0
mov edx, dword [rsp + 0x7c]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], select
movsxd rcx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
mov dword [rbp - 0x78], ecx
cmp dword [rax + 0x64], ecx
jg 0x18008a2e5
mov r9d, dword [rbp + 0x128]
mov edx, reloc.WS2_32.dll_shutdown
mov rcx, rsi
lea r8d, [rdx - 0x15]
mov dword [rsp + 0x20], ebx
call fcn.18003a660
mov r8d, dword [rbp + 0x128]
jmp 0x18008a31b
mov r8d, dword [rbp + 0x128]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], reloc.WS2_32.dll_shutdown
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18008a340
xor r9d, r9d
inc r8d
mov rcx, rsi
lea edx, [r9 + 0xf]
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008a36f
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
lea edx, [r8 + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], reloc.WS2_32.dll_ntohs
mov r9, qword [rsi + 0x30]
mov rcx, qword [r9 + 0x88]
test rcx, rcx
je 0x18008a393
movsxd rax, dword [rbp - 0x48]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rsi + 0x3c]
mov dword [rcx], eax
mov eax, dword [rsi + 0x3c]
dec eax
mov dword [r9 + 0x6c], eax
movsxd rcx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
mov dword [rbp + 0x110], ecx
lea r9d, [rcx + 2]
cmp dword [rax + 0x64], ecx
jg 0x18008a3ca
mov r8d, dword [rbp - 0x64]
mov edx, 0x8a
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008a3f8
mov edx, dword [rbp - 0x64]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], 0x8a
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18008a424
mov r8d, dword [rbp + 0x128]
xor r9d, r9d
mov rcx, rsi
lea edx, [r9 + 0xf]
inc r8d
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008a457
mov edx, dword [rbp + 0x128]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
inc edx
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], reloc.WS2_32.dll_ntohs
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.180087a90
mov ebx, dword [rbp + 0x110]
mov rdx, qword [rbp + 0x98]
inc ebx
mov r9d, reloc.WS2_32.dll_recv
mov rcx, rdi
mov r8d, ebx
call fcn.180057850
mov r11d, dword [rbp - 0x78]
mov rax, qword [rbp + 0x120]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
or r9d, 0xffffffff
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x118]
mov r8, qword [rax]
mov rdx, rax
call fcn.18007e9f0
mov rax, qword [rsi + 0x30]
movsxd r11, dword [rsi + 0x3c]
cmp dword [rax + 0x64], r11d
jg 0x18008a4f5
mov r8d, dword [rbp + 0x128]
xor ebx, ebx
xor r9d, r9d
lea edx, [rbx + 0xf]
inc r8d
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.18003a660
jmp 0x18008a527
mov edx, dword [rbp + 0x128]
lea rcx, [r11 + r11*2]
lea eax, [r11 + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
inc edx
xor ebx, ebx
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], rbx
mov qword [rax + rcx*8 + 0x10], rbx
mov word [rax + rcx*8], reloc.WS2_32.dll_ntohs
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18008a54c
movsxd rax, dword [rsp + 0x60]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rsi + 0x3c]
mov dword [rcx], eax
mov eax, dword [rsi + 0x3c]
dec eax
mov dword [rdx + 0x6c], eax
mov ecx, dword [rbp + 0x18]
add ecx, dword [rbp + 0x28]
je 0x18008a568
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.1800878c0
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18008a598
mov r8d, dword [rbp - 0x60]
xor r9d, r9d
mov rcx, rsi
lea edx, [r9 + 0xf]
mov dword [rsp + 0x20], ebx
call fcn.18003a660
mov rbx, qword [rbp + 0x118]
jmp 0x18008ab4c
mov edx, dword [rbp - 0x60]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov qword [rax + rcx*8 + 0x10], rbx
mov rbx, qword [rbp + 0x118]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov word [rax + rcx*8], reloc.WS2_32.dll_ntohs
jmp 0x18008ab4c
mov r9, qword [rbp + 0x118]
mov qword [rbp - 0x38], rbx
cmp qword [r9 + 0x28], 0
jne 0x18008a99f
mov rax, qword [r9]
cmp dword [rax], 1
jne 0x18008a99f
mov r11, qword [r9 + 0x20]
cmp dword [r11], 1
jne 0x18008a99f
cmp qword [r11 + 0x30], 0
jne 0x18008a99f
mov r11, qword [r11 + 0x28]
mov rax, qword [rax + 8]
test byte [r11 + 0x46], 0x10
mov r8, qword [rax]
mov qword [rsp + 0x58], r11
jne 0x18008a99f
cmp byte [r8], 0x99
jne 0x18008a99f
test edx, edx
je 0x18008a99f
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 8]
mov eax, 0x100
test word [rcx + 2], ax
je 0x18008a99f
test byte [r8 + 4], 0x10
jne 0x18008a99f
mov r8, qword [r11 + 0x68]
mov rax, qword [rdi]
mov ecx, 0xfff0bdc0
mov dword [rbp + 0x128], ecx
test r8, r8
je 0x18008a6a5
mov edx, dword [rax + 0x28]
mov ecx, ebx
mov dword [rbp + 0x128], ebx
test edx, edx
jle 0x18008a6a5
mov rax, qword [rax + 0x20]
add rax, 0x18
nop word [rax + rax]
cmp qword [rax], r8
je 0x18008a69f
inc ecx
add rax, 0x20
cmp ecx, edx
jl 0x18008a690
mov dword [rbp + 0x128], ecx
mov eax, dword [rdi + 0x54]
mov r10, rdi
mov edx, 1
mov dword [rsp + 0x60], eax
inc eax
mov qword [rbp - 0x50], rbx
mov dword [rdi + 0x54], eax
mov eax, dword [r11 + 0x38]
mov dword [rsp + 0x50], eax
mov rax, qword [rdi + 0x1c8]
test rax, rax
cmovne r10, rax
shl edx, cl
mov eax, dword [r10 + 0x174]
test edx, eax
jne 0x18008a721
or eax, edx
movsxd r9, ecx
mov dword [r10 + 0x174], eax
mov rax, qword [r10]
mov r8, r9
mov rdx, qword [rax + 0x20]
shl r8, 5
mov rax, qword [r8 + rdx + 0x18]
mov edx, dword [rax]
mov dword [r10 + r9*4 + 0x178], edx
cmp ecx, 1
jne 0x18008a721
mov rcx, r10
call fcn.180065100
mov ecx, dword [rbp + 0x128]
mov r11, qword [rsp + 0x58]
mov rax, qword [r11]
mov r8d, dword [r11 + 0x38]
mov edx, ecx
xor r9d, r9d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.18005d060
mov rdx, qword [rsp + 0x58]
test byte [rdx + 0x46], 0x20
je 0x18008a762
mov rbx, qword [rdx + 0x10]
test rbx, rbx
je 0x18008a762
nop
mov eax, dword [rbx + 0x64]
and al, 3
cmp al, 2
je 0x18008a762
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18008a750
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x18008a79e
nop dword [rax + rax]
test byte [rax + 0x64], 4
jne 0x18008a795
movzx ecx, word [rax + 0x5c]
cmp cx, word [rdx + 0x44]
jge 0x18008a795
cmp qword [rax + 0x48], 0
jne 0x18008a795
test rbx, rbx
je 0x18008a792
cmp cx, word [rbx + 0x5c]
jge 0x18008a795
mov rbx, rax
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x18008a770
test rbx, rbx
je 0x18008a7b9
mov eax, dword [rbx + 0x58]
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x50], eax
call fcn.180065cf0
mov qword [rbp - 0x50], rax
mov rcx, qword [rsi + 0x30]
movsxd r8, dword [rsi + 0x3c]
cmp dword [rcx + 0x64], r8d
jg 0x18008a7ef
mov edx, dword [rbp + 0x128]
mov r9d, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x60]
mov dword [rsp + 0x20], edx
mov rcx, rsi
mov edx, getservbyname
call fcn.18003a660
xor edi, edi
mov r8d, eax
jmp 0x18008a82a
mov edx, dword [rsp + 0x60]
lea rcx, [r8 + r8*2]
lea eax, [r8 + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
xor edi, edi
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x50]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rbp + 0x128]
mov qword [rax + rcx*8 + 0x10], rdi
mov dword [rax + rcx*8 + 0xc], edx
mov word [rax + rcx*8], getservbyname
mov rcx, qword [rsi]
cmp byte [rcx + 0x55], 0
je 0x18008a843
mov edx, 0xfffffff2
lea r8d, [rdx + 0xf]
call fcn.18003b100
jmp 0x18008a884
test r8d, r8d
jns 0x18008a84f
mov r8d, dword [rsi + 0x3c]
dec r8d
movsxd rax, r8d
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x18008a879
mov r9d, 0xfffffff2
mov rcx, rsi
lea r8d, [r9 + 0xf]
call fcn.18003b3c0
jmp 0x18008a884
mov dword [rdx + 0x10], 1
mov byte [rdx + 1], 0xf2
mov r8, qword [rbp - 0x50]
test r8, r8
je 0x18008a8d4
mov rcx, qword [rsi]
cmp byte [rcx + 0x55], 0
je 0x18008a8a2
mov edx, 0xfffffffa
call fcn.18003b100
jmp 0x18008a8d4
mov eax, dword [rsi + 0x3c]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x18008a8cc
mov r9d, 0xfffffffa
mov rcx, rsi
call fcn.18003b3c0
jmp 0x18008a8d4
mov qword [rdx + 0x10], r8
mov byte [rdx + 1], 0xfa
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rsi + 0x3c]
mov r8d, dword [rsp + 0x60]
mov edx, dword [rax + 0x10]
mov rax, qword [rsi + 0x30]
cmp dword [rax + 0x64], ecx
jg 0x18008a908
mov r9d, edx
mov rcx, rsi
mov edx, gethostbyaddr
mov dword [rsp + 0x20], edi
call fcn.18003a660
mov r8d, dword [rsp + 0x60]
jmp 0x18008a933
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
mov word [rax + rcx*8], getservbyname
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18008a955
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x20], edi
lea edx, [r9 + 0x3d]
call fcn.18003a660
jmp 0x18008a981
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rdi
mov word [rax + rcx*8], 0x3d
mov rdi, qword [rbp + 0x110]
mov rdx, qword [rsp + 0x58]
mov r8, rbx
mov rcx, rdi
call fcn.1800881d0
xor ebx, ebx
jmp 0x18008aae5
cmp qword [r9 + 0x38], 0
mov qword [rbp + 0x128], rbx
mov byte [rbp + 0x110], 0
jne 0x18008aa3e
mov qword [rbp + 0x128], rbx
mov qword [rsp + 0x58], rbx
cmp edx, 1
jne 0x18008aa37
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x10]
call fcn.180085c40
mov byte [rbp + 0x110], al
test al, al
je 0x18008aa29
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
call fcn.1800524b0
mov r8, rax
mov qword [rbp + 0x128], rax
mov qword [rbp - 0x38], rax
mov rax, qword [rsp + 0x70]
cmp byte [rax + 0x55], 0
jne 0x18008aa3e
mov rcx, qword [r8 + 8]
cmp byte [rbp + 0x110], 1
setne dl
mov byte [rcx + 0x18], dl
mov rcx, qword [r8 + 8]
mov rdx, qword [rcx]
mov byte [rdx], 0x98
jmp 0x18008aa3e
mov rax, qword [rsp + 0x58]
mov qword [rbp + 0x128], rax
jmp 0x18008aa3e
mov byte [rbp + 0x110], 0
mov ecx, dword [rbp + 0x28]
add ecx, dword [rbp + 0x18]
je 0x18008aa52
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.1800878c0
movzx eax, byte [rbp + 0x110]
mov r9, qword [rbp + 0x128]
mov r8, qword [rbp - 0x30]
mov rdx, qword [rsp + 0x68]
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x28], ax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call fcn.18009dae0
mov qword [rbp + 0x110], rax
test rax, rax
jne 0x18008aaa6
mov rsi, qword [rsp + 0x70]
mov rdx, qword [rbp - 0x38]
mov rcx, rsi
call fcn.180052df0
mov r9, qword [rsp + 0x68]
jmp 0x1800884a5
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.180087bc0
mov rax, qword [rbp + 0x110]
cmp byte [rax + 0x36], 0
jle 0x18008aad1
mov edx, dword [rax + 0x44]
mov rcx, rsi
call fcn.18003a830
mov rax, qword [rbp + 0x110]
mov rcx, rax
call fcn.18009e620
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.180087a90
mov r8d, dword [rsp + 0x7c]
mov rdx, qword [rbp + 0x98]
mov r9d, reloc.WS2_32.dll_recv
mov rcx, rdi
mov qword [rbp + 0x70], rbx
call fcn.180057850
mov eax, dword [rsp + 0x7c]
or r9d, 0xffffffff
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x120]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov rbx, qword [rbp + 0x118]
mov rcx, rdi
mov r8, qword [rbx]
mov rdx, rbx
call fcn.18007e9f0
mov rdx, qword [rbp - 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.180052df0
mov r8, qword [rsi + 0x30]
mov rcx, qword [r8 + 0x88]
test rcx, rcx
je 0x18008ab71
movsxd rax, dword [rsp + 0x7c]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rsi + 0x3c]
mov dword [rcx], eax
mov eax, dword [rsi + 0x3c]
dec eax
mov dword [r8 + 0x6c], eax
cmp byte [rsp + 0x64], 3
jne 0x18008ab90
lea rdx, str.DISTINCT
mov rcx, rdi
call fcn.18007fbd0
cmp qword [rbp + 0x70], 0
je 0x18008abd7
cmp dword [rbp + 0x78], 0
lea rax, str.RIGHT_PART_OF_ORDER_BY
lea rdx, str.ORDER_BY
cmovg rdx, rax
mov rcx, rdi
call fcn.18007fbd0
mov rax, qword [rbp + 0x120]
lea r8, [rbp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x58]
mov rdx, rbx
mov r9d, dword [rax]
mov rcx, rdi
call fcn.18007fe40
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18008abfb
movsxd rax, dword [rbp + 0x68]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rsi + 0x3c]
mov dword [rcx], eax
mov eax, dword [rsi + 0x3c]
dec eax
mov dword [rdx + 0x6c], eax
cmp dword [rdi + 0x50], 0
mov eax, 0
setg al
mov dword [rbp + 0xa0], eax
jmp 0x18008849b
mov rdi, qword [rbp + 0x110]
mov rsi, rcx
jmp 0x1800884a5
mov r9, qword [rsp + 0x68]
mov rsi, rax
jmp 0x1800884a5
cmp rbx, qword [rsi + 0x178]
jb 0x18008ac61
cmp rbx, qword [rsi + 0x180]
jae 0x18008ac61
mov rax, qword [rsi + 0x170]
mov qword [rbx], rax
dec dword [rsi + 0x158]
mov qword [rsi + 0x170], rbx
jmp 0x18008acbc
cmp dword [0x1802e7f80], 0
je 0x18008acb3
mov rcx, qword [0x1802f0c18]
test rcx, rcx
je 0x18008ac7c
call qword [0x1802e8008]
mov rcx, rbx
call qword [0x1802e7fc0]
dec qword [0x1802f0968]
mov rcx, rbx
movsxd rdx, eax
sub qword [0x1802f0920], rdx
call qword [0x1802e7fb0]
mov rcx, qword [0x1802f0c18]
test rcx, rcx
je 0x18008acbc
call qword [0x1802e8018]
jmp 0x18008acbc
mov rcx, rbx
call qword [0x1802e7fb0]
mov rdx, qword [rbp + 0x20]
mov rbx, rdx
test rdx, rdx
je 0x18008ad9b
cmp qword [rsi + 0x290], 0
je 0x18008acf0
mov rcx, rsi
call fcn.180017190
mov eax, dword [rbp + 0xa0]
add rsp, 0x1e8
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rdx, qword [rbp + 0x20]
cmp rdx, qword [rsi + 0x178]
jb 0x18008ad2f
cmp rdx, qword [rsi + 0x180]
jae 0x18008ad2f
mov rax, qword [rsi + 0x170]
mov qword [rdx], rax
dec dword [rsi + 0x158]
mov eax, dword [rbp + 0xa0]
mov qword [rsi + 0x170], rdx
add rsp, 0x1e8
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp dword [0x1802e7f80], 0
je 0x18008ad91
mov rcx, qword [0x1802f0c18]
test rcx, rcx
je 0x18008ad4a
call qword [0x1802e8008]
mov rcx, rbx
call qword [0x1802e7fc0]
dec qword [0x1802f0968]
mov rcx, rbx
movsxd rdx, eax
sub qword [0x1802f0920], rdx
call qword [0x1802e7fb0]
mov rcx, qword [0x1802f0c18]
test rcx, rcx
je 0x18008ad9b
call qword [0x1802e8018]
mov eax, dword [rbp + 0xa0]
add rsp, 0x1e8
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbp + 0x20]
call qword [0x1802e7fb0]
mov eax, dword [rbp + 0xa0]
add rsp, 0x1e8
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, ecx
add rsp, 0x1e8
pop rdi
pop rsi
pop rbx
pop rbp
ret