Function at 0x140115340
Capabilities:
Prepare http request
Receive http response

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
movaps xmmword [rsp + 0x160], xmm6
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r10, r9
mov rsi, r8
mov r12, rdx
mov edx, dword [rbp + 0xe0]
lea eax, [rdx - 1]
cmp eax, 1
ja 0x140116690
mov eax, 0x800000
xor r15d, r15d
cmp edx, 2
cmovne eax, r15d
cmp qword [r9 + 0x18], 8
jb 0x1401153a3
mov r10, qword [r9]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, r10
lea rdx, [0x14030dff0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
mov qword [rbp + 0x10], rax
test rax, rax
je 0x1401166dc
mov rdx, rsi
mov rcx, rax
call fcn.140117bc0
mov ebx, r15d
nop word [rax + rax]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140115474
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x140115428
inc ebx
cmp ebx, 0xa
jle 0x1401153f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.WinHttp:_Failed_to_send_request
mov rcx, r12
call fcn.140117b40
nop
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, r12
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140269300
movaps xmm6, xmmword [rsp + 0x160]
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140115494
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.WinHttp:_Failed_to_receive_response
jmp 0x140115437
mov r8d, reloc.WS2_32.dll_send
mov rdx, r14
lea rcx, [rbp - 0x18]
call fcn.140114c30
nop
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov r8d, 6
lea rdx, str.Status
lea rcx, [rbp - 0x80]
call fcn.140025e70
nop
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x80]
mov rcx, rsi
mov rax, rbx
call qword [case.0x1400ac8a1.0]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14011552f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011552a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116718
call fcn.140269844
mov rax, qword [rsi]
mov rdi, qword [rax + 8]
mov r8d, 1
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140114c30
mov rbx, rax
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov r8d, recv
lea rdx, str.Content_Type
lea rcx, [rbp - 0x80]
call fcn.140025e70
nop
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rsi
mov rax, rdi
call qword [case.0x1400ac8a1.0]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1401155cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401155c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011671e
call fcn.140269844
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14011561f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011561a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116724
call fcn.140269844
mov r8d, 5
mov rdx, r14
lea rcx, [rbp - 0x60]
call fcn.140114c30
nop
cmp qword [rbp - 0x50], 0
jne 0x140115d29
mov qword [rsp + 0x60], 0xffffffffffffffff
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov r8d, select
lea rdx, str.Content_Length
lea rcx, [rbp - 0x80]
call fcn.140025e70
nop
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x80]
mov rcx, rsi
mov rax, rbx
call qword [case.0x1400ac8a1.0]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1401156ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401156c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011672a
call fcn.140269844
mov r8d, gethostname
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.140114c30
nop
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov r8d, recv
lea rdx, str.Content_MD5
lea rcx, [rbp - 0x80]
call fcn.140025e70
nop
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x80]
mov rcx, rsi
mov rax, rbx
call qword [case.0x1400ac8a1.0]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140115769
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115764
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011673d
call fcn.140269844
mov rax, qword [rsi]
mov rdi, qword [rax + 8]
mov r8d, reloc.WS2_32.dll_getprotobynumber
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140114c30
mov rbx, rax
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov r8d, 4
lea rdx, str.ETag
lea rcx, [rbp - 0x80]
call fcn.140025e70
nop
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rsi
mov rax, rdi
call qword [case.0x1400ac8a1.0]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140115806
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115801
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116743
call fcn.140269844
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140115859
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115854
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116749
call fcn.140269844
mov rax, qword [rsi]
mov rdi, qword [rax + 8]
mov r8d, recv
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140114c30
mov rbx, rax
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.Last_Modified
lea rcx, [rbp - 0x80]
call fcn.140025e70
nop
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rsi
mov rax, rdi
call qword [case.0x1400ac8a1.0]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1401158f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401158f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011674f
call fcn.140269844
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140115949
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115944
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116755
call fcn.140269844
mov rax, qword [rsi]
mov rdi, qword [rax + 8]
mov r8d, 0xa
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140114c30
mov rbx, rax
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov r8d, 7
lea rdx, str.Expires
lea rcx, [rbp - 0x80]
call fcn.140025e70
nop
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rsi
mov rax, rdi
call qword [case.0x1400ac8a1.0]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1401159e6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401159e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011675b
call fcn.140269844
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140115a39
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115a34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116761
call fcn.140269844
mov rax, qword [rsi]
mov rdi, qword [rax + 8]
mov r8d, getprotobynumber
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140114c30
mov rbx, rax
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.Cache_Control
lea rcx, [rbp - 0x80]
call fcn.140025e70
nop
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rsi
mov rax, rdi
call qword [case.0x1400ac8a1.0]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140115ad6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115ad1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116767
call fcn.140269844
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140115b29
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115b24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011676d
call fcn.140269844
mov rax, qword [rsi]
mov rdi, qword [rax + 8]
mov r8d, 0x2a
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140114c30
mov rbx, rax
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.Accept_Ranges
lea rcx, [rbp - 0x80]
call fcn.140025e70
nop
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rsi
mov rax, rdi
call qword [case.0x1400ac8a1.0]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140115bc6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115bc1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116773
call fcn.140269844
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140115c19
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115c14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116779
call fcn.140269844
xor r13b, r13b
lea r10, [rbp - 0x18]
mov r11, qword [rbp - 0x18]
mov rdi, qword [rbp]
cmp rdi, 8
cmovae r10, r11
mov r9d, 3
mov r15, qword [rbp - 8]
cmp r15, r9
jne 0x140115c7d
mov r8d, r9d
lea rax, [0x1402cdfe8]
movzx ecx, word [r10]
mov edx, getservbyname
cmp cx, dx
jb 0x140115c7d
sub r10, rax
cmp cx, dx
ja 0x140115c7d
cmp r8, 1
je 0x140115d71
dec r8
add rax, 2
movzx ecx, word [r10 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x140115c5d
lea rbx, [rbp - 0x18]
cmp rdi, 8
cmovae rbx, r11
mov edx, getprotobynumber
cmp r15, r9
jne 0x140115cd0
mov r10, r9
lea rax, [0x1402cdff0]
movzx ecx, word [rbx]
mov r8d, edx
cmp cx, dx
jb 0x140115cd0
sub rbx, rax
cmp cx, r8w
ja 0x140115cd0
cmp r10, 1
je 0x140115e77
dec r10
add rax, 2
movzx ecx, word [rbx + rax]
movzx r8d, word [rax]
cmp cx, r8w
jae 0x140115caf
lea r8, [rbp - 0x18]
cmp rdi, 8
cmovae r8, r11
cmp r15, r9
jne 0x14011662c
lea rax, [0x1402cdff8]
movzx ecx, word [r8]
cmp cx, dx
jb 0x14011662c
sub r8, rax
cmp cx, dx
ja 0x14011662c
cmp r9, 1
je 0x140116026
dec r9
add rax, 2
movzx ecx, word [r8 + rax]
movzx edx, word [rax]
cmp cx, dx
jb 0x14011662c
jmp 0x140115cff
call fcn.14027932c
mov rdi, rax
lea rbx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rbx, qword [rbp - 0x60]
mov dword [rax], r15d
mov r8d, 0xa
lea rdx, [rbp + 8]
mov rcx, rbx
call fcn.140282768
mov qword [rsp + 0x60], rax
cmp rbx, qword [rbp + 8]
je 0x140116730
cmp dword [rdi], 0x22
je 0x14011667d
jmp 0x140115646
xor esi, esi
mov dword [r12], esi
lea rax, [0x14035e9f0]
mov qword [r12 + 8], rax
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140115dcb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115dbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011677f
call fcn.140269844
mov rdi, qword [rbp]
mov r11, qword [rbp - 0x18]
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140115e23
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115e16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116785
call fcn.140269844
mov rdi, qword [rbp]
mov r11, qword [rbp - 0x18]
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
cmp rdi, 8
jb 0x1401165a2
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x140115e6a
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011678b
mov rcx, r11
call fcn.140269844
jmp 0x1401165a2
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov r15, qword [rsp + 0x60]
lea r9, [rbp + 0x4a]
mov r8, r15
movabs r10, 0xcccccccccccccccd
test r15, r15
jns 0x140115ee0
neg r8
nop dword [rax]
sub r9, 2
mov rax, r10
mul r8
shr rdx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8, rdx
test rdx, rdx
jne 0x140115ea0
add r9, 0xfffffffffffffffe
mov eax, 0x2d
mov word [r9], ax
jmp 0x140115f10
sub r9, 2
mov rax, r10
mul r8
shr rdx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8, rdx
test rdx, rdx
jne 0x140115ee0
xor edi, edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
lea rax, [rbp + 0x4a]
cmp r9, rax
je 0x140115f4b
lea r8, [rbp + 0x4a]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.140025e70
nop
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], di
mov r8d, select
lea rdx, str.X_Entity_Length
lea rcx, [rbp - 0x80]
call fcn.140025e70
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x80]
mov rcx, rsi
mov rax, rbx
call qword [case.0x1400ac8a1.0]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140115fcc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115fc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116791
call fcn.140269844
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], di
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14011601e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140116019
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140116797
call fcn.140269844
mov r13b, 1
jmp 0x14011643c
mov r8d, reloc.WS2_32.dll_getprotobyname
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.140114c30
nop
cmp qword [rbp - 0x70], 0
jne 0x140116047
mov edx, 0x1e
jmp 0x140116089
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.1401174d0
movups xmm6, xmmword [rax]
movups xmmword [rbp + 0x20], xmm6
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp + 0x30], xmm0
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [case.0x1400ac8a1.0]
movq r8, xmm6
cmp rax, r8
je 0x1401161cd
mov edx, 0xa
mov rcx, r12
call fcn.140114860
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1401160d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1401160cd
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401167a9
call fcn.140269844
xor ebx, ebx
mov word [rbp - 0x80], bx
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rbx
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140116124
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14011611f
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011679d
call fcn.140269844
mov word [rbp - 0x40], bx
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rbx
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140116174
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14011616f
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401167a3
call fcn.140269844
mov word [rbp - 0x60], bx
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rbx
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x14011640b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1401161c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011668a
call fcn.140269844
jmp 0x14011640b
mov rax, qword [rbp + 0x30]
dec rax
mov rcx, qword [rbp + 0x28]
cmp rcx, rax
je 0x140116329
mov edx, listen
mov rcx, r12
call fcn.140114860
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14011622f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011622a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401167a9
call fcn.140269844
xor ebx, ebx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], bx
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140116281
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011627c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011679d
call fcn.140269844
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1401162d1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401162cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401167a3
call fcn.140269844
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], bx
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x14011640b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401161c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011668a
jmp 0x1401161c3
sub rcx, r8
inc rcx
mov r15, qword [rsp + 0x60]
cmp r15, rcx
je 0x140116420
mov edx, recv
mov rcx, r12
call fcn.140114860
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14011638b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140116386
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401167a9
call fcn.140269844
xor ebx, ebx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], bx
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x1401163b7
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.140025f90
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x1401163e1
inc r8
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.140025f90
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], bx
mov r8, qword [rbp]
cmp r8, 8
jb 0x14011640b
inc r8
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x18]
call fcn.140025f90
mov qword [rbp - 8], rbx
mov qword [rbp], 7
mov word [rbp - 0x18], bx
jmp 0x140115440
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x14011643a
inc r8
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140025f90
xor edi, edi
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x10]
call qword [case.0x1400ac8a1.0]
mov ecx, 0x10000
call fcn.140269b2c
mov rbx, rax
test rax, rax
je 0x140116470
xor edx, edx
mov r8d, 0x10000
mov rcx, rax
call fcn.14026c200
jmp 0x140116473
mov rbx, rdi
mov qword [rbp + 8], rbx
mov dword [rbp - 0x20], edi
mov rax, qword [rsi]
movzx edx, r13b
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [case.0x1400ac8a1.0]
lea r9, [rbp - 0x20]
mov r8d, 0x10000
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14011650c
mov qword [rsp + 0x68], rbx
nop dword [rax]
mov rax, qword [rsi]
mov ecx, dword [rbp - 0x20]
mov qword [rsp + 0x60], rcx
test rbx, rbx
jne 0x1401164c9
test rcx, rcx
jne 0x140116626
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp + 0x20], xmm0
lea rdx, [rbp + 0x20]
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [case.0x1400ac8a1.0]
mov ecx, dword [rbp - 0x20]
add rdi, rcx
test ecx, ecx
je 0x1401165b7
lea r9, [rbp - 0x20]
mov r8d, 0x10000
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1401164b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.WinHttp:_Error_in_WinHttpReadData
mov rcx, r12
call fcn.140117b40
nop
test rbx, rbx
je 0x140116532
mov rcx, rbx
call fcn.140269844
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14011654c
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.140025f90
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x140116578
inc r8
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.140025f90
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
mov r8, qword [rbp]
cmp r8, 8
jb 0x1401165a2
inc r8
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x18]
call fcn.140025f90
mov qword [rbp - 8], rsi
mov qword [rbp], 7
mov word [rbp - 0x18], si
jmp 0x140115440
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x38]
call qword [case.0x1400ac8a1.0]
test r15, r15
js 0x1401165e3
cmp r15, rdi
je 0x1401165e3
mov edx, 1
mov rcx, r12
call fcn.140114860
jmp 0x140116524
xor esi, esi
mov dword [r12], esi
lea rax, [0x14035e9f0]
mov qword [r12 + 8], rax
test rbx, rbx
je 0x140116603
mov rcx, rbx
call fcn.140269844
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x14011654e
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.140025f90
jmp 0x14011654e
call fcn.14005f9b0
nop
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x80]
call fcn.140118390
nop
mov r8, rax
lea rdx, str.WinHttp:_Unexpected_status_code__
lea rcx, [rsp + 0x40]
call fcn.140042f30
nop
mov r8b, 0x29
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1401149c0
nop
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1400459e0
lea rdx, [0x1403563c0]
lea rcx, [rbp + 0x20]
call fcn.14026ba78
nop
lea rcx, str.stoll_argument_out_of_range
call fcn.140245e38
nop
call fcn.140277ff8
nop
lea rcx, [rbp - 0x80]
call fcn.1400433f0
nop
mov r8, rax
lea rdx, str.WinHttp:_Invalid_scheme__
lea rcx, [rsp + 0x40]
call fcn.140042f30
nop
mov r8b, 0x29
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1401149c0
nop
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.1400434d0
lea rdx, [0x140356360]
lea rcx, [rbp + 0x10]
call fcn.14026ba78
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f64e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_open_request
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.14008f280
lea rdx, [0x140356788]
lea rcx, [rbp - 0x80]
call fcn.14026ba78
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
int3
lea rcx, str.invalid_stoll_argument
call fcn.140245df0
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
int3