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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x108
mov rsi, qword [rcx + 0x10]
mov rdi, qword [rcx]
xor r8d, r8d
cmp dword [rsp + 0x180], r8d
mov r12, rdx
mov r15, rcx
setne byte [rsp + 0x60]
mov dword [rsp + 0x7c], r8d
mov dword [rsp + 0x80], r8d
mov dword [rsp + 0x98], r8d
mov byte [rsp + 0x61], r8b
mov dword [rsp + 0xac], 0xffffffff
mov qword [rsp + 0xb8], rdi
test rsi, rsi
jne 0x18006e77e
call fcn.180035380
mov rsi, rax
mov qword [r15 + 0x10], rax
test rax, rax
je 0x18006e764
mov edx, 0x9e
mov rcx, rax
call fcn.180035780
xor r8d, r8d
cmp qword [r15 + 0x1c8], r8
jne 0x18006e77e
mov rax, qword [r15]
test byte [rax + 0x50], 8
jne 0x18006e77e
mov byte [r15 + 0x23], 1
test byte [r12 + 0x46], 0x20
movsx rcx, word [r12 + 0x3e]
mov eax, 1
jne 0x18006e79b
mov qword [rsp + 0x88], r8
jmp 0x18006e7ce
mov rdx, qword [r12 + 0x10]
mov qword [rsp + 0x88], rdx
test rdx, rdx
je 0x18006e7ca
nop dword [rax]
mov eax, dword [rdx + 0x64]
and al, 3
cmp al, 2
je 0x18006e7c2
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x18006e7b0
mov qword [rsp + 0x88], rdx
movzx eax, word [rdx + 0x5e]
mov r14, rcx
movzx ecx, byte [rsp + 0x190]
mov dword [rsp + 0x6c], eax
mov ebp, r8d
mov r13, r8
mov r9d, 2
test r14, r14
jle 0x18006eab1
mov rdx, qword [rsp + 0x158]
mov r12, r8
nop dword [rax]
movsx eax, word [rdx + 0x3c]
cmp ebp, eax
je 0x18006ea97
mov rax, qword [rsp + 0x1a8]
test rax, rax
je 0x18006e824
cmp dword [rax + r13*4], 0
jl 0x18006ea97
mov rax, qword [rdx + 8]
movzx ebx, byte [r12 + rax + 0x18]
test ebx, ebx
je 0x18006ea97
cmp cl, 0xa
je 0x18006e8da
movzx ebx, cl
cmp ebx, 5
jne 0x18006e851
cmp qword [r12 + rax + 8], 0
cmove ebx, r9d
mov ecx, ebx
dec ecx
je 0x18006e981
dec ecx
je 0x18006e96c
dec ecx
je 0x18006e981
dec ecx
mov eax, dword [rsp + 0x178]
je 0x18006e902
lea ebx, [rbp + rax + 1]
mov edx, 0x4d
mov rcx, rsi
mov r8d, ebx
call fcn.1800357f0
mov rdx, qword [rsp + 0x158]
mov r8d, ebx
mov rdx, qword [rdx + 8]
mov rcx, r15
mov edi, eax
mov rdx, qword [r12 + rdx + 8]
call fcn.180051f00
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov edx, dword [rsi + 0x3c]
test edi, edi
jns 0x18006e8c2
lea edi, [rdx - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
je 0x18006e8eb
lea rax, [0x1802423a0]
mov dword [rax + 8], edx
jmp 0x18006ea76
cmp ebx, 0xa
jne 0x18006e842
mov ebx, r9d
jmp 0x18006e851
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
jmp 0x18006ea76
movsxd rcx, dword [rsi + 0x3c]
lea edx, [rbp + rax + 1]
mov rax, qword [rsi + 0x30]
cmp dword [rax + 0x64], ecx
jg 0x18006e935
mov r9d, dword [rsp + 0x198]
mov dword [rsp + 0x20], r8d
mov r8d, edx
mov edx, 0x4c
mov rcx, rsi
call fcn.180035690
jmp 0x18006ea7e
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 + 0x198]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov word [rax + rcx*8], 0x4c
mov dword [rax + rcx*8 + 8], edx
jmp 0x18006ea87
mov rax, qword [r15 + 0x1c8]
mov rcx, r15
test rax, rax
cmovne rcx, rax
mov byte [rcx + 0x21], 1
mov r9, qword [rdx + 8]
mov r8, qword [rdx]
lea rdx, str._s._s
mov r9, qword [r12 + r9]
mov rcx, rdi
call fcn.180014420
movsxd rdx, dword [rsi + 0x3c]
mov rdi, rax
mov eax, dword [rsp + 0x178]
lea r8d, [rbp + rax + 1]
mov rax, qword [rsi + 0x30]
cmp dword [rax + 0x64], edx
jg 0x18006e9d6
mov dword [rsp + 0x20], r8d
mov r9d, ebx
mov edx, socket
mov r8d, 0x513
mov rcx, rsi
call fcn.180035690
mov edx, eax
jmp 0x18006ea09
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], 0x513
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], 0
mov word [rax + rcx*8], socket
mov rcx, qword [rsi]
cmp byte [rcx + 0x55], 0
je 0x18006ea1f
mov r8, rdi
or edx, 0xffffffff
call fcn.180036130
jmp 0x18006ea5c
test edx, edx
jns 0x18006ea28
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 0x18006ea4f
or r9d, 0xffffffff
mov r8, rdi
mov rcx, rsi
call fcn.1800363f0
jmp 0x18006ea5c
test rdi, rdi
je 0x18006ea5c
mov qword [rdx + 0x10], rdi
mov byte [rdx + 1], 0xff
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
jne 0x18006ea76
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 - 0x15], 1
mov rdi, qword [rsp + 0xb8]
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rsp + 0x158]
movzx ecx, byte [rsp + 0x190]
inc r13
inc ebp
add r12, 0x20
cmp r13, r14
jl 0x18006e800
mov r12, qword [rsp + 0x158]
mov r14, qword [r12 + 0x30]
movzx ebx, byte [rsp + 0x188]
mov r13d, dword [rsp + 0x178]
test r14, r14
je 0x18006ed13
test dword [rdi + 0x2c], 0x2000
jne 0x18006ed13
lea eax, [r13 + 1]
movzx ebp, cl
mov dword [r15 + 0x70], eax
cmp cl, 0xa
jne 0x18006eaef
mov ebp, r9d
cmp dword [r14], 0
mov r15d, r8d
jle 0x18006ed0b
mov r13, r8
lea rdx, [0x18006e6a0]
nop word [rax + rax]
mov rax, qword [r14 + 8]
mov rcx, qword [rsp + 0x1a8]
mov r12, qword [r13 + rax]
test rcx, rcx
je 0x18006eb9a
xor eax, eax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
mov byte [rsp + 0xec], al
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
test r12, r12
je 0x18006eb8c
lea rcx, [rsp + 0xc8]
mov rdx, r12
call fcn.180049090
movzx eax, byte [rsp + 0xec]
test bl, bl
jne 0x18006eb92
and al, 0xfd
test al, al
je 0x18006ece4
mov rdi, qword [rsi + 0x30]
movsxd rbx, dword [rdi + 0x80]
lea eax, [rbx + 1]
mov dword [rdi + 0x80], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x18006ebd6
mov rdx, qword [rdi + 0x88]
mov rcx, qword [rdi]
lea eax, [rbx + rbx + 1]
movsxd r8, eax
shl r8, 2
call fcn.180012710
mov qword [rdi + 0x88], rax
mov rcx, qword [rdi + 0x88]
test rcx, rcx
je 0x18006ebe8
or edx, 0xffffffff
mov dword [rcx + rbx*4], edx
or edi, 0xffffffff
mov r9d, reloc.WS2_32.dll_recv
mov rdx, r12
sub edi, ebx
mov rbx, qword [rsp + 0x150]
mov rcx, rbx
mov r8d, edi
call fcn.1800524a0
cmp ebp, 4
jne 0x18006ec73
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18006ec3b
mov r9d, dword [rsp + 0x198]
lea edx, [rbp + 9]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], 0
call fcn.180035690
jmp 0x18006ecb1
mov edx, dword [rsp + 0x198]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
xor r8d, r8d
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], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov word [rax + rcx*8], ntohs
jmp 0x18006ecb1
mov rax, qword [r14 + 8]
mov r9, qword [r13 + rax + 8]
test r9, r9
jne 0x18006ec8c
mov rax, qword [rsp + 0x158]
mov r9, qword [rax]
cmp ebp, 5
mov eax, 2
mov edx, 0x113
cmove ebp, eax
mov rcx, rbx
mov byte [rsp + 0x28], 3
mov r8d, ebp
mov byte [rsp + 0x20], 0
call fcn.180060430
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18006ecd4
movsxd rax, edi
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rsi + 0x3c]
mov dword [rcx], eax
mov eax, dword [rsi + 0x3c]
movzx ebx, byte [rsp + 0x188]
dec eax
mov dword [rdx + 0x6c], eax
inc r15d
add r13, 0x28
lea rdx, [0x18006e6a0]
cmp r15d, dword [r14]
jl 0x18006eb10
mov r12, qword [rsp + 0x158]
mov r13d, dword [rsp + 0x178]
mov r15, qword [rsp + 0x150]
test bl, bl
je 0x18006f232
cmp qword [rsp + 0x88], 0
jne 0x18006f232
mov rdi, qword [rsi + 0x30]
movsxd rbx, dword [rdi + 0x80]
lea eax, [rbx + 1]
mov dword [rdi + 0x80], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x18006ed66
mov rdx, qword [rdi + 0x88]
mov rcx, qword [rdi]
lea eax, [rbx + rbx + 1]
movsxd r8, eax
shl r8, 2
call fcn.180012710
mov qword [rdi + 0x88], rax
mov rcx, qword [rdi + 0x88]
test rcx, rcx
je 0x18006ed78
or edx, 0xffffffff
mov dword [rcx + rbx*4], edx
movzx edi, byte [rsp + 0x190]
or ebp, 0xffffffff
sub ebp, ebx
movzx ebx, byte [r12 + 0x47]
cmp dil, 0xa
je 0x18006ed97
movzx ebx, dil
jmp 0x18006eda2
cmp ebx, 0xa
mov eax, 2
cmove ebx, eax
cmp byte [rsp + 0x60], 0
je 0x18006ee26
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18006edd6
mov eax, dword [rsp + 0x180]
mov r9d, ebp
mov r8d, r13d
mov edx, 0x4f
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.180035690
jmp 0x18006ee0c
mov edx, dword [rsp + 0x180]
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], r13d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], 0
mov word [rax + rcx*8], 0x4f
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
jne 0x18006ee26
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 - 0x15], 0x90
cmp ebx, 5
jne 0x18006eebb
cmp dil, bl
je 0x18006eebb
mov rax, qword [r12 + 0x10]
test rax, rax
je 0x18006eebb
movzx ecx, byte [rax + 0x62]
cmp cl, 4
je 0x18006ee5b
cmp cl, 3
je 0x18006ee5b
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x18006ee42
jmp 0x18006eebb
movsxd rdx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
mov dword [rsp + 0x80], edx
cmp dword [rax + 0x64], edx
jg 0x18006ee92
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0xd]
mov dword [rsp + 0x20], 0
call fcn.180035690
mov dword [rsp + 0x80], eax
jmp 0x18006eebb
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
xor edx, edx
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov qword [rax + rcx*8 + 4], rdx
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov word [rax + rcx*8], ntohs
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov r14d, dword [rsp + 0x168]
cmp dword [rax + 0x64], ecx
jg 0x18006eeed
mov r9d, ebp
mov r8d, r14d
mov edx, 0x46
mov rcx, rsi
mov dword [rsp + 0x20], r13d
call fcn.180035690
xor r9d, r9d
jmp 0x18006ef1c
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r9d, r9d
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r9
mov word [rax + rcx*8], 0x46
test ebx, ebx
jle 0x18006f0f0
cmp ebx, 3
jle 0x18006f0f7
cmp ebx, 4
je 0x18006f08d
cmp ebx, 5
jne 0x18006f0f0
mov rax, qword [rsp + 0xb8]
mov rdi, r9
test dword [rax + 0x2c], 0x40000
je 0x18006efa3
mov rax, qword [r15]
mov ebx, r9d
mov r8, r9
test dword [rax + 0x2c], 0x800000
je 0x18006ef76
mov rdx, r12
mov rcx, r15
call fcn.1800863e0
xor r9d, r9d
mov r8, rax
mov rdx, r8
test r8, r8
je 0x18006ef95
nop
cmp byte [rdx + 0x10], 0x6d
jne 0x18006ef8c
movzx ecx, byte [rdx + 0x11]
or ebx, ecx
mov rdx, qword [rdx + 0x40]
test rdx, rdx
jne 0x18006ef80
test ebx, ebx
mov rdi, r9
cmovne rdi, r8
test rdi, rdi
jne 0x18006efde
mov rax, qword [r15]
test dword [rax + 0x2c], 0x80000
je 0x18006f040
mov rcx, qword [r12 + 0x68]
mov rdx, qword [r12]
lea r8, [rsp + 0x74]
add rcx, 0x50
call fcn.180016ad0
test rax, rax
je 0x18006efd6
cmp qword [rax + 0x10], 0
jne 0x18006efde
cmp qword [r12 + 0x20], 0
je 0x18006f03d
mov rax, qword [r15 + 0x1c8]
mov rcx, r15
mov ebx, 1
test rax, rax
mov r9d, r14d
mov r8, rdi
cmovne rcx, rax
or eax, 0xffffffff
mov rdx, r12
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x170]
mov byte [rsp + 0x48], 1
mov byte [rsp + 0x40], 5
mov byte [rsp + 0x38], 0
mov byte [rcx + 0x20], 1
mov word [rsp + 0x30], bx
mov rcx, r15
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
call fcn.180064340
mov dword [rsp + 0x7c], ebx
jmp 0x18006f156
xor r9d, r9d
cmp qword [r12 + 0x10], 0
je 0x18006f07f
mov rax, qword [r15 + 0x1c8]
mov rcx, r15
mov r8d, r14d
test rax, rax
mov rdx, r12
cmovne rcx, rax
or eax, 0xffffffff
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, dword [rsp + 0x170]
mov byte [rcx + 0x20], 1
mov rcx, r15
call fcn.1800649a0
mov ebx, 1
mov dword [rsp + 0x7c], ebx
jmp 0x18006f156
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18006f0bb
xor r8d, r8d
mov dword [rsp + 0x20], r9d
mov r9d, dword [rsp + 0x198]
lea edx, [r8 + 0xd]
mov rcx, rsi
call fcn.180035690
jmp 0x18006f156
mov edx, dword [rsp + 0x198]
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], r9d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov word [rax + rcx*8], ntohs
jmp 0x18006f159
mov eax, 2
mov ebx, eax
movzx eax, word [r12 + 0x3c]
mov r8, qword [r12]
mov rcx, qword [r15]
test ax, ax
js 0x18006f12d
mov r9, qword [r12 + 8]
movsx rax, ax
lea rdx, str._s._s
shl rax, 5
mov r9, qword [rax + r9]
call fcn.180014420
mov edx, 0x613
jmp 0x18006f13e
lea rdx, str._s.rowid
call fcn.180014420
mov edx, 0xa13
mov r9, rax
mov r8d, ebx
mov rcx, r15
mov byte [rsp + 0x28], 2
mov byte [rsp + 0x20], 0xff
call fcn.180060430
xor r9d, r9d
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18006f17c
movsxd rax, ebp
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rsi + 0x3c]
mov dword [rcx], eax
mov eax, dword [rsi + 0x3c]
mov ebx, dword [rsp + 0x80]
dec eax
mov dword [rdx + 0x6c], eax
test ebx, ebx
je 0x18006f232
movsxd r8, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
mov dword [rsp + 0x98], r8d
cmp dword [rax + 0x64], r8d
jg 0x18006f1c9
mov dword [rsp + 0x20], r9d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xd]
mov rcx, rsi
call fcn.180035690
mov dword [rsp + 0x98], eax
jmp 0x18006f1f6
lea rcx, [r8 + r8*2]
lea eax, [r8 + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov qword [rax + rcx*8 + 4], 0
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov word [rax + rcx*8], ntohs
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov edx, dword [rsi + 0x3c]
mov ecx, ebx
test ebx, ebx
jns 0x18006f20e
lea ecx, [rdx - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
je 0x18006f220
lea rax, [0x1802423a0]
jmp 0x18006f22f
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rbp, qword [r12 + 0x10]
xor r11d, r11d
mov dword [rsp + 0x64], r11d
mov qword [rsp + 0x90], rbp
mov r14d, r11d
mov qword [rsp + 0xa0], r11
test rbp, rbp
je 0x18006ff56
mov rcx, qword [rsp + 0x160]
mov eax, r11d
nop word [rax + rax]
cmp dword [rcx + r14*4], 0
je 0x18006ff28
cmp byte [rsp + 0x61], 0
jne 0x18006f29a
lea r8d, [r13 + 1]
mov rdx, r12
mov rcx, rsi
call fcn.18006c680
mov eax, dword [rsp + 0x64]
mov byte [rsp + 0x61], 1
mov rdi, qword [rsi + 0x30]
mov ecx, dword [rsp + 0x170]
movsxd rbx, dword [rdi + 0x80]
lea r12d, [rax + rcx]
lea eax, [rbx + 1]
mov dword [rsp + 0x74], r12d
mov dword [rdi + 0x80], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x18006f2e6
mov rdx, qword [rdi + 0x88]
mov rcx, qword [rdi]
lea eax, [rbx + rbx + 1]
movsxd r8, eax
shl r8, 2
call fcn.180012710
mov qword [rdi + 0x88], rax
mov rcx, qword [rdi + 0x88]
or r9d, 0xffffffff
test rcx, rcx
je 0x18006f2fa
mov dword [rcx + rbx*4], r9d
mov r13d, r9d
sub r13d, ebx
cmp qword [rbp + 0x48], 0
mov dword [rsp + 0x78], r13d
je 0x18006f3cb
mov rax, qword [rsp + 0x160]
movsxd rcx, dword [rsi + 0x3c]
mov edx, dword [rax + r14*4]
mov rax, qword [rsi + 0x30]
cmp dword [rax + 0x64], ecx
jg 0x18006f345
xor r8d, r8d
mov r9d, edx
mov rcx, rsi
lea edx, [r8 + 0x19]
mov dword [rsp + 0x20], 0
call fcn.180035690
jmp 0x18006f374
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r8d, r8d
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], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov word [rax + rcx*8], 0x19
mov eax, dword [rsp + 0x178]
mov rbx, qword [r15]
xor r9d, r9d
inc eax
xor r8d, r8d
mov rcx, rbx
mov dword [r15 + 0x70], eax
mov rdx, qword [rbp + 0x48]
call fcn.18004d170
cmp byte [rbx + 0x55], 0
mov rdi, rax
jne 0x18006f3b3
mov r9d, reloc.WS2_32.dll_recv
mov r8d, r13d
mov rdx, rax
mov rcx, r15
call fcn.180052890
mov rdx, rdi
mov rcx, rbx
call fcn.18004cfa0
xor r11d, r11d
or r9d, 0xffffffff
mov dword [r15 + 0x70], r11d
jmp 0x18006f3ce
xor r11d, r11d
movzx ecx, word [rbp + 0x60]
mov edx, dword [r15 + 0x48]
mov r14d, dword [r15 + 0x4c]
mov dword [rsp + 0x70], r14d
cmp ecx, edx
jg 0x18006f3f3
lea eax, [rcx + r14]
sub edx, ecx
mov dword [r15 + 0x4c], eax
mov dword [r15 + 0x48], edx
jmp 0x18006f406
mov eax, dword [r15 + 0x58]
lea r14d, [rax + 1]
add eax, ecx
mov dword [rsp + 0x70], r14d
mov dword [r15 + 0x58], eax
cmp r11w, word [rbp + 0x60]
jae 0x18006f55a
mov ebx, r14d
mov r13, r11
mov r12, r11
neg r14d
nop dword [rax]
mov rax, qword [rbp + 8]
movsx ecx, word [rax + r12]
cmp ecx, 0xfffffffe
jne 0x18006f48f
mov eax, dword [rsp + 0x178]
xor r9d, r9d
xor r8d, r8d
inc eax
mov dword [r15 + 0x70], eax
mov rax, qword [rbp + 0x50]
mov rbp, qword [r15]
mov rcx, qword [rax + 8]
mov rdx, qword [r13 + rcx]
mov rcx, rbp
call fcn.18004d170
cmp byte [rbp + 0x55], 0
mov rdi, rax
jne 0x18006f470
mov r8d, ebx
mov rdx, rax
mov rcx, r15
call fcn.180051f00
mov rdx, rdi
mov rcx, rbp
call fcn.18004cfa0
mov rbp, qword [rsp + 0x90]
xor r11d, r11d
mov dword [r15 + 0x70], r11d
jmp 0x18006f530
cmp ecx, 0xffffffff
je 0x18006f4b2
mov rax, qword [rsp + 0x158]
movsx eax, word [rax + 0x3c]
cmp ecx, eax
je 0x18006f4b2
mov eax, dword [rsp + 0x178]
lea r8d, [rcx + rax + 1]
jmp 0x18006f4d5
cmp dword [rsp + 0xac], ebx
je 0x18006f530
cmp qword [rbp + 0x48], 0
mov r8d, dword [rsp + 0x178]
mov eax, ebx
cmovne eax, r9d
mov dword [rsp + 0xac], eax
mov rax, qword [rsi + 0x30]
test ecx, ecx
movsxd rcx, dword [rsi + 0x3c]
mov edx, r11d
sets dl
add edx, 0x1f
cmp dword [rax + 0x64], ecx
jg 0x18006f502
mov r9d, ebx
mov rcx, rsi
mov dword [rsp + 0x20], r11d
call fcn.180035690
xor r11d, r11d
jmp 0x18006f530
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8], dl
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov byte [rax + rcx*8 + 1], 0
movzx eax, word [rbp + 0x60]
inc ebx
add r12, 2
lea ecx, [r14 + rbx]
add r13, 0x28
mov r9d, 0xffffffff
cmp ecx, eax
jl 0x18006f420
mov r12d, dword [rsp + 0x74]
mov r13d, dword [rsp + 0x78]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x160]
movzx r8d, word [rbp + 0x60]
mov edx, dword [rcx + rax*4]
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov r14d, dword [rsp + 0x70]
cmp dword [rax + 0x64], ecx
jg 0x18006f5a0
mov dword [rsp + 0x20], edx
mov r9d, r8d
mov rcx, rsi
mov r8d, r14d
mov edx, gethostbyname
call fcn.180035690
xor r11d, r11d
jmp 0x18006f5cc
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], r14d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r11
mov word [rax + rcx*8], gethostbyname
movzx eax, word [rbp + 0x60]
lea rcx, [r15 + 0x9c]
mov r8d, 0xa
lea r9d, [rax + r14 - 1]
mov edx, dword [rcx]
cmp edx, r14d
jl 0x18006f610
cmp edx, r9d
jg 0x18006f610
cmp byte [rcx - 6], 0
je 0x18006f60d
movzx eax, byte [r15 + 0x1f]
cmp al, 8
jae 0x18006f609
movzx eax, al
mov dword [r15 + rax*4 + 0x28], edx
inc byte [r15 + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r11d
add rcx, 0x14
dec r8
jne 0x18006f5e2
cmp byte [rsp + 0x60], r8b
je 0x18006f66c
cmp qword [rsp + 0x88], rbp
jne 0x18006f66c
cmp byte [rsp + 0x188], r8b
jne 0x18006f66c
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18006f657
movsxd rax, r13d
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rsi + 0x3c]
mov dword [rcx], eax
mov eax, dword [rsi + 0x3c]
mov r12, qword [rsp + 0x158]
dec eax
mov dword [rdx + 0x6c], eax
jmp 0x18006ff14
movzx edi, byte [rbp + 0x62]
test edi, edi
jne 0x18006f711
movzx r10d, word [rbp + 0x60]
lea rcx, [r15 + 0x9c]
lea r8d, [rdi + 0xa]
lea r9d, [r14 + r10 - 1]
nop dword [rax]
mov edx, dword [rcx]
cmp edx, r14d
jl 0x18006f6be
cmp edx, r9d
jg 0x18006f6be
cmp byte [rcx - 6], 0
je 0x18006f6bb
movzx eax, byte [r15 + 0x1f]
cmp al, 8
jae 0x18006f6b7
movzx eax, al
mov dword [r15 + rax*4 + 0x28], edx
inc byte [r15 + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r11d
add rcx, 0x14
dec r8
jne 0x18006f690
cmp r10d, dword [r15 + 0x48]
jle 0x18006f6d5
mov dword [r15 + 0x48], r10d
mov dword [r15 + 0x4c], r14d
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18006f657
mov r12, qword [rsp + 0x158]
movsxd rax, r13d
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
jmp 0x18006ff14
movzx eax, byte [rsp + 0x190]
cmp al, 0xa
je 0x18006f722
movzx edi, al
jmp 0x18006f72d
cmp edi, 0xa
mov eax, 2
cmove edi, eax
mov rax, qword [rsi + 0x30]
movsxd rdx, dword [rsi + 0x3c]
movzx ebx, word [rbp + 0x5e]
mov dword [rsp + 0x74], edi
cmp dword [rax + 0x64], edx
jg 0x18006f75e
mov r9d, r13d
mov r8d, r12d
mov edx, 0x43
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.180035690
mov edx, eax
jmp 0x18006f78b
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], r12d
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r11
mov word [rax + rcx*8], 0x43
mov rcx, qword [rsi]
mov r8, rbx
cmp byte [rcx + 0x55], 0
je 0x18006f7a3
mov edx, 0xfffffff2
call fcn.180036130
jmp 0x18006f7d9
test edx, edx
jns 0x18006f7ac
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 0x18006f7d2
mov r9d, 0xfffffff2
mov rcx, rsi
call fcn.1800363f0
jmp 0x18006f7d9
mov dword [rdx + 0x10], ebx
mov byte [rdx + 1], 0xf2
mov rbx, qword [rsp + 0x88]
cmp rbp, rbx
jne 0x18006f7f0
mov r13d, r14d
mov dword [rsp + 0x68], r14d
jmp 0x18006f829
mov ecx, dword [r15 + 0x48]
mov edx, dword [rsp + 0x6c]
mov r13d, dword [r15 + 0x4c]
mov dword [rsp + 0x68], r13d
cmp edx, ecx
jg 0x18006f816
lea eax, [r13 + rdx]
sub ecx, edx
mov dword [r15 + 0x4c], eax
mov dword [r15 + 0x48], ecx
jmp 0x18006f829
mov eax, dword [r15 + 0x58]
lea r13d, [rax + 1]
add eax, edx
mov dword [rsp + 0x68], r13d
mov dword [r15 + 0x58], eax
cmp byte [rsp + 0x60], 0
jne 0x18006f839
cmp edi, 5
jne 0x18006fc68
mov rax, qword [rsp + 0x158]
test byte [rax + 0x46], 0x20
jne 0x18006f93a
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18006f874
xor eax, eax
mov r9d, r13d
mov r8d, r12d
lea edx, [rax + 0x71]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.180035690
xor r8d, r8d
jmp 0x18006f8a4
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r8d, r8d
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r13d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov word [rax + rcx*8], WSAStartup
cmp byte [rsp + 0x60], 0
je 0x18006fc68
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18006f8de
mov eax, dword [rsp + 0x180]
mov r9d, dword [rsp + 0x78]
mov r8d, r13d
mov edx, 0x4f
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.180035690
jmp 0x18006f914
mov edx, dword [rsp + 0x78]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsp + 0x180]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r13d
mov qword [rax + rcx*8 + 0x10], r8
mov word [rax + rcx*8], 0x4f
mov dword [rax + rcx*8 + 0xc], edx
mov rax, qword [rsi]
xor r11d, r11d
cmp byte [rax + 0x55], r11b
jne 0x18006fc6b
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 - 0x15], 0x90
jmp 0x18006fc6b
cmp rbp, rbx
je 0x18006fa34
xor r10d, r10d
cmp r10w, word [rbx + 0x5e]
jae 0x18006fa34
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x88]
mov ebp, r13d
neg ebp
mov ebx, r13d
mov edi, r10d
or r13d, 0xffffffff
movzx edx, word [r14 + 0x60]
mov ecx, r10d
test edx, edx
jle 0x18006f9a0
mov rax, qword [r15 + 8]
mov r8, qword [r14 + 8]
movzx r9d, word [rdi + rax]
nop dword [rax]
movsxd rax, ecx
cmp r9w, word [r8 + rax*2]
je 0x18006f9a4
inc ecx
cmp ecx, edx
jl 0x18006f990
movzx ecx, r13w
mov rax, qword [rsi + 0x30]
movsx edx, cx
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18006f9d0
mov r9d, edx
mov r8d, r12d
mov rcx, rsi
mov edx, 0x2f
mov dword [rsp + 0x20], ebx
call fcn.180035690
xor r10d, r10d
jmp 0x18006f9fb
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], r12d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], r10
mov word [rax + rcx*8], gethostbyname
movzx eax, word [r15 + 0x5e]
inc ebx
add rdi, 2
lea ecx, [rbp + rbx]
cmp ecx, eax
jl 0x18006f970
mov r15, qword [rsp + 0x150]
mov r13d, dword [rsp + 0x68]
mov r14d, dword [rsp + 0x70]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
cmp byte [rsp + 0x60], 0
je 0x18006fc68
movzx ecx, word [rbx + 0x5e]
mov eax, dword [rsi + 0x3c]
mov dword [rsp + 0xa8], 0x4e
lea edx, [rcx + rax]
mov eax, dword [rbp + 0x64]
and al, 3
mov dword [rsp + 0xb0], edx
mov edx, r13d
cmp al, 2
cmove edx, r14d
xor r11d, r11d
mov r13d, r11d
mov dword [rsp + 0xc0], edx
test ecx, ecx
jle 0x18006fc6b
mov r14d, r11d
mov r15d, r11d
nop word [rax + rax]
mov rax, qword [rbx + 0x40]
mov r10, qword [rsp + 0x150]
mov rbp, qword [r15 + rax]
mov rax, qword [r10]
movzx r12d, byte [rax + 0x52]
movzx ebx, byte [rax + 0xa5]
test rbp, rbp
je 0x18006fad0
movzx r8d, bl
mov rdx, rbp
mov rcx, rax
call fcn.1800615d0
mov r10, qword [rsp + 0x150]
mov rdi, rax
jmp 0x18006fad4
mov rdi, qword [rax + 0x10]
test rdi, rdi
je 0x18006fae9
movzx eax, r12b
dec eax
cdqe
lea rcx, [rax + rax*4]
lea rdi, [rdi + rcx*8]
test bl, bl
jne 0x18006fb0e
test rdi, rdi
je 0x18006faf9
cmp qword [rdi + 0x18], 0
jne 0x18006fb0e
mov r9, rbp
mov r8, rdi
movzx edx, r12b
mov rcx, r10
call fcn.1800614c0
mov rdi, rax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rbx + 8]
movsx edx, word [rcx + r14]
movzx ecx, word [rbx + 0x5e]
dec ecx
cmp r13d, ecx
jne 0x18006fb47
mov r10d, dword [rsp + 0x78]
mov r11d, 0x4f
mov dword [rsp + 0xb0], r10d
mov dword [rsp + 0xa8], r11d
jmp 0x18006fb57
mov r10d, dword [rsp + 0xb0]
mov r11d, dword [rsp + 0xa8]
mov r8d, dword [rsp + 0x180]
mov rax, qword [rsi + 0x30]
movsxd r9, dword [rsi + 0x3c]
inc r8d
add r8d, edx
cmp dword [rax + 0x64], r9d
jg 0x18006fb94
mov eax, dword [rsp + 0xc0]
mov r9d, r10d
mov edx, r11d
add eax, r13d
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.180035690
mov r9d, eax
jmp 0x18006fbcf
mov rcx, qword [rsi + 8]
lea rdx, [r9 + r9*2]
lea eax, [r9 + 1]
mov dword [rsi + 0x3c], eax
mov eax, dword [rsp + 0xc0]
mov byte [rcx + rdx*8], r11b
add eax, r13d
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], r8d
mov dword [rcx + rdx*8 + 0xc], eax
xor eax, eax
mov dword [rcx + rdx*8 + 8], r10d
mov qword [rcx + rdx*8 + 0x10], rax
mov byte [rcx + rdx*8 + 1], al
mov rcx, qword [rsi]
cmp byte [rcx + 0x55], 0
je 0x18006fbe7
mov r8, rdi
mov edx, 0xfffffffc
call fcn.180036130
jmp 0x18006fc29
test r9d, r9d
jns 0x18006fbf3
mov r9d, dword [rsi + 0x3c]
dec r9d
movsxd rax, r9d
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x18006fc1c
mov r9d, 0xfffffffc
mov r8, rdi
mov rcx, rsi
call fcn.1800363f0
jmp 0x18006fc29
test rdi, rdi
je 0x18006fc29
mov qword [rdx + 0x10], rdi
mov byte [rdx + 1], 0xfc
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
jne 0x18006fc43
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 - 0x15], 0x90
movzx eax, word [rbx + 0x5e]
inc r13d
add r15, 8
add r14, 2
cmp r13d, eax
jl 0x18006fa90
mov r15, qword [rsp + 0x150]
mov r14d, dword [rsp + 0x70]
xor r11d, r11d
mov edx, dword [rsp + 0x74]
test edx, edx
jle 0x18006fd47
cmp edx, 3
jle 0x18006fd1f
cmp edx, 4
jne 0x18006fd47
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18006fccf
mov r9d, dword [rsp + 0x198]
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0xd]
mov dword [rsp + 0x20], r11d
call fcn.180035690
mov ebx, dword [rsp + 0x68]
mov rbp, qword [rsp + 0x90]
mov r12, qword [rsp + 0x158]
mov edi, dword [rsp + 0x6c]
jmp 0x18006fe25
mov edx, dword [rsp + 0x198]
mov ebx, dword [rsp + 0x68]
mov rbp, qword [rsp + 0x90]
mov r12, qword [rsp + 0x158]
mov edi, dword [rsp + 0x6c]
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], r11d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov word [rax + rcx*8], ntohs
jmp 0x18006fe28
mov rbp, qword [rsp + 0x90]
mov rcx, r15
mov r8, rbp
call fcn.180060550
mov ebx, dword [rsp + 0x68]
mov r12, qword [rsp + 0x158]
mov edi, dword [rsp + 0x6c]
jmp 0x18006fe25
mov rax, qword [r15 + 0x1c8]
mov rcx, r15
mov r8, r11
test rax, rax
cmovne rcx, rax
mov rax, qword [rsp + 0xb8]
mov byte [rcx + 0x20], 1
test dword [rax + 0x2c], 0x40000
je 0x18006fdbe
mov rax, qword [r15]
mov ebx, r11d
mov r9, r11
test dword [rax + 0x2c], 0x800000
je 0x18006fd98
mov rdx, qword [rsp + 0x158]
mov rcx, r15
call fcn.1800863e0
xor r11d, r11d
mov r9, rax
mov rdx, r9
test r9, r9
je 0x18006fdb5
cmp byte [rdx + 0x10], 0x6d
jne 0x18006fdac
movzx ecx, byte [rdx + 0x11]
or ebx, ecx
mov rdx, qword [rdx + 0x40]
test rdx, rdx
jne 0x18006fda0
mov r8, r11
test ebx, ebx
cmovne r8, r9
mov rbp, qword [rsp + 0x90]
mov edi, dword [rsp + 0x6c]
mov r12, qword [rsp + 0x158]
cmp rbp, qword [rsp + 0x88]
mov ebx, dword [rsp + 0x68]
mov r9d, dword [rsp + 0x168]
sete al
or edx, 0xffffffff
mov rcx, r15
mov dword [rsp + 0x50], edx
mov byte [rsp + 0x48], al
mov eax, dword [rsp + 0x170]
mov byte [rsp + 0x40], 5
mov byte [rsp + 0x38], 0
mov word [rsp + 0x30], di
mov rdx, r12
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call fcn.180064340
mov dword [rsp + 0x7c], 1
xor r11d, r11d
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18006fe4d
movsxd rax, dword [rsp + 0x78]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rsi + 0x3c]
mov dword [rcx], eax
mov eax, dword [rsi + 0x3c]
lea rcx, [r15 + 0x9c]
mov r8d, 0xa
dec eax
mov dword [rdx + 0x6c], eax
movzx r10d, word [rbp + 0x60]
lea r9d, [r14 + r10 - 1]
nop dword [rax]
mov edx, dword [rcx]
cmp edx, r14d
jl 0x18006fe9e
cmp edx, r9d
jg 0x18006fe9e
cmp byte [rcx - 6], 0
je 0x18006fe9b
movzx eax, byte [r15 + 0x1f]
cmp al, 8
jae 0x18006fe97
movzx eax, al
mov dword [r15 + rax*4 + 0x28], edx
inc byte [r15 + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r11d
add rcx, 0x14
dec r8
jne 0x18006fe70
cmp r10d, dword [r15 + 0x48]
jle 0x18006feb5
mov dword [r15 + 0x48], r10d
mov dword [r15 + 0x4c], r14d
cmp ebx, r14d
je 0x18006ff14
lea r9d, [rbx + rdi - 1]
lea rcx, [r15 + 0x9c]
mov r8d, 0xa
nop dword [rax]
mov edx, dword [rcx]
cmp edx, ebx
jl 0x18006fefd
cmp edx, r9d
jg 0x18006fefd
cmp byte [rcx - 6], 0
je 0x18006fefa
movzx eax, byte [r15 + 0x1f]
cmp al, 8
jae 0x18006fef6
movzx eax, al
mov dword [r15 + rax*4 + 0x28], edx
inc byte [r15 + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r11d
add rcx, 0x14
dec r8
jne 0x18006fed0
cmp edi, dword [r15 + 0x48]
jle 0x18006ff14
mov dword [r15 + 0x48], edi
mov dword [r15 + 0x4c], ebx
mov r14, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x160]
mov rbp, qword [rbp + 0x28]
mov r13d, dword [rsp + 0x178]
inc eax
inc r14
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r14
test rbp, rbp
jne 0x18006f270
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x18006fffd
movsxd rcx, dword [rsi + 0x3c]
lea r8d, [rax + 1]
mov rax, qword [rsi + 0x30]
cmp dword [rax + 0x64], ecx
jg 0x18006ff8f
mov r9d, r8d
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0xd]
mov dword [rsp + 0x20], r11d
call fcn.180035690
jmp 0x18006ffbc
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], r11d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov word [rax + rcx*8], ntohs
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov ecx, dword [rsp + 0x98]
mov edx, dword [rsi + 0x3c]
test ecx, ecx
jns 0x18006ffd9
lea ecx, [rdx - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
je 0x18006ffeb
lea rax, [0x1802423a0]
jmp 0x18006fffa
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rax, qword [rsp + 0x1a0]
mov ecx, dword [rsp + 0x7c]
mov dword [rax], ecx
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret