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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400f4574]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14009a89f
xor eax, eax
jmp 0x14009ab72
cmp dword [rsp + 0xc0], 0
je 0x14009a903
mov r9d, 4
lea r8, [rsp + 0xc0]
mov edx, 3
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov r9d, 4
lea r8, [rsp + 0xc0]
mov edx, 5
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov r9d, 4
lea r8, [rsp + 0xc0]
mov edx, 6
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
movzx eax, word [rsp + 0x98]
test eax, eax
jne 0x14009a919
mov dword [rsp + 0x68], 0
jmp 0x14009a925
movzx eax, word [rsp + 0x98]
mov dword [rsp + 0x68], eax
movzx eax, word [rsp + 0x68]
mov word [rsp + 0x98], ax
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x50], 4
xor r9d, r9d
movzx r8d, word [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14009a978
mov dword [rsp + 0x6c], 1
jmp 0x14009a980
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x14009a999
jmp 0x14009ab35
xor eax, eax
test eax, eax
jne 0x14009a988
mov dword [rsp + 0x30], 0
lea rax, [0x14012a390]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [0x1400f49c8]
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14009a9f5
mov dword [rsp + 0x70], 1
jmp 0x14009a9fd
mov dword [rsp + 0x70], 0
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x14009aa16
jmp 0x14009ab35
xor eax, eax
test eax, eax
jne 0x14009aa05
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xa0]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x14009aa68
jmp 0x14009ab35
xor eax, eax
test eax, eax
jne 0x14009aa57
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x14009aa90
jmp 0x14009ab35
xor eax, eax
test eax, eax
jne 0x14009aa7f
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x14009aad0
jmp 0x14009ab35
xor eax, eax
test eax, eax
jne 0x14009aac5
cmp dword [rsp + 0x54], 0xc8
jne 0x14009aaea
mov dword [rsp + 0x74], 1
jmp 0x14009aaf2
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x14009ab05
jmp 0x14009ab35
xor eax, eax
test eax, eax
jne 0x14009aafa
mov r9, qword [rsp + 0xd0]
mov rax, qword [rsp + 0xd0]
mov r8d, dword [rax]
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [rsp + 0x58], eax
cmp qword [rsp + 0x40], 0
je 0x14009ab48
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x48], 0
je 0x14009ab5b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x60], 0
je 0x14009ab6e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [rsp + 0x58]
add rsp, 0x88
ret