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

Disassembly:
push r12
push r13
push r14
sub rsp, 0x60
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r12, r8
lea rcx, str.A_WinHTTP_Example_Program_1.0
xor r13d, r13d
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r14, rax
test rax, rax
jne 0x1400013f4
lea rcx, str.WinHttpOpen_failed._n
call fcn.140001010
xor eax, eax
jmp 0x14000167a
mov r8d, 0x50
mov qword [rsp + 0x50], r15
xor r9d, r9d
lea rdx, str.192.168.10.136
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
jne 0x140001436
lea rcx, str.WinHttpConnect_failed._n
call fcn.140001010
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x140001675
mov dword [rsp + 0x30], r13d
lea r8, str._192.168.10.136.https.dat
mov qword [rsp + 0x28], r13
lea rdx, [0x140003408]
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov rcx, r15
mov qword [rsp + 0x98], rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x14000147d
lea rcx, str.WinHttpOpenRequest_failed._n
call fcn.140001010
jmp 0x1400014ce
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], r13d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r13d
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1400014aa
lea rcx, str.WinHttpSendRequest_failed._n
jmp 0x1400014c0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1400014e7
lea rcx, str.WinHttpReceiveResponse_failed._n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x14000166d
mov qword [rsp + 0x80], rbx
mov rbx, r13
mov qword [rsp + 0x88], rbp
mov ebp, r13d
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x44], r13d
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r13d
mov rcx, rsi
mov rdi, 0xffffffffffffffff
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140001621
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400015cc
add eax, 1
mov ecx, eax
cmovb rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140001618
mov r8d, dword [rsp + 0x40]
xor edx, edx
inc r8d
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140001601
mov edx, ebp
mov rax, 0xffffffffffffffff
add edx, dword [rsp + 0x40]
mov rcx, rbx
cmovb rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rbx, rax
test rax, rax
je 0x1400015f0
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov ecx, ebp
add rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add ebp, dword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rsp + 0x40], r13d
ja 0x140001507
mov rcx, rsi
mov dword [r12], ebp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, rbx
jmp 0x140001658
lea rcx, str.Realloc_failed._n
call fcn.140001010
mov rcx, rdi
jmp 0x140001635
lea rcx, str.WinHttpReadData_failed._n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000162d
lea rcx, str.Out_of_memory._n
jmp 0x140001628
lea rcx, str.WinHttpQueryDataAvailable_failed._n
call fcn.140001010
test rbx, rbx
je 0x14000163b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x98]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001960
add rsp, 0x60
pop r14
pop r13
pop r12
ret