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

Disassembly:
jmp 0x14006ba90
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 [0x140131878]
xor rax, rbp
mov qword [rbp + 0x700], rax
lea rcx, [0x1401432f9]
call fcn.1400508f4
lea rcx, [rbp + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
cmp dword [rbp + 8], 0
jne 0x14006bb0b
cmp qword [rbp + 0x10], 0
jne 0x14006bb0b
mov dword [rbp + 0x6f4], 1
jmp 0x14006bb15
mov dword [rbp + 0x6f4], 0
mov eax, dword [rbp + 0x6f4]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x14006bb4f
cmp qword [rbp + 0x18], 0
jne 0x14006bb37
mov dword [rbp + 0x6f4], 1
jmp 0x14006bb41
mov dword [rbp + 0x6f4], 3
mov eax, dword [rbp + 0x6f4]
mov dword [rbp + 0x6f8], eax
jmp 0x14006bb59
mov dword [rbp + 0x6f8], 1
mov eax, dword [rbp + 0x6f8]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x44], 0
je 0x14006bb75
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x6f8], rax
jmp 0x14006bb80
mov qword [rbp + 0x6f8], 0
mov rax, qword [rbp + 0x6f8]
mov qword [rbp + 0x88], rax
cmp dword [rbp + 0x44], 0
je 0x14006bba1
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x6f8], rax
jmp 0x14006bbac
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 0x14006bc0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpOpen_failed_with_error_:_0x_x_n
call fcn.14004ead6
xor eax, eax
jmp 0x14006bfd9
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 0x14006bc54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpConnect_failed_with_error_:_0x_x_n
call fcn.14004ead6
xor eax, eax
jmp 0x14006bfd9
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, [0x140114c90]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x108], 0
jne 0x14006bca4
xor eax, eax
jmp 0x14006bfd9
cmp dword [rbp + 0x44], 0
jne 0x14006bda5
cmp qword [rbp + 0x10], 0
je 0x14006bcc1
mov dword [rbp + 0x6f4], 2
jmp 0x14006bccb
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 0x14006bcfd
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.14004e194
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 0x14006bdef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
je 0x14006bda5
cmp dword [rbp + 0x3e4], 0
jne 0x14006bdff
xor eax, eax
jmp 0x14006bfd9
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 0x14006be24
xor eax, eax
jmp 0x14006bfd9
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 0x14006be62
xor eax, eax
jmp 0x14006bfd9
mov rcx, qword [rbp + 0x468]
call fcn.14004f198
mov rcx, qword [rbp + 0x740]
mov qword [rcx], rax
mov rax, qword [rbp + 0x748]
mov qword [rax], 0
cmp dword [rbp + 0x424], 0
je 0x14006bf6e
mov eax, dword [rbp + 0x424]
mov rcx, qword [rbp + 0x748]
add rax, qword [rcx]
cmp rax, qword [rbp + 0x468]
jbe 0x14006befe
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.14004dcc1
mov qword [rbp + 0x488], rax
cmp qword [rbp + 0x488], 0
jne 0x14006beeb
xor eax, eax
jmp 0x14006bfd9
mov rax, qword [rbp + 0x740]
mov rcx, qword [rbp + 0x488]
mov qword [rax], rcx
jmp 0x14006be93
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 0x14006bf3b
xor eax, eax
jmp 0x14006bfd9
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 0x14006be86
mov rax, qword [rbp + 0x748]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x740]
mov rcx, qword [rax]
call fcn.14004dcc1
mov qword [rbp + 0x4a8], rax
cmp qword [rbp + 0x4a8], 0
jne 0x14006bf9c
xor eax, eax
jmp 0x14006bfd9
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, [0x1401149b8]
call fcn.14004fed6
mov rax, rdi
mov rcx, qword [rbp + 0x700]
xor rcx, rbp
call fcn.14004eb76
lea rsp, [rbp + 0x718]
pop rdi
pop rbp
ret