Function at 0x140001b00
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 [0x140011040]
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 0x140001b98
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 0x140001bd2
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
lea rdx, [0x14000c854]
mov rcx, rbx
call fcn.140008240
jmp 0x140001e5b
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 0x140001c9b
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 0x140001c92
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, [0x14000c880]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
test rax, rax
je 0x140001c89
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 0x140001c83
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140001cc0
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, [0x14000c854]
mov rcx, rbx
call fcn.140008240
jmp 0x140001e5b
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 0x140001daf
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140001daf
lea ecx, [rax + 1]
call fcn.14000a0e4
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 0x140001da7
mov esi, dword [rbp]
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140001d7e
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 0x140001d92
mov qword [rsp + 0x20], rsi
mov r9, r14
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.140008370
mov rcx, r14
call fcn.140009fd0
xor esi, esi
cmp dword [rsp + 0x44], esi
jbe 0x140001daf
jmp 0x140001ce0
mov rcx, r14
call fcn.140009fd0
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 0x140001e88
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x14000c854]
mov rcx, rbx
call fcn.140008240
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140001e5b
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ff2
call fcn.140009fd0
mov rax, rbx
mov rcx, qword [rbp + 0xa10]
xor rcx, rsp
call fcn.140009fb0
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.140008110
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 0x140001f28
mov rax, r8
mov rcx, rdi
mov rdx, rsi
cmp word [rdi], 0
je 0x140001f18
cmp rax, 1
je 0x140001f1b
dec rax
add rcx, 2
cmp word [rcx], 0
jne 0x140001f05
mov rdx, rcx
test rdx, rdx
je 0x140001f28
sub rdx, rdi
sar rdx, 1
jmp 0x140001f2f
mov rdx, 0xffffffffffffffff
cmp rdx, r8
ja 0x140001f4a
mov qword [rbp - 0x30], rdx
lea rax, [rbp - 0x40]
cmp r10, 7
cmova rax, r11
mov word [rax + rdx*2], si
jmp 0x140001f95
sub rdx, r8
mov rax, r10
sub rax, r8
cmp rdx, rax
ja 0x140001f89
lea rax, [rdx + r8]
mov qword [rbp - 0x30], rax
lea r9, [rbp - 0x40]
cmp r10, 7
cmova r9, r11
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140001f7e
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x140001f95
mov r9, rdx
lea rcx, [rbp - 0x40]
call fcn.140008950
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 0x140001e5b
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3