Function at 0x1400ace90
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 0x1400adffb
cmp dword [r8 + 0x8c10], 0xc0dedbad
jne 0x1400adffb
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 0x1400acf45
mov r9, qword [r8 + 0x8ad8]
lea rdx, str.Pipe_broke:_handle_0x_p__url___s_n
mov rcx, r8
call fcn.1400b89e0
mov eax, dword [rdi + 0x18]
cmp eax, 0x10
jge 0x1400acf35
cmp eax, 2
je 0x1400acf2d
mov dword [rdi + 0x18], 2
or r14d, 0xffffffff
mov dword [rdi + 0x1c], r13d
mov dword [rdi + 0x8acc], r13d
mov qword [rdi + 0x10], r13
jmp 0x1400adfac
mov rcx, qword [r8 + 0x10]
test rcx, rcx
jne 0x1400acf93
mov r8d, dword [r8 + 0x18]
lea eax, [r8 - 3]
cmp eax, 0xb
ja 0x1400acf8e
lea rdx, str.In_state__d_with_no_easy_conn__bail_out__n
mov rcx, rdi
call fcn.1400b8ac0
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 0x1400acfa0
mov eax, dword [rdi + 0x18]
sub eax, ebx
cmp eax, 0xc
ja 0x1400acfa0
mov qword [rcx], rdi
cmp qword [rdi + 0x10], r13
je 0x1400ad13b
mov ecx, dword [rdi + 0x18]
lea eax, [rcx - 2]
cmp eax, 0xd
ja 0x1400ad13b
xor r8d, r8d
cmp ecx, 7
lea rdx, [rbp + 0x30]
setle r8b
mov rcx, rdi
call fcn.1400b5760
test eax, eax
jns 0x1400ad13b
mov eax, dword [rdi + 0x18]
mov rcx, qword [rdi + 0x7d0]
cmp eax, ebx
jne 0x1400ad027
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.1400b8ac0
jmp 0x1400ad109
cmp eax, 4
mov rax, rcx
jne 0x1400ad06e
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.1400b8ac0
jmp 0x1400ad109
mov r8, qword [rdi + 0x90]
shr rax, 0x20
cmp r8, 0xffffffffffffffff
je 0x1400ad0cc
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, [0x140258fc0]
call fcn.1400b8ac0
jmp 0x1400ad109
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, [0x140259010]
imul ecx, eax, 0x3e8
add r8d, ecx
mov rcx, rdi
call fcn.1400b8ac0
mov rax, qword [rdi + 0x10]
mov dword [rax + 0x2a8], 1
mov dword [rdi + 0x1c], 0x1c
cmp dword [rdi + 0x18], 0x10
je 0x1400adfb2
mov rax, qword [rdi + 0x78]
mov dword [rdi + 0x18], reloc.WS2_32.dll_recv
dec dword [rax + 0x1c]
jmp 0x1400adfac
movsxd rax, dword [rdi + 0x18]
cmp eax, 0x11
ja case.default.0x1400ad159
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0xae00c]
add rcx, rdx
jmp rcx
mov rcx, rdi
call fcn.1400bfce0
mov dword [rdi + 0x1c], eax
test eax, eax
jne case.0x1400ad159.1
cmp dword [rdi + 0x18], 2
je 0x1400ad17b
mov dword [rdi + 0x18], 2
mov edx, 1
mov rcx, rdi
call fcn.1400c5990
or r14d, 0xffffffff
jmp case.0x1400ad159.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.1400b4710
mov r15d, dword [rbp - 0x34]
mov ebx, eax
test eax, eax
jne 0x1400ad20e
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx + 0x408]
cmp qword [rax + 0x18], r13
jne 0x1400ad215
mov rax, qword [rcx + 0x410]
cmp qword [rax + 0x18], r13
jne 0x1400ad215
test r15d, r15d
jne 0x1400ad236
lea rdx, [rbp + 0x38]
call fcn.1400b5020
mov ebx, eax
cmp ebx, 0x59
jne 0x1400ad21e
jmp 0x1400ad232
mov dword [rbp + 0x38], 1
jmp 0x1400ad236
test ebx, ebx
je 0x1400ad236
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400ad236
xor edx, edx
call fcn.1400b1720
mov qword [rdi + 0x10], r13
mov dword [rdi + 0x1c], ebx
cmp ebx, 0x59
jne 0x1400ad270
cmp dword [rdi + 0x18], 1
je 0x1400ad24b
mov dword [rdi + 0x18], 1
mov rcx, qword [r12 + 0x28]
mov r8, rdi
mov rdx, qword [rcx + 8]
call fcn.1400c0850
xor ecx, ecx
mov edx, 0x1b
test eax, eax
cmove ecx, edx
mov dword [rdi + 0x1c], ecx
jmp 0x1400ad942
test ebx, ebx
jne 0x1400ad942
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.1400bd860
mov dword [rdi + 0x1c], eax
test eax, eax
jne 0x1400ad93c
test r15d, r15d
je 0x1400ad2a8
lea ebx, [rax + 3]
cmp dword [rdi + 0x18], ebx
je case.0x1400ad159.1
mov dword [rdi + 0x18], ebx
jmp case.0x1400ad159.1
or r14d, 0xffffffff
cmp dword [rbp + 0x38], r13d
je 0x1400ad2e3
mov eax, dword [r12 + 0x58]
neg eax
sbb ecx, ecx
add ecx, 8
cmp dword [rdi + 0x18], ecx
je 0x1400ad942
mov dword [rdi + 0x18], ecx
lea ebx, [r14 + 4]
cmp ecx, 0x10
jne case.0x1400ad159.1
mov rax, qword [rdi + 0x78]
dec dword [rax + 0x1c]
jmp case.0x1400ad159.1
mov rax, qword [rdi + 0x10]
cmp dword [rax + 0x7d0], 1
jne 0x1400ad565
cmp dword [rdi + 0x18], 5
mov ebx, 3
je case.0x1400ad159.1
mov dword [rdi + 0x18], 5
jmp case.0x1400ad159.1
mov r15, qword [rdi + 0x10]
cmp qword [rdi + 0x88], r13
je 0x1400ad326
mov edx, ebx
mov rcx, rdi
call fcn.1400c07d0
mov r8d, dword [r15 + 0xe8]
mov rdx, qword [r15 + 0xb8]
lea r9, [rbp - 0x34]
mov rcx, r15
call fcn.1400b7210
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400ad374
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.1400b89e0
cmp dword [rbp - 0x34], r13d
je 0x1400ad389
lea rdx, [0x140259090]
mov rcx, rdi
call fcn.1400b89e0
mov r8, qword [rdi + 0x88]
test r8, r8
je 0x1400ad3b2
test byte [r8], 8
je 0x1400ad3b2
mov rax, qword [r8 + 0x10]
test rax, rax
je 0x1400ad3b2
mov r8, qword [r8 + 0x18]
mov edx, 3
mov rcx, rdi
call rax
test rbx, rbx
jne 0x1400ad3cb
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x30]
call fcn.1400b7ef0
mov rbx, qword [rbp - 0x30]
mov dword [rdi + 0x1c], eax
mov rdx, rdi
mov rcx, r12
call fcn.1400ae3c0
test rbx, rbx
je 0x1400ad47b
mov rbx, qword [rdi + 0x10]
mov rax, qword [rbx + 0x670]
test rax, rax
je 0x1400ad3fa
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x670], r13
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.1400b5020
mov r15d, eax
test eax, eax
je 0x1400ad417
xor edx, edx
mov rcx, rbx
call fcn.1400b1720
mov dword [rdi + 0x1c], r15d
test r15d, r15d
je 0x1400ad426
mov qword [rdi + 0x10], r13
jmp 0x1400ad47b
or r14d, 0xffffffff
cmp dword [rbp + 0x38], r13d
je 0x1400ad452
mov eax, dword [r12 + 0x58]
neg eax
sbb ecx, ecx
add ecx, 8
cmp dword [rdi + 0x18], ecx
je 0x1400ad47b
mov dword [rdi + 0x18], ecx
cmp ecx, 0x10
jne 0x1400ad47b
mov rax, qword [rdi + 0x78]
dec dword [rax + 0x1c]
jmp 0x1400ad47b
mov rax, qword [rdi + 0x10]
cmp dword [rax + 0x7d0], 1
jne 0x1400ad46e
cmp dword [rdi + 0x18], 5
je 0x1400ad47b
mov dword [rdi + 0x18], 5
jmp 0x1400ad47b
cmp dword [rdi + 0x18], 4
je 0x1400ad47b
mov dword [rdi + 0x18], 4
mov ebx, 3
cmp dword [rdi + 0x1c], r13d
je case.0x1400ad159.1
lea r13d, [rbx - 2]
jmp case.0x1400ad159.1
mov rbx, qword [rdi + 0x10]
mov rcx, rbx
mov dword [rbx + 0x2a8], r13d
call fcn.1400c8a70
test eax, eax
jne 0x1400ad540
cmp dword [rbx + 0x7d0], 1
je 0x1400ad53e
mov rax, qword [rbx + 0x328]
test byte [rax + 0x78], 1
je 0x1400ad537
lea r9, [rbp + 0x38]
mov rcx, rbx
mov dword [rbx + 0x1f0], 1
call fcn.1400cf9a0
test eax, eax
jne 0x1400ad52b
cmp dword [rbp + 0x38], r13d
je 0x1400ad53e
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.1400b9310
movsd qword [rbx + 0x7a8], xmm0
jmp 0x1400ad53e
mov dword [rbx + 0x2a8], 1
jmp 0x1400ad540
mov dword [rbp + 0x38], 1
xor eax, eax
mov rcx, qword [rdi + 0x10]
mov dword [rdi + 0x1c], eax
cmp dword [rcx + 0x300], r13d
jne 0x1400ad5b8
test eax, eax
jne 0x1400ad942
cmp dword [rcx + 0x7d0], 2
jne 0x1400ad942
cmp dword [rdi + 0x18], 4
mov ebx, 3
je case.0x1400ad159.1
mov dword [rdi + 0x18], 4
jmp case.0x1400ad159.1
mov rcx, qword [rdi + 0x10]
lea r8, [rbp - 0x34]
call fcn.1400b6200
mov ebx, dword [rbp - 0x34]
mov dword [rdi + 0x1c], eax
test ebx, ebx
je 0x1400ad5ab
test eax, eax
jne 0x1400ad5ab
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp + 0x38]
call fcn.1400b2530
mov dword [rdi + 0x1c], eax
mov rax, qword [rdi + 0x10]
cmp dword [rax + 0x300], r13d
je 0x1400ad5da
or r14d, 0xffffffff
cmp dword [rdi + 0x18], 2
mov dword [rdi + 0x1c], r13d
lea ebx, [r14 + 4]
je case.0x1400ad159.1
mov dword [rdi + 0x18], 2
jmp case.0x1400ad159.1
cmp dword [rdi + 0x1c], r13d
jne 0x1400ad93c
test ebx, ebx
je 0x1400ad942
cmp dword [rbp + 0x38], r13d
jne 0x1400ad627
cmp dword [rax + 0x7d0], 1
jne 0x1400ad611
cmp dword [rdi + 0x18], 5
je 0x1400ad647
mov dword [rdi + 0x18], 5
or r14d, 0xffffffff
jmp 0x1400ad942
cmp dword [rdi + 0x18], 6
je 0x1400ad647
mov dword [rdi + 0x18], 6
or r14d, 0xffffffff
jmp 0x1400ad942
mov eax, dword [r12 + 0x58]
neg eax
sbb ecx, ecx
add ecx, 8
cmp dword [rdi + 0x18], ecx
je 0x1400ad647
mov dword [rdi + 0x18], ecx
cmp ecx, 0x10
jne 0x1400ad647
mov rax, qword [rdi + 0x78]
dec dword [rax + 0x1c]
or r14d, 0xffffffff
jmp 0x1400ad942
mov rcx, qword [rdi + 0x10]
xor edx, edx
test rcx, rcx
je 0x1400ad680
mov rax, qword [rcx + 0x320]
cmp qword [rax + 0x30], rdx
je 0x1400ad680
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 0x1400ad688
mov eax, 1
mov dword [rbp + 0x38], eax
mov dword [rdi + 0x1c], edx
test edx, edx
jne 0x1400ad6c0
test eax, eax
je case.0x1400ad159.1
mov eax, dword [r12 + 0x58]
neg eax
sbb ecx, ecx
add ecx, 8
cmp dword [rdi + 0x18], ecx
je 0x1400ad6b7
mov dword [rdi + 0x18], ecx
cmp ecx, 0x10
jne 0x1400ad6b7
mov rax, qword [rdi + 0x78]
dec dword [rax + 0x1c]
or r14d, 0xffffffff
jmp case.0x1400ad159.1
lea rcx, [rdi + 0x10]
mov r8d, 1
call fcn.1400b5270
mov r13d, 1
jmp case.0x1400ad159.1
mov rcx, qword [rdi + 0x10]
cmp dword [rcx + 0x404], r13d
jne case.0x1400ad159.1
mov rax, qword [rcx + 0x408]
mov rdx, qword [rax]
test rdx, rdx
je case.0x1400ad159.1
xor eax, eax
cmp qword [rdx], rdi
sete al
test eax, eax
je case.0x1400ad159.1
mov dword [rcx + 0x404], 1
cmp dword [rdi + 0x18], 8
je 0x1400ad725
mov dword [rdi + 0x18], 8
or r14d, 0xffffffff
jmp case.0x1400ad159.1
cmp dword [rdi + 0x530], r13d
je 0x1400ad75c
mov rax, qword [rdi + 0x10]
mov dword [rax + 0x2a8], r13d
cmp dword [rdi + 0x18], 0xf
je 0x1400ad74f
mov dword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov dword [rdi + 0x1c], r13d
or r14d, 0xffffffff
jmp case.0x1400ad159.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 0x1400ad7d2
lea rdx, [rbp + 0x40]
mov rcx, r15
call r8
mov ebx, eax
cmp eax, 0x37
jne 0x1400ad7c0
cmp dword [r15 + 0x2ac], r13d
je 0x1400ad7d2
cmp qword [r12 + 0x78], r13
jne 0x1400ad824
lea rcx, [rdi + 0x10]
call fcn.1400c0490
mov ebx, eax
test eax, eax
jne 0x1400ad7d2
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 0x1400ad7d2
cmp dword [rbp + 0x40], r13d
je 0x1400ad7d2
mov rcx, r15
call fcn.1400b55b0
mov dword [rdi + 0x1c], ebx
test ebx, ebx
jne 0x1400ad880
cmp dword [rbp + 0x40], r13d
jne 0x1400ad842
cmp dword [rdi + 0x6bc], r13d
je 0x1400ad82b
mov eax, dword [rdi + 0x8b18]
sub eax, 4
test eax, 0xfffffffd
jne 0x1400ad82b
lea rcx, [rdi + 0x10]
xor r8d, r8d
xor edx, edx
call fcn.1400b5270
cmp dword [rdi + 0x18], 0xf
je 0x1400ad817
mov dword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov r12, qword [rbp + 0x28]
or r14d, 0xffffffff
jmp 0x1400ad942
mov ebx, 0x37
jmp 0x1400ad7d2
cmp dword [rdi + 0x18], 9
je 0x1400ad839
mov eax, 9
mov dword [rdi + 0x18], eax
mov r12, qword [rbp + 0x28]
jmp 0x1400ad942
mov rax, qword [rdi + 0x10]
cmp dword [rax + 0x2c8], r13d
je 0x1400ad865
cmp dword [rdi + 0x18], 0xa
je 0x1400ad85c
mov dword [rdi + 0x18], 0xa
mov r12, qword [rbp + 0x28]
jmp 0x1400ad942
cmp dword [rdi + 0x18], 0xb
je 0x1400ad873
mov ecx, reloc.WS2_32.dll_inet_addr
mov dword [rdi + 0x18], ecx
mov r12, qword [rbp + 0x28]
or r14d, 0xffffffff
jmp 0x1400ad942
cmp ebx, 0x37
jne 0x1400ad924
mov rcx, qword [rdi + 0x10]
cmp dword [rcx + 0x2ac], r13d
je 0x1400ad924
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], r13
xor r15d, r15d
call fcn.1400c05c0
mov rbx, qword [rbp - 0x30]
test eax, eax
je 0x1400ad8bb
mov dword [rdi + 0x1c], eax
lea r13d, [r15 + 1]
jmp 0x1400ad8c2
test rbx, rbx
setne r15b
mov edx, dword [rdi + 0x1c]
lea rcx, [rdi + 0x10]
xor r8d, r8d
call fcn.1400b5270
test r15d, r15d
je 0x1400ad938
test eax, eax
je 0x1400ad8f1
cmp eax, 0x37
je 0x1400ad8f1
mov rcx, rbx
mov dword [rdi + 0x1c], eax
call qword [sub.MSVCR120.dll_free]
mov r12, qword [rbp + 0x28]
jmp 0x1400ad942
mov r8d, 2
mov rdx, rbx
mov rcx, rdi
call fcn.1400c0140
test eax, eax
jne 0x1400ad8df
cmp dword [rdi + 0x18], 2
je 0x1400ad913
mov dword [rdi + 0x18], 2
mov r12, qword [rbp + 0x28]
or r14d, 0xffffffff
mov dword [rdi + 0x1c], 0
jmp 0x1400ad942
cmp qword [rdi + 0x10], r13
je 0x1400ad938
lea rcx, [rdi + 0x10]
xor r8d, r8d
mov edx, ebx
call fcn.1400b5270
mov r12, qword [rbp + 0x28]
mov r13d, 1
mov ebx, 3
cmp dword [rdi + 0x18], 0x10
jge 0x1400adfb0
cmp dword [rdi + 0x1c], 0
je 0x1400adf61
mov rax, qword [rdi + 0x10]
mov dword [rdi + 0x8acc], 0
test rax, rax
je 0x1400ad11e
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 0x1400adf07
cmp qword [rdx], rdi
je 0x1400adeff
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1400ad9a1
jmp 0x1400adf07
mov rcx, qword [rdi + 0x10]
xor edx, edx
test rcx, rcx
je 0x1400ad9e8
mov rax, qword [rcx + 0x320]
cmp qword [rax + 0x38], rdx
je 0x1400ad9e8
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 0x1400ad9f0
mov eax, 1
mov dword [rbp + 0x40], eax
mov dword [rdi + 0x1c], edx
test edx, edx
jne 0x1400ada24
test eax, eax
je case.0x1400ad159.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 0x1400ad6b7
mov dword [rdi + 0x18], eax
cmp eax, 0x10
jmp 0x1400ad6ae
lea rcx, [rdi + 0x10]
xor r8d, r8d
call fcn.1400b5270
mov r13d, 1
jmp case.0x1400ad159.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 0x1400ada79
lea rdx, [rbp - 0x38]
mov rcx, r15
call r8
mov edx, dword [rbp - 0x38]
mov ebx, eax
test eax, eax
jne 0x1400ada79
cmp edx, 1
jne 0x1400ada79
mov rcx, r15
call fcn.1400b55b0
mov edx, dword [rbp - 0x38]
mov dword [rdi + 0x1c], ebx
test ebx, ebx
jne 0x1400adaac
test edx, edx
je 0x1400ad942
cmp edx, 1
mov eax, 9
mov ecx, reloc.WS2_32.dll_inet_addr
cmove eax, ecx
cmp dword [rdi + 0x18], eax
je 0x1400ad647
mov dword [rdi + 0x18], eax
cmp eax, 0x10
jmp 0x1400ad63e
lea rcx, [rdi + 0x10]
xor r8d, r8d
mov edx, ebx
call fcn.1400b5270
jmp 0x1400ad93c
mov rbx, qword [rdi + 0x10]
mov rcx, qword [rbx + 0x408]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400adb15
cmp qword [rdx], rdi
je 0x1400adae2
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1400adad2
jmp 0x1400adb15
mov r8, qword [rbx + 0x410]
mov r9, qword [r8 + 8]
call fcn.1400c0a80
mov rcx, qword [rbx + 0x408]
cmp qword [rcx], r13
je 0x1400adb15
mov dword [rbx + 0x404], r13d
mov rcx, qword [rcx]
mov edx, 1
mov rcx, qword [rcx]
call fcn.1400aedf0
mov rcx, r12
call fcn.1400af0d0
mov rax, qword [rdi + 0x10]
cmp qword [rax + 0x338], 0xffffffffffffffff
jne 0x1400adb4f
cmp qword [rax + 0x340], 0xffffffffffffffff
jne 0x1400adb4f
cmp dword [rdi + 0x18], 0xf
je 0x1400ad647
mov dword [rdi + 0x18], reloc.WS2_32.dll_ntohs
or r14d, 0xffffffff
jmp 0x1400ad942
cmp dword [rdi + 0x18], 0xc
je 0x1400ad647
mov dword [rdi + 0x18], reloc.WS2_32.dll_inet_ntoa
or r14d, 0xffffffff
jmp 0x1400ad942
mov rcx, qword [rdi + 0x10]
cmp dword [rcx + 0x400], r13d
jne case.0x1400ad159.1
mov rax, qword [rcx + 0x410]
mov rdx, qword [rax]
test rdx, rdx
je case.0x1400ad159.1
xor eax, eax
cmp qword [rdx], rdi
sete al
test eax, eax
je case.0x1400ad159.1
mov dword [rcx + 0x400], 1
cmp dword [rdi + 0x18], 0xd
je 0x1400adbb4
mov dword [rdi + 0x18], reloc.WS2_32.dll_listen
or r14d, 0xffffffff
jmp case.0x1400ad159.1
mov rcx, qword [rdi + 0x10]
call fcn.1400c5b40
test eax, eax
je 0x1400adbd3
mov dword [rdi + 0x1c], 0x2a
jmp 0x1400adbe2
mov rdx, qword [rbp + 0x30]
mov rcx, rdi
call fcn.1400c61b0
mov dword [rdi + 0x1c], eax
mov rax, qword [rdi + 0x360]
test rax, rax
je 0x1400adbfb
cmp qword [rdi + 0x790], rax
jge case.0x1400ad159.1
mov rax, qword [rdi + 0x368]
test rax, rax
je 0x1400adc14
cmp qword [rdi + 0x788], rax
jge case.0x1400ad159.1
cmp dword [rdi + 0x18], 0xd
je case.0x1400ad159.1
mov dword [rdi + 0x18], reloc.WS2_32.dll_listen
jmp case.0x1400ad159.1
mov rcx, qword [rdi + 0x360]
xor ebx, ebx
xor r15d, r15d
mov qword [rbp - 0x30], rbx
test rcx, rcx
jle 0x1400adc78
mov rdx, qword [rdi + 0x790]
cmp rdx, rcx
jle 0x1400adc78
mov eax, dword [rdi + 0x468]
mov r8d, 0x4000
mov dword [rdi + 0x18], ntohs
test eax, eax
cmovne r8d, eax
call fcn.1400bfc70
mov rcx, rdi
mov edx, eax
call fcn.1400aefe0
jmp 0x1400ad942
mov rcx, qword [rdi + 0x368]
test rcx, rcx
jle 0x1400adc90
mov rdx, qword [rdi + 0x788]
cmp rdx, rcx
jg 0x1400adc4b
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x34]
call fcn.1400bf7c0
mov dword [rdi + 0x1c], eax
test byte [rdi + 0x1c8], 1
jne 0x1400adcb3
mov rax, qword [rdi + 0x10]
mov dword [rax + 0x400], ebx
test byte [rdi + 0x1c8], 2
jne 0x1400adcc6
mov rax, qword [rdi + 0x10]
mov dword [rax + 0x404], ebx
mov r12d, dword [rbp - 0x34]
test r12d, r12d
jne 0x1400adcd5
cmp dword [rdi + 0x1c], 0x38
jne 0x1400adcfe
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x30]
call fcn.1400c05c0
mov rbx, qword [rbp - 0x30]
test eax, eax
jne 0x1400adcfe
test rbx, rbx
setne r15b
test r15d, r15d
je 0x1400adcfe
mov dword [rdi + 0x1c], r13d
lea r12d, [rax + 1]
cmp dword [rdi + 0x1c], r13d
je 0x1400add49
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx + 0x320]
test byte [rax + 0x78], 2
jne 0x1400add1f
mov dword [rcx + 0x2a8], 1
mov edx, dword [rdi + 0x1c]
lea rcx, [rdi + 0x10]
xor r8d, r8d
call fcn.1400b5270
mov r12, qword [rbp + 0x28]
test rbx, rbx
je 0x1400ad942
mov rcx, rbx
call qword [sub.MSVCR120.dll_free]
jmp 0x1400ad942
test r12d, r12d
je 0x1400add2e
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
mov rdx, qword [rdx + 0x410]
call fcn.1400b1850
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x410]
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400add81
mov rcx, qword [rcx]
mov edx, 1
call fcn.1400aefe0
mov r12, qword [rbp + 0x28]
mov rcx, r12
call fcn.1400af0d0
mov rax, qword [rdi + 0x1e0]
test rax, rax
jne 0x1400addfb
test r15d, r15d
jne 0x1400ade12
cmp qword [rdi + 0x1d8], r13
je 0x1400adde5
test rbx, rbx
je 0x1400addb5
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.1400c0140
mov dword [rdi + 0x1c], eax
test eax, eax
jne 0x1400adddf
xor ebx, ebx
jmp 0x1400adde5
mov r13d, 1
cmp dword [rdi + 0x18], 0xf
je 0x1400addf2
mov dword [rdi + 0x18], reloc.WS2_32.dll_ntohs
or r14d, 0xffffffff
jmp 0x1400add32
test r15d, r15d
jne 0x1400ade12
mov rbx, rax
mov qword [rdi + 0x1e0], r13
mov r15d, 3
jmp 0x1400ade18
mov r15d, 2
lea rcx, [rdi + 0x10]
xor r8d, r8d
xor edx, edx
call fcn.1400b5270
mov dword [rdi + 0x1c], eax
test eax, eax
jne 0x1400add32
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call fcn.1400c0140
mov dword [rdi + 0x1c], eax
test eax, eax
jne 0x1400add32
cmp dword [rdi + 0x18], 2
je 0x1400ad647
mov dword [rdi + 0x18], 2
or r14d, 0xffffffff
jmp 0x1400ad942
mov rdx, qword [rdi + 0x10]
or r14d, 0xffffffff
test rdx, rdx
je 0x1400adeaa
mov rdx, qword [rdx + 0x410]
mov rcx, rdi
call fcn.1400b1850
mov rcx, r12
call fcn.1400af0d0
mov edx, dword [rdi + 0x1c]
lea rcx, [rdi + 0x10]
xor r8d, r8d
call fcn.1400b5270
cmp dword [rdi + 0x1c], r13d
jne 0x1400adea0
mov dword [rdi + 0x1c], eax
cmp qword [rdi + 0x10], r13
je 0x1400adeaa
mov qword [rdi + 0x10], r13
cmp dword [rdi + 0x6bc], r13d
je 0x1400adecf
cmp dword [rdi + 0x8b18], 6
je 0x1400adecf
cmp dword [rdi + 0x18], r13d
je case.0x1400ad159.1
mov dword [rdi + 0x18], r13d
jmp case.0x1400ad159.1
cmp dword [rdi + 0x18], 0x10
je 0x1400adfb2
mov rax, qword [rdi + 0x78]
mov dword [rdi + 0x18], reloc.WS2_32.dll_recv
dec dword [rax + 0x1c]
jmp case.0x1400ad159.1
xor edx, edx
mov rcx, rdi
mov qword [rdi + 0x10], r13
call fcn.1400aedf0
jmp case.0x1400ad159.1
xor r8d, r8d
call fcn.1400c0910
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x410]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400adf38
nop word [rax + rax]
cmp qword [rdx], rdi
je 0x1400adf30
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1400adf20
jmp 0x1400adf38
xor r8d, r8d
call fcn.1400c0910
mov rcx, r12
call fcn.1400af0d0
test r13d, r13d
je 0x1400ad11e
mov rcx, qword [rdi + 0x10]
xor edx, edx
call fcn.1400b1720
mov qword [rdi + 0x10], 0
jmp 0x1400ad11e
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400adfac
call fcn.1400c5b40
test eax, eax
je 0x1400adfac
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 0x1400adfa8
mov dword [rdi + 0x18], ecx
cmp ecx, 0x10
jne 0x1400adfa8
mov rax, qword [rdi + 0x78]
dec dword [rax + 0x1c]
or r14d, 0xffffffff
cmp dword [rdi + 0x18], 0x10
jne 0x1400adfec
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.1400c0850
xor r14d, r14d
test eax, eax
cmove r14d, ebx
cmp dword [rdi + 0x18], 0x11
je 0x1400adfec
mov dword [rdi + 0x18], setsockopt
mov eax, r14d
jmp 0x1400acf6f
xor eax, eax
jmp 0x1400acf6f
mov eax, 2
add rsp, 0x68
pop r14
pop r12
pop rdi
pop rbp
ret