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

Disassembly:
jmp 0x140001440
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, 0x1f8
mov rdi, rsp
mov ecx, 0x7e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x210]
mov qword [rsp + 0x1b8], 0xfffffffffffffffe
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rcx, [rsp + 0x78]
call fcn.1400011b8
nop
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0xc4], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 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 + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x14000155a
lea rax, [rsp + 0x120]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x78]
call fcn.14000109b
lea rax, [rsp + 0x120]
mov rdi, qword [rsp + 0x210]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x210]
jmp 0x1400019fa
xor r9d, r9d
movzx r8d, word [rsp + 0x220]
mov rdx, qword [rsp + 0x218]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
jne 0x1400015da
lea rax, [rsp + 0x130]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x78]
call fcn.14000109b
lea rax, [rsp + 0x130]
mov rdi, qword [rsp + 0x210]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x210]
jmp 0x1400019fa
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x228]
lea rdx, [0x14006d0c8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
jne 0x140001672
lea rax, [rsp + 0x140]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x78]
call fcn.14000109b
lea rax, [rsp + 0x140]
mov rdi, qword [rsp + 0x210]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x210]
jmp 0x1400019fa
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 + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0xc4], eax
cmp dword [rsp + 0xc4], 0
jne 0x1400016fd
lea rax, [rsp + 0x150]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x78]
call fcn.14000109b
lea rax, [rsp + 0x150]
mov rdi, qword [rsp + 0x210]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x210]
jmp 0x1400019fa
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0xc4], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
cmp dword [rsp + 0xc4], 0
je 0x1400018a2
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0xf4], 0
lea rdx, [rsp + 0xf4]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
cmp dword [rsp + 0xf4], 0
jne 0x140001766
jmp 0x1400018a2
mov eax, dword [rsp + 0xf4]
mov ecx, eax
call fcn.140005180
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0xe0], rax
mov eax, dword [rsp + 0xf4]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call fcn.1400068e0
lea r9, [rsp + 0xb4]
mov r8d, dword [rsp + 0xf4]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000187a
lea rax, [rsp + 0x168]
mov qword [rsp + 0x180], rax
mov eax, dword [rsp + 0xb4]
mov rcx, qword [rsp + 0xe0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x78]
call fcn.1400010c8
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x1d0], rax
mov rdx, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x180]
call fcn.140001050
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x1c0]
mov r9, rax
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0x1d8]
lea rcx, [rsp + 0x78]
call fcn.140001055
nop
lea rcx, [rsp + 0x188]
call fcn.14000105f
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x1a0], rax
mov rcx, qword [rsp + 0x1a0]
call fcn.1400068b0
xor eax, eax
cmp eax, 1
jne 0x14000172a
lea rcx, [rsp + 0x78]
call fcn.1400010d7
movzx eax, al
test eax, eax
jne 0x140001969
lea rcx, [rsp + 0x78]
call fcn.14000105a
mov qword [rsp + 0x108], rax
mov rcx, qword [rsp + 0x108]
call fcn.140006870
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x118], 0
jmp 0x1400018fb
mov eax, dword [rsp + 0x118]
inc eax
mov dword [rsp + 0x118], eax
movsxd rax, dword [rsp + 0x118]
mov qword [rsp + 0x1e0], rax
lea rcx, [rsp + 0x78]
call fcn.14000105a
mov rcx, qword [rsp + 0x1e0]
cmp rcx, rax
jae 0x14000194f
movsxd rax, dword [rsp + 0x118]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000115e
movsxd rcx, dword [rsp + 0x118]
mov rdx, qword [rsp + 0x110]
movzx eax, byte [rax]
mov byte [rdx + rcx], al
jmp 0x1400018eb
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0xd8], 0
je 0x140001982
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0xd0], 0
je 0x14000199b
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0xc8], 0
je 0x1400019b4
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rax, [rsp + 0x1a8]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x78]
call fcn.14000109b
lea rax, [rsp + 0x1a8]
mov rdi, qword [rsp + 0x210]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x210]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14006d260]
call fcn.1400069d0
mov rax, rdi
add rsp, 0x1f8
pop rdi
pop rsi
ret