Function at 0x140001680
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa20]
sub rsp, 0xb20
mov rax, qword [0x140010040]
xor rax, rsp
mov qword [rbp + 0xa10], rax
mov rax, rdx
mov rbx, rcx
mov qword [rbp], rcx
xor esi, esi
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rcx
mov dword [rsp + 0x50], 0x68
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x70], pe_nt_image_headers64
lea rcx, [rbp + 0x210]
mov qword [rbp - 0x68], rcx
mov dword [rbp - 0x60], 0x400
mov edx, dword [rdx + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x140001718
mov rax, qword [rax]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
xor r8d, r8d
test eax, eax
jne 0x140001752
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
lea rdx, [0x14000b6ec]
mov rcx, rbx
call fcn.1400075c0
jmp 0x1400019db
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor edx, edx
lea rcx, str.PatchFetcher_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
test rax, rax
je 0x14000181b
xor r9d, r9d
movzx r8d, word [rsp + 0x74]
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
test rax, rax
je 0x140001812
mov eax, esi
mov ecx, 0x800000
cmp dword [rsp + 0x64], 2
cmove eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, qword [rbp - 0x68]
lea rdx, [0x14000b718]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
test rax, rax
je 0x140001809
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, r15
test eax, eax
je 0x140001803
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140001840
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x14000b6ec]
mov rcx, rbx
call fcn.1400075c0
jmp 0x1400019db
mov dword [rbp], esi
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], sil
nop word [rax + rax]
mov dword [rsp + 0x44], esi
lea rdx, [rsp + 0x44]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000192f
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14000192f
lea ecx, [rax + 1]
call fcn.140009154
mov r14, rax
mov r8d, dword [rsp + 0x44]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp]
mov r8d, dword [rsp + 0x44]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140001927
mov esi, dword [rbp]
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1400018fe
lea rax, [rcx + rsi]
mov qword [rbp - 0x10], rax
lea rdi, [rbp - 0x20]
cmp rdx, 0xf
cmova rdi, qword [rbp - 0x20]
add rdi, rcx
mov r8d, esi
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rsi], 0
jmp 0x140001912
mov qword [rsp + 0x20], rsi
mov r9, r14
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.1400076f0
mov rcx, r14
call fcn.140009040
xor esi, esi
cmp dword [rsp + 0x44], esi
jbe 0x14000192f
jmp 0x140001860
mov rcx, r14
call fcn.140009040
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea r8, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova r8, qword [rbp - 0x20]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor edx, edx
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
xorps xmm0, xmm0
test eax, eax
jg 0x140001a08
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x14000b6ec]
mov rcx, rbx
call fcn.1400075c0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1400019db
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b72
call fcn.140009040
mov rax, rbx
mov rcx, qword [rbp + 0xa10]
xor rcx, rsp
call fcn.140009020
mov rbx, qword [rsp + 0xb70]
add rsp, 0xb20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov r8, rdi
lea rcx, [rbp - 0x40]
call fcn.140007490
nop
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rax, qword [rbp - 0x40]
lea r8, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova r8, qword [rbp - 0x20]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdi, [rbp - 0x40]
mov r11, qword [rbp - 0x40]
mov r10, qword [rbp - 0x28]
cmp r10, 7
cmova rdi, r11
mov r8, qword [rbp - 0x30]
test r8, r8
je 0x140001aa8
mov rax, r8
mov rcx, rdi
mov rdx, rsi
cmp word [rdi], 0
je 0x140001a98
cmp rax, 1
je 0x140001a9b
dec rax
add rcx, 2
cmp word [rcx], 0
jne 0x140001a85
mov rdx, rcx
test rdx, rdx
je 0x140001aa8
sub rdx, rdi
sar rdx, 1
jmp 0x140001aaf
mov rdx, 0xffffffffffffffff
cmp rdx, r8
ja 0x140001aca
mov qword [rbp - 0x30], rdx
lea rax, [rbp - 0x40]
cmp r10, 7
cmova rax, r11
mov word [rax + rdx*2], si
jmp 0x140001b15
sub rdx, r8
mov rax, r10
sub rax, r8
cmp rdx, rax
ja 0x140001b09
lea rax, [r8 + rdx]
mov qword [rbp - 0x30], rax
lea r9, [rbp - 0x40]
cmp r10, 7
cmova r9, r11
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140001afe
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x140001b15
mov r9, rdx
lea rcx, [rbp - 0x40]
call fcn.140007c40
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x30]
movups xmmword [rbx + 0x10], xmm1
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1400019db
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3