Function at 0x1400ade80
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x68
xor r14d, r14d
mov rdi, r8
mov r12, rcx
mov dword [rbp + 0x38], 0
mov dword [rbp + 0x40], 0
mov dword [rbp - 0x34], 0
test r8, r8
je 0x1400aefeb
cmp dword [r8 + 0x8c10], 0xc0dedbad
jne 0x1400aefeb
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], r13
xor r13d, r13d
mov qword [rsp + 0x48], r15
lea ebx, [r14 + 3]
cmp dword [r8 + 0x8acc], r13d
je 0x1400adf35
mov r9, qword [r8 + 0x8ad8]
lea rdx, str.Pipe_broke:_handle_0x_p__url___s_n
mov rcx, r8
call fcn.1400b99e0
mov eax, dword [rdi + 0x18]
cmp eax, 0x10
jge 0x1400adf25
cmp eax, 2
je 0x1400adf1d
mov dword [rdi + 0x18], 2
or r14d, 0xffffffff
mov dword [rdi + 0x1c], r13d
mov dword [rdi + 0x8acc], r13d
mov qword [rdi + 0x10], r13
jmp 0x1400aef9c
mov rcx, qword [r8 + 0x10]
test rcx, rcx
jne 0x1400adf83
mov r8d, dword [r8 + 0x18]
lea eax, [r8 - 3]
cmp eax, 0xb
ja 0x1400adf7e
lea rdx, str.In_state__d_with_no_easy_conn__bail_out__n
mov rcx, rdi
call fcn.1400b9ac0
mov eax, 4
mov r13, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x48]
add rsp, 0x68
pop r14
pop r12
pop rdi
pop rbp
ret
test rcx, rcx
je 0x1400adf90
mov eax, dword [rdi + 0x18]
sub eax, ebx
cmp eax, 0xc
ja 0x1400adf90
mov qword [rcx], rdi
cmp qword [rdi + 0x10], r13
je 0x1400ae12b
mov ecx, dword [rdi + 0x18]
lea eax, [rcx - 2]
cmp eax, 0xd
ja 0x1400ae12b
xor r8d, r8d
cmp ecx, 7
lea rdx, [rbp + 0x30]
setle r8b
mov rcx, rdi
call fcn.1400b6760
test eax, eax
jns 0x1400ae12b
mov eax, dword [rdi + 0x18]
mov rcx, qword [rdi + 0x7d0]
cmp eax, ebx
jne 0x1400ae017
mov edx, dword [rbp + 0x34]
mov rax, rcx
shr rax, 0x20
sub edx, eax
mov eax, 0x10624dd3
imul edx
mov eax, dword [rbp + 0x30]
sar edx, 6
sub eax, ecx
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
lea rdx, str.Resolving_timed_out_after__ld_milliseconds
imul ecx, eax, 0x3e8
add r8d, ecx
mov rcx, rdi
call fcn.1400b9ac0
jmp 0x1400ae0f9
cmp eax, 4
mov rax, rcx
jne 0x1400ae05e
mov edx, dword [rbp + 0x34]
shr rax, 0x20
sub edx, eax
mov eax, 0x10624dd3
imul edx
mov eax, dword [rbp + 0x30]
sar edx, 6
sub eax, ecx
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
lea rdx, str.Connection_timed_out_after__ld_milliseconds
imul ecx, eax, 0x3e8
add r8d, ecx
mov rcx, rdi
call fcn.1400b9ac0
jmp 0x1400ae0f9
mov r8, qword [rdi + 0x90]
shr rax, 0x20
cmp r8, 0xffffffffffffffff
je 0x1400ae0bc
mov r9, qword [rdi + 0xd0]
mov qword [rsp + 0x20], r8
mov rdx, r9
sub r9d, ecx
mov rcx, rdi
shr rdx, 0x20
sub edx, eax
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, r9d, 0x3e8
mov r9, qword [rdi + 0xb0]
add edx, eax
mov r8d, edx
lea rdx, [0x140265110]
call fcn.1400b9ac0
jmp 0x1400ae0f9
mov edx, dword [rbp + 0x34]
mov r9, qword [rdi + 0xb0]
sub edx, eax
mov eax, 0x10624dd3
imul edx
mov eax, dword [rbp + 0x30]
sar edx, 6
sub eax, ecx
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
lea rdx, [0x140265160]
imul ecx, eax, 0x3e8
add r8d, ecx
mov rcx, rdi
call fcn.1400b9ac0
mov rax, qword [rdi + 0x10]
mov dword [rax + 0x2a8], 1
mov dword [rdi + 0x1c], 0x1c
cmp dword [rdi + 0x18], 0x10
je 0x1400aefa2
mov rax, qword [rdi + 0x78]
mov dword [rdi + 0x18], reloc.WS2_32.dll_recv
dec dword [rax + 0x1c]
jmp 0x1400aef9c
movsxd rax, dword [rdi + 0x18]
cmp eax, 0x11
ja case.default.0x1400ae149
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0xaeffc]
add rcx, rdx
jmp rcx
mov rcx, rdi
call fcn.1400c0ce0
mov dword [rdi + 0x1c], eax
test eax, eax
jne case.0x1400ae149.1
cmp dword [rdi + 0x18], 2
je 0x1400ae16b
mov dword [rdi + 0x18], 2
mov edx, 1
mov rcx, rdi
call fcn.1400c6990
or r14d, 0xffffffff
jmp case.0x1400ae149.1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r8, [rbp - 0x34]
mov dword [rbp - 0x34], r13d
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [rbp - 0x30], edx
imul eax, edx, 0x3e8
sub ecx, eax
lea rdx, [rdi + 0x10]
imul eax, ecx, 0x3e8
mov dword [rbp - 0x2c], eax
mov rax, qword [rbp - 0x30]
mov rcx, rdi
mov qword [rdi + 0x7d0], rax
call fcn.1400b5710
mov r15d, dword [rbp - 0x34]
mov ebx, eax
test eax, eax
jne 0x1400ae1fe
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx + 0x408]
cmp qword [rax + 0x18], r13
jne 0x1400ae205
mov rax, qword [rcx + 0x410]
cmp qword [rax + 0x18], r13
jne 0x1400ae205
test r15d, r15d
jne 0x1400ae226
lea rdx, [rbp + 0x38]
call fcn.1400b6020
mov ebx, eax
cmp ebx, 0x59
jne 0x1400ae20e
jmp 0x1400ae222
mov dword [rbp + 0x38], 1
jmp 0x1400ae226
test ebx, ebx
je 0x1400ae226
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400ae226
xor edx, edx
call fcn.1400b2720
mov qword [rdi + 0x10], r13
mov dword [rdi + 0x1c], ebx
cmp ebx, 0x59
jne 0x1400ae260
cmp dword [rdi + 0x18], 1
je 0x1400ae23b
mov dword [rdi + 0x18], 1
mov rcx, qword [r12 + 0x28]
mov r8, rdi
mov rdx, qword [rcx + 8]
call fcn.1400c1850
xor ecx, ecx
mov edx, 0x1b
test eax, eax
cmove ecx, edx
mov dword [rdi + 0x1c], ecx
jmp 0x1400ae932
test ebx, ebx
jne 0x1400ae932
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.1400be860
mov dword [rdi + 0x1c], eax
test eax, eax
jne 0x1400ae92c
test r15d, r15d
je 0x1400ae298
lea ebx, [rax + 3]
cmp dword [rdi + 0x18], ebx
je case.0x1400ae149.1
mov dword [rdi + 0x18], ebx
jmp case.0x1400ae149.1
or r14d, 0xffffffff
cmp dword [rbp + 0x38], r13d
je 0x1400ae2d3
mov eax, dword [r12 + 0x58]
neg eax
sbb ecx, ecx
add ecx, 8
cmp dword [rdi + 0x18], ecx
je 0x1400ae932
mov dword [rdi + 0x18], ecx
lea ebx, [r14 + 4]
cmp ecx, 0x10
jne case.0x1400ae149.1
mov rax, qword [rdi + 0x78]
dec dword [rax + 0x1c]
jmp case.0x1400ae149.1
mov rax, qword [rdi + 0x10]
cmp dword [rax + 0x7d0], 1
jne 0x1400ae555
cmp dword [rdi + 0x18], 5
mov ebx, 3
je case.0x1400ae149.1
mov dword [rdi + 0x18], 5
jmp case.0x1400ae149.1
mov r15, qword [rdi + 0x10]
cmp qword [rdi + 0x88], r13
je 0x1400ae316
mov edx, ebx
mov rcx, rdi
call fcn.1400c17d0
mov r8d, dword [r15 + 0xe8]
mov rdx, qword [r15 + 0xb8]
lea r9, [rbp - 0x34]
mov rcx, r15
call fcn.1400b8210
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400ae364
inc dword [rax + 0x10]
mov qword [r15 + 0x670], rax
mov dword [r15 + 0x678], 1
lea rdx, str.Hostname_was_found_in_DNS_cache_n
mov rcx, rdi
mov dword [rdi + 0x1c], r13d
call fcn.1400b99e0
cmp dword [rbp - 0x34], r13d
je 0x1400ae379
lea rdx, [0x1402651e0]
mov rcx, rdi
call fcn.1400b99e0
mov r8, qword [rdi + 0x88]
test r8, r8
je 0x1400ae3a2
test byte [r8], 8
je 0x1400ae3a2
mov rax, qword [r8 + 0x10]
test rax, rax
je 0x1400ae3a2
mov r8, qword [r8 + 0x18]
mov edx, 3
mov rcx, rdi
call rax
test rbx, rbx
jne 0x1400ae3bb
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x30]
call fcn.1400b8ef0
mov rbx, qword [rbp - 0x30]
mov dword [rdi + 0x1c], eax
mov rdx, rdi
mov rcx, r12
call fcn.1400af3c0
test rbx, rbx
je 0x1400ae46b
mov rbx, qword [rdi + 0x10]
mov rax, qword [rbx + 0x670]
test rax, rax
je 0x1400ae3ea
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x670], r13
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.1400b6020
mov r15d, eax
test eax, eax
je 0x1400ae407
xor edx, edx
mov rcx, rbx
call fcn.1400b2720
mov dword [rdi + 0x1c], r15d
test r15d, r15d
je 0x1400ae416
mov qword [rdi + 0x10], r13
jmp 0x1400ae46b
or r14d, 0xffffffff
cmp dword [rbp + 0x38], r13d
je 0x1400ae442
mov eax, dword [r12 + 0x58]
neg eax
sbb ecx, ecx
add ecx, 8
cmp dword [rdi + 0x18], ecx
je 0x1400ae46b
mov dword [rdi + 0x18], ecx
cmp ecx, 0x10
jne 0x1400ae46b
mov rax, qword [rdi + 0x78]
dec dword [rax + 0x1c]
jmp 0x1400ae46b
mov rax, qword [rdi + 0x10]
cmp dword [rax + 0x7d0], 1
jne 0x1400ae45e
cmp dword [rdi + 0x18], 5
je 0x1400ae46b
mov dword [rdi + 0x18], 5
jmp 0x1400ae46b
cmp dword [rdi + 0x18], 4
je 0x1400ae46b
mov dword [rdi + 0x18], 4
mov ebx, 3
cmp dword [rdi + 0x1c], r13d
je case.0x1400ae149.1
lea r13d, [rbx - 2]
jmp case.0x1400ae149.1
mov rbx, qword [rdi + 0x10]
mov rcx, rbx
mov dword [rbx + 0x2a8], r13d
call fcn.1400c9a80
test eax, eax
jne 0x1400ae530
cmp dword [rbx + 0x7d0], 1
je 0x1400ae52e
mov rax, qword [rbx + 0x328]
test byte [rax + 0x78], 1
je 0x1400ae527
lea r9, [rbp + 0x38]
mov rcx, rbx
mov dword [rbx + 0x1f0], 1
call fcn.1400d09b0
test eax, eax
jne 0x1400ae51b
cmp dword [rbp + 0x38], r13d
je 0x1400ae52e
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [rbp - 0x30], edx
imul eax, edx, 0x3e8
mov rdx, qword [rbx + 0x7d0]
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rbp - 0x2c], eax
mov rcx, qword [rbp - 0x30]
call fcn.1400ba310
movsd qword [rbx + 0x7a8], xmm0
jmp 0x1400ae52e
mov dword [rbx + 0x2a8], 1
jmp 0x1400ae530
mov dword [rbp + 0x38], 1
xor eax, eax
mov rcx, qword [rdi + 0x10]
mov dword [rdi + 0x1c], eax
cmp dword [rcx + 0x300], r13d
jne 0x1400ae5a8
test eax, eax
jne 0x1400ae932
cmp dword [rcx + 0x7d0], 2
jne 0x1400ae932
cmp dword [rdi + 0x18], 4
mov ebx, 3
je case.0x1400ae149.1
mov dword [rdi + 0x18], 4
jmp case.0x1400ae149.1
mov rcx, qword [rdi + 0x10]
lea r8, [rbp - 0x34]
call fcn.1400b7200
mov ebx, dword [rbp - 0x34]
mov dword [rdi + 0x1c], eax
test ebx, ebx
je 0x1400ae59b
test eax, eax
jne 0x1400ae59b
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp + 0x38]
call fcn.1400b3530
mov dword [rdi + 0x1c], eax
mov rax, qword [rdi + 0x10]
cmp dword [rax + 0x300], r13d
je 0x1400ae5ca
or r14d, 0xffffffff
cmp dword [rdi + 0x18], 2
mov dword [rdi + 0x1c], r13d
lea ebx, [r14 + 4]
je case.0x1400ae149.1
mov dword [rdi + 0x18], 2
jmp case.0x1400ae149.1
cmp dword [rdi + 0x1c], r13d
jne 0x1400ae92c
test ebx, ebx
je 0x1400ae932
cmp dword [rbp + 0x38], r13d
jne 0x1400ae617
cmp dword [rax + 0x7d0], 1
jne 0x1400ae601
cmp dword [rdi + 0x18], 5
je 0x1400ae637
mov dword [rdi + 0x18], 5
or r14d, 0xffffffff
jmp 0x1400ae932
cmp dword [rdi + 0x18], 6
je 0x1400ae637
mov dword [rdi + 0x18], 6
or r14d, 0xffffffff
jmp 0x1400ae932
mov eax, dword [r12 + 0x58]
neg eax
sbb ecx, ecx
add ecx, 8
cmp dword [rdi + 0x18], ecx
je 0x1400ae637
mov dword [rdi + 0x18], ecx
cmp ecx, 0x10
jne 0x1400ae637
mov rax, qword [rdi + 0x78]
dec dword [rax + 0x1c]
or r14d, 0xffffffff
jmp 0x1400ae932
mov rcx, qword [rdi + 0x10]
xor edx, edx
test rcx, rcx
je 0x1400ae670
mov rax, qword [rcx + 0x320]
cmp qword [rax + 0x30], rdx
je 0x1400ae670
mov dword [rbp + 0x38], edx
mov rax, qword [rcx + 0x320]
lea rdx, [rbp + 0x38]
call qword [rax + 0x30]
mov edx, eax
mov eax, dword [rbp + 0x38]
jmp 0x1400ae678
mov eax, 1
mov dword [rbp + 0x38], eax
mov dword [rdi + 0x1c], edx
test edx, edx
jne 0x1400ae6b0
test eax, eax
je case.0x1400ae149.1
mov eax, dword [r12 + 0x58]
neg eax
sbb ecx, ecx
add ecx, 8
cmp dword [rdi + 0x18], ecx
je 0x1400ae6a7
mov dword [rdi + 0x18], ecx
cmp ecx, 0x10
jne 0x1400ae6a7
mov rax, qword [rdi + 0x78]
dec dword [rax + 0x1c]
or r14d, 0xffffffff
jmp case.0x1400ae149.1
lea rcx, [rdi + 0x10]
mov r8d, 1
call fcn.1400b6270
mov r13d, 1
jmp case.0x1400ae149.1
mov rcx, qword [rdi + 0x10]
cmp dword [rcx + 0x404], r13d
jne case.0x1400ae149.1
mov rax, qword [rcx + 0x408]
mov rdx, qword [rax]
test rdx, rdx
je case.0x1400ae149.1
xor eax, eax
cmp qword [rdx], rdi
sete al
test eax, eax
je case.0x1400ae149.1
mov dword [rcx + 0x404], 1
cmp dword [rdi + 0x18], 8
je 0x1400ae715
mov dword [rdi + 0x18], 8
or r14d, 0xffffffff
jmp case.0x1400ae149.1
cmp dword [rdi + 0x530], r13d
je 0x1400ae74c
mov rax, qword [rdi + 0x10]
mov dword [rax + 0x2a8], r13d
cmp dword [rdi + 0x18], 0xf
je 0x1400ae73f
mov dword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov dword [rdi + 0x1c], r13d
or r14d, 0xffffffff
jmp case.0x1400ae149.1
mov r15, qword [rdi + 0x10]
xor ebx, ebx
mov rax, qword [r15 + 0x320]
mov r12, qword [r15]
mov r8, qword [rax + 0x10]
test r8, r8
je 0x1400ae7c2
lea rdx, [rbp + 0x40]
mov rcx, r15
call r8
mov ebx, eax
cmp eax, 0x37
jne 0x1400ae7b0
cmp dword [r15 + 0x2ac], r13d
je 0x1400ae7c2
cmp qword [r12 + 0x78], r13
jne 0x1400ae814
lea rcx, [rdi + 0x10]
call fcn.1400c1490
mov ebx, eax
test eax, eax
jne 0x1400ae7c2
mov r15, qword [rdi + 0x10]
lea rdx, [rbp + 0x40]
mov rax, qword [r15 + 0x320]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jne 0x1400ae7c2
cmp dword [rbp + 0x40], r13d
je 0x1400ae7c2
mov rcx, r15
call fcn.1400b65b0
mov dword [rdi + 0x1c], ebx
test ebx, ebx
jne 0x1400ae870
cmp dword [rbp + 0x40], r13d
jne 0x1400ae832
cmp dword [rdi + 0x6bc], r13d
je 0x1400ae81b
mov eax, dword [rdi + 0x8b18]
sub eax, 4
test eax, 0xfffffffd
jne 0x1400ae81b
lea rcx, [rdi + 0x10]
xor r8d, r8d
xor edx, edx
call fcn.1400b6270
cmp dword [rdi + 0x18], 0xf
je 0x1400ae807
mov dword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov r12, qword [rbp + 0x28]
or r14d, 0xffffffff
jmp 0x1400ae932
mov ebx, 0x37
jmp 0x1400ae7c2
cmp dword [rdi + 0x18], 9
je 0x1400ae829
mov eax, 9
mov dword [rdi + 0x18], eax
mov r12, qword [rbp + 0x28]
jmp 0x1400ae932
mov rax, qword [rdi + 0x10]
cmp dword [rax + 0x2c8], r13d
je 0x1400ae855
cmp dword [rdi + 0x18], 0xa
je 0x1400ae84c
mov dword [rdi + 0x18], 0xa
mov r12, qword [rbp + 0x28]
jmp 0x1400ae932
cmp dword [rdi + 0x18], 0xb
je 0x1400ae863
mov ecx, reloc.WS2_32.dll_inet_addr
mov dword [rdi + 0x18], ecx
mov r12, qword [rbp + 0x28]
or r14d, 0xffffffff
jmp 0x1400ae932
cmp ebx, 0x37
jne 0x1400ae914
mov rcx, qword [rdi + 0x10]
cmp dword [rcx + 0x2ac], r13d
je 0x1400ae914
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], r13
xor r15d, r15d
call fcn.1400c15c0
mov rbx, qword [rbp - 0x30]
test eax, eax
je 0x1400ae8ab
mov dword [rdi + 0x1c], eax
lea r13d, [r15 + 1]
jmp 0x1400ae8b2
test rbx, rbx
setne r15b
mov edx, dword [rdi + 0x1c]
lea rcx, [rdi + 0x10]
xor r8d, r8d
call fcn.1400b6270
test r15d, r15d
je 0x1400ae928
test eax, eax
je 0x1400ae8e1
cmp eax, 0x37
je 0x1400ae8e1
mov rcx, rbx
mov dword [rdi + 0x1c], eax
call qword [sub.MSVCR120.dll_free]
mov r12, qword [rbp + 0x28]
jmp 0x1400ae932
mov r8d, 2
mov rdx, rbx
mov rcx, rdi
call fcn.1400c1140
test eax, eax
jne 0x1400ae8cf
cmp dword [rdi + 0x18], 2
je 0x1400ae903
mov dword [rdi + 0x18], 2
mov r12, qword [rbp + 0x28]
or r14d, 0xffffffff
mov dword [rdi + 0x1c], 0
jmp 0x1400ae932
cmp qword [rdi + 0x10], r13
je 0x1400ae928
lea rcx, [rdi + 0x10]
xor r8d, r8d
mov edx, ebx
call fcn.1400b6270
mov r12, qword [rbp + 0x28]
mov r13d, 1
mov ebx, 3
cmp dword [rdi + 0x18], 0x10
jge 0x1400aefa0
cmp dword [rdi + 0x1c], 0
je 0x1400aef51
mov rax, qword [rdi + 0x10]
mov dword [rdi + 0x8acc], 0
test rax, rax
je 0x1400ae10e
mov dword [rax + 0x404], 0
mov rax, qword [rdi + 0x10]
mov dword [rax + 0x400], 0
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x408]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400aeef7
cmp qword [rdx], rdi
je 0x1400aeeef
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1400ae991
jmp 0x1400aeef7
mov rcx, qword [rdi + 0x10]
xor edx, edx
test rcx, rcx
je 0x1400ae9d8
mov rax, qword [rcx + 0x320]
cmp qword [rax + 0x38], rdx
je 0x1400ae9d8
mov dword [rbp + 0x40], edx
mov rax, qword [rcx + 0x320]
lea rdx, [rbp + 0x40]
call qword [rax + 0x38]
mov edx, eax
mov eax, dword [rbp + 0x40]
jmp 0x1400ae9e0
mov eax, 1
mov dword [rbp + 0x40], eax
mov dword [rdi + 0x1c], edx
test edx, edx
jne 0x1400aea14
test eax, eax
je case.0x1400ae149.1
mov rax, qword [rdi + 0x10]
mov ecx, dword [rax + 0x2c8]
neg ecx
sbb eax, eax
add eax, 0xb
cmp dword [rdi + 0x18], eax
je 0x1400ae6a7
mov dword [rdi + 0x18], eax
cmp eax, 0x10
jmp 0x1400ae69e
lea rcx, [rdi + 0x10]
xor r8d, r8d
call fcn.1400b6270
mov r13d, 1
jmp case.0x1400ae149.1
mov r15, qword [rdi + 0x10]
xor edx, edx
xor ebx, ebx
mov dword [rbp - 0x38], edx
mov rax, qword [r15 + 0x320]
mov r8, qword [rax + 0x20]
test r8, r8
je 0x1400aea69
lea rdx, [rbp - 0x38]
mov rcx, r15
call r8
mov edx, dword [rbp - 0x38]
mov ebx, eax
test eax, eax
jne 0x1400aea69
cmp edx, 1
jne 0x1400aea69
mov rcx, r15
call fcn.1400b65b0
mov edx, dword [rbp - 0x38]
mov dword [rdi + 0x1c], ebx
test ebx, ebx
jne 0x1400aea9c
test edx, edx
je 0x1400ae932
cmp edx, 1
mov eax, 9
mov ecx, reloc.WS2_32.dll_inet_addr
cmove eax, ecx
cmp dword [rdi + 0x18], eax
je 0x1400ae637
mov dword [rdi + 0x18], eax
cmp eax, 0x10
jmp 0x1400ae62e
lea rcx, [rdi + 0x10]
xor r8d, r8d
mov edx, ebx
call fcn.1400b6270
jmp 0x1400ae92c
mov rbx, qword [rdi + 0x10]
mov rcx, qword [rbx + 0x408]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400aeb05
cmp qword [rdx], rdi
je 0x1400aead2
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1400aeac2
jmp 0x1400aeb05
mov r8, qword [rbx + 0x410]
mov r9, qword [r8 + 8]
call fcn.1400c1a80
mov rcx, qword [rbx + 0x408]
cmp qword [rcx], r13
je 0x1400aeb05
mov dword [rbx + 0x404], r13d
mov rcx, qword [rcx]
mov edx, 1
mov rcx, qword [rcx]
call fcn.1400afdf0
mov rcx, r12
call fcn.1400b00d0
mov rax, qword [rdi + 0x10]
cmp qword [rax + 0x338], 0xffffffffffffffff
jne 0x1400aeb3f
cmp qword [rax + 0x340], 0xffffffffffffffff
jne 0x1400aeb3f
cmp dword [rdi + 0x18], 0xf
je 0x1400ae637
mov dword [rdi + 0x18], reloc.WS2_32.dll_ntohs
or r14d, 0xffffffff
jmp 0x1400ae932
cmp dword [rdi + 0x18], 0xc
je 0x1400ae637
mov dword [rdi + 0x18], reloc.WS2_32.dll_inet_ntoa
or r14d, 0xffffffff
jmp 0x1400ae932
mov rcx, qword [rdi + 0x10]
cmp dword [rcx + 0x400], r13d
jne case.0x1400ae149.1
mov rax, qword [rcx + 0x410]
mov rdx, qword [rax]
test rdx, rdx
je case.0x1400ae149.1
xor eax, eax
cmp qword [rdx], rdi
sete al
test eax, eax
je case.0x1400ae149.1
mov dword [rcx + 0x400], 1
cmp dword [rdi + 0x18], 0xd
je 0x1400aeba4
mov dword [rdi + 0x18], reloc.WS2_32.dll_listen
or r14d, 0xffffffff
jmp case.0x1400ae149.1
mov rcx, qword [rdi + 0x10]
call fcn.1400c6b40
test eax, eax
je 0x1400aebc3
mov dword [rdi + 0x1c], 0x2a
jmp 0x1400aebd2
mov rdx, qword [rbp + 0x30]
mov rcx, rdi
call fcn.1400c71b0
mov dword [rdi + 0x1c], eax
mov rax, qword [rdi + 0x360]
test rax, rax
je 0x1400aebeb
cmp qword [rdi + 0x790], rax
jge case.0x1400ae149.1
mov rax, qword [rdi + 0x368]
test rax, rax
je 0x1400aec04
cmp qword [rdi + 0x788], rax
jge case.0x1400ae149.1
cmp dword [rdi + 0x18], 0xd
je case.0x1400ae149.1
mov dword [rdi + 0x18], reloc.WS2_32.dll_listen
jmp case.0x1400ae149.1
mov rcx, qword [rdi + 0x360]
xor ebx, ebx
xor r15d, r15d
mov qword [rbp - 0x30], rbx
test rcx, rcx
jle 0x1400aec68
mov rdx, qword [rdi + 0x790]
cmp rdx, rcx
jle 0x1400aec68
mov eax, dword [rdi + 0x468]
mov r8d, 0x4000
mov dword [rdi + 0x18], ntohs
test eax, eax
cmovne r8d, eax
call fcn.1400c0c70
mov rcx, rdi
mov edx, eax
call fcn.1400affe0
jmp 0x1400ae932
mov rcx, qword [rdi + 0x368]
test rcx, rcx
jle 0x1400aec80
mov rdx, qword [rdi + 0x788]
cmp rdx, rcx
jg 0x1400aec3b
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x34]
call fcn.1400c07c0
mov dword [rdi + 0x1c], eax
test byte [rdi + 0x1c8], 1
jne 0x1400aeca3
mov rax, qword [rdi + 0x10]
mov dword [rax + 0x400], ebx
test byte [rdi + 0x1c8], 2
jne 0x1400aecb6
mov rax, qword [rdi + 0x10]
mov dword [rax + 0x404], ebx
mov r12d, dword [rbp - 0x34]
test r12d, r12d
jne 0x1400aecc5
cmp dword [rdi + 0x1c], 0x38
jne 0x1400aecee
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x30]
call fcn.1400c15c0
mov rbx, qword [rbp - 0x30]
test eax, eax
jne 0x1400aecee
test rbx, rbx
setne r15b
test r15d, r15d
je 0x1400aecee
mov dword [rdi + 0x1c], r13d
lea r12d, [rax + 1]
cmp dword [rdi + 0x1c], r13d
je 0x1400aed39
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx + 0x320]
test byte [rax + 0x78], 2
jne 0x1400aed0f
mov dword [rcx + 0x2a8], 1
mov edx, dword [rdi + 0x1c]
lea rcx, [rdi + 0x10]
xor r8d, r8d
call fcn.1400b6270
mov r12, qword [rbp + 0x28]
test rbx, rbx
je 0x1400ae932
mov rcx, rbx
call qword [sub.MSVCR120.dll_free]
jmp 0x1400ae932
test r12d, r12d
je 0x1400aed1e
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
mov rdx, qword [rdx + 0x410]
call fcn.1400b2850
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x410]
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400aed71
mov rcx, qword [rcx]
mov edx, 1
call fcn.1400affe0
mov r12, qword [rbp + 0x28]
mov rcx, r12
call fcn.1400b00d0
mov rax, qword [rdi + 0x1e0]
test rax, rax
jne 0x1400aedeb
test r15d, r15d
jne 0x1400aee02
cmp qword [rdi + 0x1d8], r13
je 0x1400aedd5
test rbx, rbx
je 0x1400aeda5
mov rcx, rbx
call qword [sub.MSVCR120.dll_free]
mov rbx, qword [rdi + 0x1d8]
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
mov qword [rdi + 0x1d8], r13
call fcn.1400c1140
mov dword [rdi + 0x1c], eax
test eax, eax
jne 0x1400aedcf
xor ebx, ebx
jmp 0x1400aedd5
mov r13d, 1
cmp dword [rdi + 0x18], 0xf
je 0x1400aede2
mov dword [rdi + 0x18], reloc.WS2_32.dll_ntohs
or r14d, 0xffffffff
jmp 0x1400aed22
test r15d, r15d
jne 0x1400aee02
mov rbx, rax
mov qword [rdi + 0x1e0], r13
mov r15d, 3
jmp 0x1400aee08
mov r15d, 2
lea rcx, [rdi + 0x10]
xor r8d, r8d
xor edx, edx
call fcn.1400b6270
mov dword [rdi + 0x1c], eax
test eax, eax
jne 0x1400aed22
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call fcn.1400c1140
mov dword [rdi + 0x1c], eax
test eax, eax
jne 0x1400aed22
cmp dword [rdi + 0x18], 2
je 0x1400ae637
mov dword [rdi + 0x18], 2
or r14d, 0xffffffff
jmp 0x1400ae932
mov rdx, qword [rdi + 0x10]
or r14d, 0xffffffff
test rdx, rdx
je 0x1400aee9a
mov rdx, qword [rdx + 0x410]
mov rcx, rdi
call fcn.1400b2850
mov rcx, r12
call fcn.1400b00d0
mov edx, dword [rdi + 0x1c]
lea rcx, [rdi + 0x10]
xor r8d, r8d
call fcn.1400b6270
cmp dword [rdi + 0x1c], r13d
jne 0x1400aee90
mov dword [rdi + 0x1c], eax
cmp qword [rdi + 0x10], r13
je 0x1400aee9a
mov qword [rdi + 0x10], r13
cmp dword [rdi + 0x6bc], r13d
je 0x1400aeebf
cmp dword [rdi + 0x8b18], 6
je 0x1400aeebf
cmp dword [rdi + 0x18], r13d
je case.0x1400ae149.1
mov dword [rdi + 0x18], r13d
jmp case.0x1400ae149.1
cmp dword [rdi + 0x18], 0x10
je 0x1400aefa2
mov rax, qword [rdi + 0x78]
mov dword [rdi + 0x18], reloc.WS2_32.dll_recv
dec dword [rax + 0x1c]
jmp case.0x1400ae149.1
xor edx, edx
mov rcx, rdi
mov qword [rdi + 0x10], r13
call fcn.1400afdf0
jmp case.0x1400ae149.1
xor r8d, r8d
call fcn.1400c1910
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x410]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400aef28
nop word [rax + rax]
cmp qword [rdx], rdi
je 0x1400aef20
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1400aef10
jmp 0x1400aef28
xor r8d, r8d
call fcn.1400c1910
mov rcx, r12
call fcn.1400b00d0
test r13d, r13d
je 0x1400ae10e
mov rcx, qword [rdi + 0x10]
xor edx, edx
call fcn.1400b2720
mov qword [rdi + 0x10], 0
jmp 0x1400ae10e
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400aef9c
call fcn.1400c6b40
test eax, eax
je 0x1400aef9c
mov rax, qword [rdi + 0x10]
xor ecx, ecx
mov dword [rdi + 0x1c], 0x2a
mov dword [rax + 0x2a8], 1
cmp dword [rdi + 0x18], 0xf
setge cl
add ecx, 0xf
cmp dword [rdi + 0x18], ecx
je 0x1400aef98
mov dword [rdi + 0x18], ecx
cmp ecx, 0x10
jne 0x1400aef98
mov rax, qword [rdi + 0x78]
dec dword [rax + 0x1c]
or r14d, 0xffffffff
cmp dword [rdi + 0x18], 0x10
jne 0x1400aefdc
lea r8, [rdi + 0x20]
mov dword [r8], 1
mov qword [r8 + 8], rdi
mov eax, dword [rdi + 0x1c]
mov dword [r8 + 0x10], eax
mov rcx, qword [r12 + 0x20]
mov rdx, qword [rcx + 8]
call fcn.1400c1850
xor r14d, r14d
test eax, eax
cmove r14d, ebx
cmp dword [rdi + 0x18], 0x11
je 0x1400aefdc
mov dword [rdi + 0x18], setsockopt
mov eax, r14d
jmp 0x1400adf5f
xor eax, eax
jmp 0x1400adf5f
mov eax, 2
add rsp, 0x68
pop r14
pop r12
pop rdi
pop rbp
ret