Function at 0x140002e80
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1990
call fcn.14005eed0
sub rsp, rax
mov rax, qword [0x1400f20b8]
xor rax, rsp
mov qword [rsp + 0x1980], rax
lea rax, [rsp + 0x180]
mov rdi, rax
xor eax, eax
mov ecx, 0x1800
rep stosb byte [rdi], al
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xf0], 0x68
lea rax, [rsp + 0x1580]
mov qword [rsp + 0x148], rax
lea rax, [rsp + 0x580]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0xd80]
mov qword [rsp + 0x128], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x1180]
mov qword [rsp + 0x138], rax
lea rax, [rsp + 0x980]
mov qword [rsp + 0x118], rax
mov dword [rsp + 0x120], 0x200
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x140], eax
mov eax, dword [rsp + 0x140]
mov dword [rsp + 0x100], eax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x130], eax
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0x110], eax
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x150], eax
mov rcx, qword [rsp + 0x19a8]
call fcn.140002620
lea r9, [rsp + 0xf0]
mov r8d, 0x80000000
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x168], 4
mov dword [rsp + 0x164], 0
xor r9d, r9d
movzx r8d, word [rsp + 0x114]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x68], rax
mov edx, 8
lea rcx, [rsp + 0x170]
call fcn.140002cf0
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x170]
call fcn.140002070
nop
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0xc8]
call fcn.140001ab0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.1400023d0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0xa8]
call fcn.140001ab0
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.1400023a0
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0xa8]
call fcn.1400022b0
nop
lea rcx, [rsp + 0xc8]
call fcn.1400022b0
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 + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea rax, [rsp + 0x164]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x168]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe0]
xor r8d, r8d
mov edx, 0x20000005
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [rsp + 0xe0]
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rsp + 0x19a0]
mov qword [rcx], rax
mov dword [rsp + 0x40], 0x100000
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x40]
mov ecx, eax
call fcn.140002380
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0xe0]
cmp rax, qword [rsp + 0x58]
jbe 0x14000324c
mov eax, dword [rsp + 0x40]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.1400612e0
lea r9, [rsp + 0x160]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov eax, dword [rsp + 0x160]
mov rcx, qword [rsp + 0x19a0]
mov rcx, qword [rcx]
add rcx, qword [rsp + 0x58]
mov r8d, eax
mov rdx, qword [rsp + 0x48]
call fcn.140060c30
mov eax, dword [rsp + 0x160]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x1400031d1
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14005ecb0
cmp qword [rsp + 0x60], 0
jne 0x140003276
mov qword [rsp + 0xb8], 0
jmp 0x14000328c
mov qword [rsp + 0x48], 0x8123
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x170]
call fcn.1400022e0
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x1980]
xor rcx, rsp
call fcn.14005ef30
add rsp, 0x1990
pop rdi
ret