Function at 0x14000fb20
Capabilities:
Check http status code
Prepare http request
Read http header
Receive http response

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, qword [rsp + 0xf0]
xor eax, eax
mov qword [r8], rax
mov r13, r9
mov qword [r9], rax
mov r12, r8
mov r15, rcx
test r14, r14
je 0x14000fb61
mov dword [r14], eax
lea r8, [rsp + 0x40]
mov rcx, rdx
call fcn.140010380
mov ebx, eax
test eax, eax
jne 0x14000fdde
mov rdx, qword [rsp + 0x40]
xor r9d, r9d
movzx r8d, word [rsp + 0x64]
mov rcx, r15
mov qword [rsp + 0x90], rsi
mov rdx, qword [rdx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rsi, rax
test rax, rax
jne 0x14000fbb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14000fdd6
cmp dword [rsp + 0x60], 2
mov eax, 0x100
mov r8, qword [rsp + 0x48]
mov ecx, 0x800100
cmove eax, ecx
mov qword [rsp + 0x88], rdi
mov dword [rsp + 0x30], eax
xor ebx, ebx
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov r8, qword [r8 + 8]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
jne 0x14000fc16
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x14000fdce
mov qword ss:[rsp + 0x98], rbp
call fcn.14000dce0
cmp eax, 0x601
jb 0x14000fc4c
mov r9d, 4
mov dword [rsp + 0x68], 8
lea r8, [rsp + 0x68]
mov rcx, rdi
lea edx, [r9 + 0x3b]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ebp, 6
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14000fcf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x2f00
je 0x14000fd12
cmp eax, 0x2efe
jne 0x14000fcbc
mov r9d, 4
mov dword [rsp + 0x68], 0xa80
lea r8, [rsp + 0x68]
mov rcx, r15
lea edx, [r9 + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x14000fdaf
jmp 0x14000fd12
nop dword [rax]
cmp eax, 0x2f8f
jne 0x14000fdaf
mov r9d, 4
mov dword [rsp + 0x68], 0x300
lea r8, [rsp + 0x68]
mov rcx, rdi
lea edx, [r9 + 0x1b]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x14000fdaf
jmp 0x14000fd12
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14000fd25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
add ebp, 0xffffffff
je 0x14000fdaf
xor ebx, ebx
jmp 0x14000fc51
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14000fdaa
cmp dword ds:[rsp + 0x6c], 0xc8
jne 0x14000fdaa
test r14, r14
je 0x14000fda0
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x6c], 4
mov edx, 0x20000005
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
mov ecx, ebx
cmovne ecx, dword [rsp + 0x68]
mov dword [r14], ecx
mov qword [r12], rsi
mov qword [r13], rdi
jmp 0x14000fdc6
mov ebx, 0x2f78
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rbp, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140010560
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140019f40
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rbx
ret