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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1400a9100]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov r13, rdx
mov r14, rcx
mov qword [rbp - 0x68], rdx
xor esi, esi
mov r12d, esi
mov dword [rbp - 0x74], esi
add rcx, 0x60
cmp qword [rcx + 0x18], 7
jbe 0x140028f10
mov rcx, qword [rcx]
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbx, rax
mov qword [rbp - 0x68], rax
test rax, rax
jne 0x140028f37
mov byte [r13 + 0x20], al
jmp 0x140029085
cmp word [r14 + 0xa4], 0
jne 0x140028f4c
mov word [r14 + 0xa4], 0x1bb
cmp dword [r14 + 0xa0], 0
jne 0x140028f63
mov byte [r13 + 0x20], 0
mov rcx, rbx
jmp 0x14002907f
mov rdx, qword [r14 + 0x98]
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], rsi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140028f90
lea rcx, [rbp + 0xb0]
call fcn.140004d30
nop
mov ecx, dword [r14 + 0xa0]
mov r8, qword [rbp + 0xc0]
cmp r8, rcx
jbe 0x140028fdd
mov qword [rbp + 0xc0], rcx
lea rax, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rax, qword [rbp + 0xb0]
mov word [rax + rcx*2], si
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rdx, qword [rbp + 0xb0]
xor r9d, r9d
movzx r8d, word [r14 + 0xa4]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbx, rax
mov qword [rbp - 0x70], rax
test rax, rax
jne 0x1400290b2
mov byte [r13 + 0x20], al
mov rdx, qword [rbp + 0xc8]
cmp rdx, 7
jbe 0x140029062
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002905d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029772
call fcn.1400532ac
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], si
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, r13
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140053250
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, dword [r14 + 0x58]
lea rcx, [rbp + 0xd0]
call fcn.14002a0f0
nop
mov eax, 0x800100
mov ecx, 0x100
cmp dword [r14 + 0x94], 2
cmovne eax, ecx
lea rdx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 7
cmova rdx, qword [rbp + 0xd0]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, qword [r14 + 0xc8]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
mov qword [rbp - 0x60], rax
test rax, rax
jne 0x14002918b
mov byte [r13 + 0x20], al
mov rdx, qword [rbp + 0xe8]
cmp rdx, 7
jbe 0x140029166
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140029161
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002976c
call fcn.1400532ac
movdqa xmm0, xmmword [0x14009a850]
movdqu xmmword [rbp + 0xe0], xmm0
mov word [rbp + 0xd0], si
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x14002901c
mov dword [rsp + 0x20], 0xea60
mov edx, 0xea60
mov r9d, edx
mov r8d, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov dword [rbp - 0x78], 0x3300
mov r9d, 4
lea r8, [rbp - 0x78]
mov edx, 0x1f
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rdi, qword [r14 + 0x48]
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
jne 0x14002940d
nop word [rax + rax]
lea rbx, [rdi + 0x20]
mov edx, 1
lea rcx, [rbp - 0x50]
call fcn.140005b30
nop
lea rsi, [rbx + 0x20]
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x140029205
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140008730
lea rdx, [0x140084d80]
mov rcx, rax
call fcn.1400044b0
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 7
jbe 0x14002922e
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rax
call fcn.140008730
lea rdx, [0x140084d78]
mov rcx, rax
call fcn.1400044b0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
xor esi, esi
mov qword [rbp + 0x100], rsi
mov qword [rbp + 0x108], 7
mov word [rbp + 0xf0], si
or r12d, 4
mov dword [rbp - 0x74], r12d
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
mov ecx, dword [rbp + 0x38]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400292ad
mov rax, qword [rbp + 8]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400292ad
mov rax, qword [rbp - 0x18]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0x30]
cmovb rdx, qword [rbp + 0x30]
sub rdx, r9
jmp 0x1400292d5
test cl, 4
jne 0x140029315
mov rax, qword [rbp]
mov rcx, qword [rax]
test rcx, rcx
je 0x140029315
mov rax, qword [rbp - 0x20]
mov r9, qword [rax]
mov rax, qword [rbp + 0x18]
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, rcx
mov rax, r9
sar rdx, 1
test rax, rax
je 0x140029315
lea rcx, [rbp + 0xf0]
cmp rdx, 7
ja 0x14002930d
mov qword [rbp + 0x100], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.14007e5e0
mov word [rbp + rbx + 0xf0], si
jmp 0x140029315
xor r8d, r8d
call fcn.1400106c0
and r12d, 0xfffffffb
or r12d, 2
lea rdx, [rbp + 0xf0]
cmp qword [rbp + 0x108], 7
cmova rdx, qword [rbp + 0xf0]
mov r9d, 0xa0000000
mov r8d, 0xffffffff
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov rdx, qword [rbp + 0x108]
cmp rdx, 7
jbe 0x14002938f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002938a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029778
call fcn.1400532ac
mov qword [rbp + 0x100], rsi
mov qword [rbp + 0x108], 7
mov word [rbp + 0xf0], si
lea rcx, [rbp - 0x50]
call fcn.1400053a0
mov rax, qword [rdi + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400293dd
mov rax, qword [rdi + 8]
cmp byte [rax + 0x19], 0
jne 0x1400293d8
cmp rdi, qword [rax + 0x10]
jne 0x1400293d8
mov rdi, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400293c5
mov rdi, rax
jmp 0x1400293ff
mov rdi, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1400293ff
nop dword [rax]
mov rdi, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400293f0
cmp byte [rdi + 0x19], 0
je 0x1400291e0
mov rbx, qword [rbp - 0x70]
mov r9, rsi
mov eax, esi
cmp dword [r14 + 0x58], 1
jne 0x140029424
mov r9, qword [r14 + 0x28]
mov eax, dword [r14 + 0x30]
sub eax, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140029456
mov byte [r13 + 0x20], 0
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140029120
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14002946d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140029443
mov word [rsp + 0x50], si
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
movzx eax, word [rsp + 0x48]
mov word [rsp + 0x50], ax
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rsi
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140029790
mov eax, dword [rsp + 0x40]
mov rsi, qword [rsp + 0x70]
xor r14d, r14d
test eax, eax
je 0x1400295e6
mov rbx, qword [rsp + 0x78]
nop dword [rax]
nop word [rax + rax]
mov dword [rsp + 0x4c], r14d
lea r9, [rsp + 0x4c]
mov r8d, eax
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400295e6
mov edi, dword [rsp + 0x4c]
mov rcx, rbx
sub rcx, rsi
cmp rdi, rcx
jae 0x140029546
lea rbx, [rsi + rdi]
jmp 0x140029585
jbe 0x14002958a
mov rax, qword [rbp - 0x80]
sub rax, rsi
cmp rdi, rax
jbe 0x140029572
lea r8, [rsp + 0x44]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140028aa0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
jmp 0x14002958a
sub rdi, rcx
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.14007ec80
add rbx, rdi
mov qword [rsp + 0x78], rbx
mov rdi, rsi
cmp rsi, rbx
je 0x1400295cc
mov rdx, qword [rsp + 0x60]
cmp rdx, qword [rsp + 0x68]
je 0x1400295b2
movzx eax, byte [rdi]
mov byte [rdx], al
mov rdx, qword [rsp + 0x60]
inc rdx
mov qword [rsp + 0x60], rdx
jmp 0x1400295c4
mov r8, rdi
lea rcx, [rsp + 0x58]
call fcn.1400288b0
mov rdx, qword [rsp + 0x60]
inc rdi
cmp rdi, rbx
jne 0x140029597
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140029510
movzx eax, word [rsp + 0x50]
mov word [r13], ax
mov rdx, qword [rsp + 0x68]
mov r8, r14
mov qword [rsp + 0x68], r14
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], r14
mov rax, qword [rsp + 0x58]
mov rdi, r14
mov qword [rsp + 0x58], r14
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rcx
mov qword [r13 + 0x18], rdx
mov byte [r13 + 0x20], 1
test rsi, rsi
je 0x140029668
mov rdx, qword [rbp - 0x80]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x140029656
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002977e
mov rcx, rsi
call fcn.1400532ac
mov r8, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1400296b2
sub r8, rdi
mov rax, rdi
cmp r8, 0x1000
jb 0x140029695
add r8, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029784
mov rdx, r8
mov rcx, rdi
call fcn.1400532ac
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor esi, esi
mov qword [rsp + 0x68], rsi
jmp 0x1400296b4
xor esi, esi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 7
jbe 0x140029700
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400296fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002976c
call fcn.1400532ac
movdqa xmm0, xmmword [0x14009a850]
movdqu xmmword [rbp + 0xe0], xmm0
mov word [rbp + 0xd0], si
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 7
jbe 0x140029062
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002905d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029772
jmp 0x14002905d
call fcn.1400593b4
nop
call fcn.1400593b4
nop
call fcn.1400593b4
nop
call fcn.1400593b4
nop
call fcn.1400593b4
int3