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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2f8
mov rax, qword [0x140066018]
xor rax, rsp
mov qword [rsp + 0x2e8], rax
mov dword [rsp + 0x60], 0
mov r8d, 0xfde9
mov rdx, qword [rsp + 0x308]
lea rcx, [rsp + 0x150]
call fcn.140023020
nop
mov r8d, 0xfde9
mov rdx, qword [rsp + 0x318]
lea rcx, [rsp + 0x130]
call fcn.140023020
nop
mov rcx, qword [rsp + 0x300]
call fcn.1400194f0
mov qword [rsp + 0x108], rax
mov eax, dword [rsp + 0x60]
or eax, 1
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x50], 0
movzx r8d, byte [rsp + 0x58]
lea rdx, str.Load
lea rcx, [rsp + 0x128]
call fcn.1400165a0
mov rcx, rax
call fcn.140020430
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x1a0]
call fcn.140019180
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov r8d, 0xfde9
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x180]
call fcn.140023020
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.14001f6a0
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x180]
call fcn.140019fa0
nop
lea rcx, [rsp + 0x1a0]
call fcn.140019f70
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, [0x140050c20]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14001c0c6
lea rcx, [rsp + 0x150]
call fcn.14001f6a0
xor r9d, r9d
movzx r8d, word [rsp + 0x310]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x78], rax
lea rax, [0x140050a5c]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x1e0]
call fcn.140019180
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov r8d, 0xfde9
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x1c0]
call fcn.140023020
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call fcn.14001f6a0
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x1c0]
call fcn.140019fa0
nop
lea rcx, [rsp + 0x1e0]
call fcn.140019f70
cmp qword [rsp + 0x78], 0
je 0x14001c1a1
lea rcx, [rsp + 0x130]
call fcn.14001f6a0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, [0x140050c30]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
movzx r8d, byte [rsp + 0x59]
lea rdx, [0x140050c38]
lea rcx, [rsp + 0x2b0]
call fcn.14000a760
mov rcx, rax
call fcn.140021470
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x220]
call fcn.140019180
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov r8d, 0xfde9
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x200]
call fcn.140023020
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call fcn.14001f6a0
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x200]
call fcn.140019fa0
nop
lea rcx, [rsp + 0x220]
call fcn.140019f70
mov dword [rsp + 0x80], 0xffffffff
cmp qword [rsp + 0x50], 0
je 0x14001c298
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x80]
lea rdx, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14001c2b0
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14001c45d
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x14001c317
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x84], eax
movzx r8d, byte [rsp + 0x5a]
lea rdx, str.Error__u_in_WinHttpQueryDataAvailable._n
lea rcx, [rsp + 0x280]
call fcn.14000c800
mov rcx, rax
call fcn.140021150
mov ecx, dword [rsp + 0x84]
mov edx, ecx
mov rcx, rax
call fcn.140025aa0
mov eax, dword [rsp + 0x40]
inc eax
mov eax, eax
mov ecx, eax
call fcn.140025d24
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x14001c37a
movzx r8d, byte [rsp + 0x5b]
lea rdx, str.Out_of_memory_n
lea rcx, [rsp + 0x170]
call fcn.140014960
mov rcx, rax
call fcn.140021b50
mov rcx, rax
call fcn.140025aa0
mov dword [rsp + 0x40], 0
jmp 0x14001c452
mov eax, dword [rsp + 0x40]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.140029b90
lea r9, [rsp + 0x88]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14001c3f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x8c], eax
movzx r8d, byte [rsp + 0x5c]
lea rdx, str.Error__u_in_WinHttpReadData._n
lea rcx, [rsp + 0x260]
call fcn.14000f460
mov rcx, rax
call fcn.140020d90
mov ecx, dword [rsp + 0x8c]
mov edx, ecx
mov rcx, rax
call fcn.140025aa0
jmp 0x14001c438
mov dword [rsp + 0x4c], 0
jmp 0x14001c408
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x4c], eax
jae 0x14001c438
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x70]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x44], al
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x300]
call fcn.140023b60
jmp 0x14001c3fe
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.140025d1c
cmp dword [rsp + 0x40], 0
ja 0x14001c2bb
cmp dword [rsp + 0x48], 0
jne 0x14001c4a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x90], eax
movzx r8d, byte [rsp + 0x5d]
lea rdx, str.Error__d_has_occurred._n
lea rcx, [rsp + 0x240]
call fcn.140010770
mov rcx, rax
call fcn.140020bb0
mov ecx, dword [rsp + 0x90]
mov edx, ecx
mov rcx, rax
call fcn.140025aa0
cmp qword [rsp + 0x50], 0
je 0x14001c4b7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x78], 0
je 0x14001c4ca
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x68], 0
je 0x14001c4de
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rcx, [rsp + 0x130]
call fcn.140019fa0
nop
lea rcx, [rsp + 0x150]
call fcn.140019fa0
nop
mov rcx, qword [rsp + 0x308]
call fcn.140019f70
nop
mov rcx, qword [rsp + 0x318]
call fcn.140019f70
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x2e8]
xor rcx, rsp
call fcn.140025cc0
add rsp, 0x2f8
ret