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

Disassembly:
jmp 0x140001710
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x198
mov qword [rsp + 0x158], 0xfffffffffffffffe
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rcx, [rsp + 0x70]
call fcn.140001267
nop
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x98], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140001801
lea rax, [rsp + 0xc0]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x70]
call fcn.1400010be
lea rax, [rsp + 0xc0]
mov rdi, qword [rsp + 0x1b0]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x1b0]
jmp 0x140001c63
xor r9d, r9d
movzx r8d, word [rsp + 0x1c0]
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140001878
lea rax, [rsp + 0xd0]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x70]
call fcn.1400010be
lea rax, [rsp + 0xd0]
mov rdi, qword [rsp + 0x1b0]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x1b0]
jmp 0x140001c63
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x1c8]
lea rdx, [0x1400690c8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140001907
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x70]
call fcn.1400010be
lea rax, [rsp + 0xe0]
mov rdi, qword [rsp + 0x1b0]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x1b0]
jmp 0x140001c63
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 [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jne 0x14000198f
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x70]
call fcn.1400010be
lea rax, [rsp + 0xf0]
mov rdi, qword [rsp + 0x1b0]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x1b0]
jmp 0x140001c63
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
je 0x140001b1d
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0x9c], 0
lea rdx, [rsp + 0x9c]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
cmp dword [rsp + 0x9c], 0
jne 0x1400019ea
jmp 0x140001b1d
mov eax, dword [rsp + 0x9c]
mov ecx, eax
call fcn.140005cc0
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x9c]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call fcn.140007500
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x9c]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140001af5
lea rax, [rsp + 0x108]
mov qword [rsp + 0x120], rax
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x160], rax
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x70]
call fcn.140001104
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x170], rax
mov rdx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x120]
call fcn.140001055
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x160]
mov r9, rax
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0x70]
call fcn.14000105a
nop
lea rcx, [rsp + 0x128]
call fcn.14000106e
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x140]
call fcn.1400074d0
xor eax, eax
cmp eax, 1
jne 0x1400019b1
lea rcx, [rsp + 0x70]
call fcn.140001118
movzx eax, al
test eax, eax
jne 0x140001be4
lea rcx, [rsp + 0x70]
call fcn.140001069
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140007490
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], 0
jmp 0x140001b76
mov eax, dword [rsp + 0xb8]
inc eax
mov dword [rsp + 0xb8], eax
movsxd rax, dword [rsp + 0xb8]
mov qword [rsp + 0x180], rax
lea rcx, [rsp + 0x70]
call fcn.140001069
mov rcx, qword [rsp + 0x180]
cmp rcx, rax
jae 0x140001bca
movsxd rax, dword [rsp + 0xb8]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400011d6
movsxd rcx, dword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
movzx eax, byte [rax]
mov byte [rdx + rcx], al
jmp 0x140001b66
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x48], 0
je 0x140001bf7
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x68], 0
je 0x140001c0a
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x40], 0
je 0x140001c1d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rax, [rsp + 0x148]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x70]
call fcn.1400010be
lea rax, [rsp + 0x148]
mov rdi, qword [rsp + 0x1b0]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x1b0]
add rsp, 0x198
pop rdi
pop rsi
ret