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

Disassembly:
jmp 0x14006ff60
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x758
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x136
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x778]
mov rax, qword [0x14013a908]
xor rax, rbp
mov qword [rbp + 0x700], rax
lea rcx, [0x14014ed08]
call fcn.1400529c1
lea rcx, [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
cmp dword [rbp + 8], 0
jne 0x14006ffdb
cmp qword [rbp + 0x10], 0
jne 0x14006ffdb
mov dword [rbp + 0x6f4], 1
jmp 0x14006ffe5
mov dword [rbp + 0x6f4], 0
mov eax, dword [rbp + 0x6f4]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x14007001f
cmp qword [rbp + 0x18], 0
jne 0x140070007
mov dword [rbp + 0x6f4], 1
jmp 0x140070011
mov dword [rbp + 0x6f4], 3
mov eax, dword [rbp + 0x6f4]
mov dword [rbp + 0x6f8], eax
jmp 0x140070029
mov dword [rbp + 0x6f8], 1
mov eax, dword [rbp + 0x6f8]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x44], 0
je 0x140070045
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x6f8], rax
jmp 0x140070050
mov qword [rbp + 0x6f8], 0
mov rax, qword [rbp + 0x6f8]
mov qword [rbp + 0x88], rax
cmp dword [rbp + 0x44], 0
je 0x140070071
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x6f8], rax
jmp 0x14007007c
mov qword [rbp + 0x6f8], 0
mov rax, qword [rbp + 0x6f8]
mov qword [rbp + 0xa8], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0xa8]
mov r8, qword [rbp + 0x88]
mov edx, dword [rbp + 0x64]
lea rcx, str.WinHTTP_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x1400700dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpOpen_failed_with_error_:_0x_x_n
call fcn.140050b35
xor eax, eax
jmp 0x1400704a9
xor r9d, r9d
mov r8w, 0x1bb
mov rdx, qword [rbp + 0x730]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0
jne 0x140070124
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpConnect_failed_with_error_:_0x_x_n
call fcn.140050b35
xor eax, eax
jmp 0x1400704a9
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x738]
lea rdx, [0x14011dc30]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x108], 0
jne 0x140070174
xor eax, eax
jmp 0x1400704a9
cmp dword [rbp + 0x44], 0
jne 0x140070275
cmp qword [rbp + 0x10], 0
je 0x140070191
mov dword [rbp + 0x6f4], 2
jmp 0x14007019b
mov dword [rbp + 0x6f4], 1
mov eax, dword [rbp + 0x6f4]
mov dword [rbp + 0x128], eax
mov dword [rbp + 0x12c], 3
mov dword [rbp + 0x144], 1
cmp qword [rbp + 0x10], 0
je 0x1400701cd
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x130], rax
lea rax, [rbp + 0x170]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x738]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x730]
lea r8, str.https:___ws_ws
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.1400501d0
lea r9, [rbp + 0x398]
lea r8, [rbp + 0x128]
lea rdx, [rbp + 0x170]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov r9d, 0x18
lea r8, [rbp + 0x398]
mov edx, 0x26
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [rbp + 0x3c4], 1
mov r9d, 4
lea r8, [rbp + 0x3c4]
mov edx, 0x4d
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rbp + 0x3e4], eax
cmp dword [rbp + 0x3e4], 0
jne 0x1400702bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
je 0x140070275
cmp dword [rbp + 0x3e4], 0
jne 0x1400702cf
xor eax, eax
jmp 0x1400704a9
xor edx, edx
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rbp + 0x404], eax
cmp dword [rbp + 0x404], 0
jne 0x1400702f4
xor eax, eax
jmp 0x1400704a9
mov dword [rbp + 0x424], 0
mov dword [rbp + 0x444], 0
mov qword [rbp + 0x468], 0x1000
lea rdx, [rbp + 0x424]
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140070332
xor eax, eax
jmp 0x1400704a9
mov rcx, qword [rbp + 0x468]
call fcn.140051210
mov rcx, qword [rbp + 0x740]
mov qword [rcx], rax
mov rax, qword [rbp + 0x748]
mov qword [rax], 0
cmp dword [rbp + 0x424], 0
je 0x14007043e
mov eax, dword [rbp + 0x424]
mov rcx, qword [rbp + 0x748]
add rax, qword [rcx]
cmp rax, qword [rbp + 0x468]
jbe 0x1400703ce
mov rax, qword [rbp + 0x468]
shl rax, 1
mov qword [rbp + 0x468], rax
mov rdx, qword [rbp + 0x468]
mov rax, qword [rbp + 0x740]
mov rcx, qword [rax]
call fcn.14004fcdf
mov qword [rbp + 0x488], rax
cmp qword [rbp + 0x488], 0
jne 0x1400703bb
xor eax, eax
jmp 0x1400704a9
mov rax, qword [rbp + 0x740]
mov rcx, qword [rbp + 0x488]
mov qword [rax], rcx
jmp 0x140070363
mov rax, qword [rbp + 0x740]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x748]
add rax, qword [rcx]
lea r9, [rbp + 0x444]
mov r8d, dword [rbp + 0x424]
mov rdx, rax
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14007040b
xor eax, eax
jmp 0x1400704a9
mov eax, dword [rbp + 0x444]
mov rcx, qword [rbp + 0x748]
add rax, qword [rcx]
mov rcx, qword [rbp + 0x748]
mov qword [rcx], rax
lea rdx, [rbp + 0x424]
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
jmp 0x140070356
mov rax, qword [rbp + 0x748]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x740]
mov rcx, qword [rax]
call fcn.14004fcdf
mov qword [rbp + 0x4a8], rax
cmp qword [rbp + 0x4a8], 0
jne 0x14007046c
xor eax, eax
jmp 0x1400704a9
mov rax, qword [rbp + 0x740]
mov rcx, qword [rbp + 0x4a8]
mov qword [rax], rcx
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14011db20]
call fcn.140051f80
mov rax, rdi
mov rcx, qword [rbp + 0x700]
xor rcx, rbp
call fcn.140050bd0
lea rsp, [rbp + 0x718]
pop rdi
pop rbp
ret