Function at 0x7ff7cbf52b3c
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x7ff7cbf93a08]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, r9
mov rdi, r8
mov rax, rdx
mov r14, rcx
mov rcx, qword [rbp + 0x80]
mov qword [rbp - 0x60], rcx
mov rcx, qword [rbp + 0x88]
mov qword [rbp - 0x68], rcx
mov r13, qword [rbp + 0x90]
mov r12, qword [rbp + 0x98]
mov r8, qword [rbp + 0xa0]
mov qword [rbp - 0x80], r8
mov rcx, qword [rbp + 0xa8]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rbp + 0xb0]
mov qword [rbp - 0x78], rcx
mov rdx, qword [rbp + 0xb8]
mov qword [rbp - 0x70], rdx
mov rcx, qword [rbp + 0xc0]
mov qword [rbp - 0x50], rcx
mov rcx, qword [rbp + 0xc8]
mov qword [rbp - 0x58], rcx
xor esi, esi
mov dword [rsp + 0x44], esi
mov dword [rbp - 0x40], esi
mov dword [rbp - 0xc], esi
mov ebx, esi
mov dword [rsp + 0x40], esi
mov dword [r8], esi
cmp qword [rax + 0x18], 8
jb 0x7ff7cbf52bf5
mov rax, qword [rax]
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.winhttp.dll_WinHttpOpen]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x7ff7cbf53182
movzx r8d, word [rbp + 0x70]
mov ecx, 0x1bb
mov sil, byte [rbp + 0x78]
test sil, sil
cmovne r8w, cx
cmp qword [rdi + 0x18], 8
jb 0x7ff7cbf52c3a
mov rdi, qword [rdi]
xor r9d, r9d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.winhttp.dll_WinHttpConnect]
mov rcx, rax
mov qword [rbp - 0x48], rax
xor edx, edx
test rax, rax
je 0x7ff7cbf53177
neg sil
sbb eax, eax
and eax, 0x7fff00
add eax, 0x100
cmp qword [r15 + 0x18], 8
jb 0x7ff7cbf52c74
mov r15, qword [r15]
cmp qword [r14 + 0x18], 8
jb 0x7ff7cbf52c7e
mov r14, qword [r14]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8, r15
mov rdx, r14
call qword [sym.imp.winhttp.dll_WinHttpOpenRequest]
mov rdi, rax
mov esi, 1
test rax, rax
je 0x7ff7cbf53159
mov esi, ebx
mov r14, qword [rbp - 0x80]
mov r15d, ebx
xor ebx, ebx
test r15d, r15d
je 0x7ff7cbf52d11
lea rdx, [0x7ff7cbf83c28]
mov rbx, qword [rbp - 0x78]
mov rcx, rbx
call fcn.7ff7cbf2ab5c
xor r8d, r8d
test al, al
je 0x7ff7cbf52d0f
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x7ff7cbf52ce7
mov rax, qword [rcx]
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff7cbf52cf4
mov r9, qword [rbx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov r8d, r15d
mov edx, 1
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpSetCredentials]
xor ebx, ebx
mov rcx, qword [rbp - 0x68]
mov eax, dword [rcx + 0x10]
mov r8, qword [rbp - 0x60]
mov r9, rcx
cmp qword [r8 + 0x10], rbx
jne 0x7ff7cbf52d36
cmp qword [rcx + 0x18], 0x10
jb 0x7ff7cbf52d2f
mov r9, qword [rcx]
xor r8d, r8d
xor edx, edx
jmp 0x7ff7cbf52d51
cmp qword [rcx + 0x18], 0x10
jb 0x7ff7cbf52d40
mov r9, qword [rcx]
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x7ff7cbf52d4d
mov rdx, qword [r8]
mov r8d, dword [r8 + 0x10]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpSendRequest]
mov ebx, eax
test eax, eax
je 0x7ff7cbf52d7e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
mov ebx, eax
test eax, eax
jne 0x7ff7cbf52d97
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x2f00
je 0x7ff7cbf52f58
test ebx, ebx
je 0x7ff7cbf52f49
mov dword [rbp - 0x40], 4
and qword [rsp + 0x28], 0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, r14
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov ebx, eax
and qword [rsp + 0x28], 0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x16]
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x7ff7cbf52e59
mov edx, dword [rbp - 0x40]
inc edx
cmp rdx, qword [r12 + 0x10]
ja 0x7ff7cbf52e18
mov rax, r12
cmp qword [r12 + 0x18], 8
jb 0x7ff7cbf52e0b
mov rax, qword [r12]
mov qword [r12 + 0x10], rdx
xor ecx, ecx
mov word [rax + rdx*2], cx
jmp 0x7ff7cbf52e2a
xor r8d, r8d
sub rdx, qword [r12 + 0x10]
mov rcx, r12
call fcn.7ff7cbf3f1c0
xor ecx, ecx
mov r9, r12
cmp qword [r12 + 0x18], 8
jb 0x7ff7cbf52e39
mov r9, qword [r12]
mov qword [rsp + 0x28], rcx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov ebx, eax
test ebx, ebx
je 0x7ff7cbf52f49
mov eax, dword [r14]
sub eax, 0xc8
je 0x7ff7cbf52f9d
sub eax, 0xc9
je 0x7ff7cbf52ec4
cmp eax, 6
jne 0x7ff7cbf52f65
lea r9, [rbp - 0x14]
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpQueryAuthSchemes]
mov ebx, eax
test eax, eax
je 0x7ff7cbf52ea5
mov ecx, dword [rbp - 0x18]
call fcn.7ff7cbf38f08
mov r15d, eax
cmp dword [rsp + 0x44], 0x197
jne 0x7ff7cbf52f49
mov dword [rsp + 0x40], 1
mov esi, dword [rsp + 0x40]
jmp 0x7ff7cbf52f49
lea r9, [rbp - 0x14]
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpQueryAuthSchemes]
mov ebx, eax
xor esi, esi
test eax, eax
je 0x7ff7cbf52f2f
mov ecx, dword [rbp - 0x18]
call fcn.7ff7cbf38f08
mov r8d, eax
test eax, eax
jne 0x7ff7cbf52ef5
lea eax, [rsi + 1]
jmp 0x7ff7cbf52f33
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x7ff7cbf52f06
mov rax, qword [rcx]
mov rcx, qword [rbp - 0x50]
mov r9, rcx
cmp qword [rcx + 0x18], 8
jb 0x7ff7cbf52f17
mov r9, qword [rcx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov edx, dword [rbp - 0x14]
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpSetCredentials]
mov ebx, eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], 0x191
mov ecx, 1
cmove eax, ecx
mov dword [rsp + 0x40], eax
mov esi, eax
mov eax, dword [r14]
mov dword [rsp + 0x44], eax
test ebx, ebx
je 0x7ff7cbf5314b
test esi, esi
jne 0x7ff7cbf5314b
jmp 0x7ff7cbf52cb5
mov edx, dword [r14]
lea rcx, [rbp - 0x38]
call fcn.7ff7cbf2f228
nop
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.7ff7cbf3f144
nop
lea rcx, [rbp - 0x38]
call fcn.7ff7cbf3ecd0
jmp 0x7ff7cbf5314b
xor r14d, r14d
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], 0xf
mov byte [rbp - 0x38], r14b
mov rax, r13
cmp qword [r13 + 0x18], 0x10
jb 0x7ff7cbf52fc2
mov rax, qword [r13]
mov qword [r13 + 0x10], r14
mov byte [rax], r14b
mov rsi, qword [rsp + 0x50]
mov dword [rbp - 0x40], r14d
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x7ff7cbf5301f
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.7ff7cbf2f228
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, rsi
call fcn.7ff7cbf3f144
nop
lea rcx, [rsp + 0x60]
call fcn.7ff7cbf3ecd0
cmp dword [rbp - 0x40], r14d
je 0x7ff7cbf5310d
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rax, qword [rbp - 0x38]
mov qword [rbp - 0x28], r14
mov byte [rax], r14b
mov edx, dword [rbp - 0x40]
cmp rdx, qword [rbp - 0x28]
ja 0x7ff7cbf5305f
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rax, qword [rbp - 0x38]
mov qword [rbp - 0x28], rdx
mov byte [rax + rdx], r14b
jmp 0x7ff7cbf5306f
sub rdx, qword [rbp - 0x28]
xor r8d, r8d
lea rcx, [rbp - 0x38]
call fcn.7ff7cbf3f0c8
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rcx, qword [rbp - 0x38]
mov r8d, dword [rbp - 0x40]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
lea r9, [rbp - 0xc]
mov r8d, dword [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpReadData]
test eax, eax
jne 0x7ff7cbf530e9
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.7ff7cbf2f228
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, rsi
call fcn.7ff7cbf3f144
nop
lea rcx, [rsp + 0x60]
call fcn.7ff7cbf3ecd0
jmp 0x7ff7cbf53103
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x28]
mov rcx, r13
call fcn.7ff7cbf3f050
cmp dword [rbp - 0x40], r14d
ja 0x7ff7cbf52fce
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x7ff7cbf5314b
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7cbf53146
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7cbf53146
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7cbf77c70
mov rcx, rdi
call qword [sym.imp.winhttp.dll_WinHttpCloseHandle]
mov esi, 1
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.winhttp.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.winhttp.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x7ff7cbf53182
mov al, sil
jmp 0x7ff7cbf53184
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.winhttp.dll_WinHttpCloseHandle]
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.7ff7cbf77d90
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret