Function at 0x1400212fe
Capabilities:
Check http status code
Link many functions at runtime

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x190
lea rax, [0x14008e169]
xor edi, edi
mov qword [rsp + 0x58], rax
xor eax, eax
mov rbx, rcx
mov ecx, 0x19
mov dword [rsp + 0x54], edi
lea rdi, [rsp + 0xac]
mov qword [rsp + 0x60], rax
xor eax, eax
cmp qword [0x14010ba40], 0
rep stosd dword [rdi], eax
lea rax, [rsp + 0x68]
mov dword [rsp + 0xa8], 0x68
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x110]
mov dword [rsp + 0xb8], 1
mov dword [rsp + 0xc8], 0x40
mov dword [rsp + 0xd8], 1
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xe8], pe_nt_image_headers64
mov dword [rsp + 0xf8], 1
jne 0x1400213c6
call fcn.14001e121
lea rsi, str.InternetCrackUrlA
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010ba40], rax
test rax, rax
je 0x1400214b4
cmp qword [0x14010ba38], 0
jne 0x1400213f8
call fcn.14001e121
lea rsi, str.InternetConnectA
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010ba38], rax
test rax, rax
je 0x1400214b4
cmp qword [0x14010ba30], 0
jne 0x14002142a
call fcn.14001e121
lea rsi, str.InternetCloseHandle
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010ba30], rax
test rax, rax
je 0x1400214b4
cmp qword [0x14010ba28], 0
jne 0x140021458
call fcn.14001e121
lea rsi, str.HttpOpenRequestA
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010ba28], rax
test rax, rax
je 0x1400214b4
cmp qword [0x14010ba20], 0
jne 0x140021486
call fcn.14001e121
lea rsi, str.HttpSendRequestA
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010ba20], rax
test rax, rax
je 0x1400214b4
cmp qword [0x14010ba18], 0
jne 0x1400214d7
call fcn.14001e121
lea rsi, str.HttpQueryInfoA
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010ba18], rax
test rax, rax
jne 0x1400214d7
call fcn.140036bd7
lea r8, str.WinInet
mov rdx, rsi
lea rcx, [0x14008ce6c]
mov r9, rax
call fcn.140036717
jmp 0x140021697
xor eax, eax
test rbx, rbx
je 0x1400216a1
mov rax, qword [0x1400b1100]
xor esi, esi
mov rcx, rbx
mov dword [0x14010ba10], 0x194
mov dword [rax], esi
call sub.msvcrt.dll_strlen
xor r8d, r8d
lea r9, [rsp + 0xa8]
mov rcx, rbx
mov edx, eax
call qword [0x14010ba40]
test eax, eax
je 0x140021697
cmp qword [rsp + 0xc0], 0
je 0x140021697
cmp qword [rsp + 0xf0], 0
je 0x140021697
xor edx, edx
xor ecx, ecx
mov byte [rsp + 0xa7], 0
call fcn.14001e21d
mov rsi, rax
test rax, rax
je 0x140021697
xor r10d, r10d
xor r11d, r11d
xor ebx, ebx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x38], r10
xor r9d, r9d
mov rcx, rax
movzx r8d, word [rsp + 0xcc]
mov dword [rsp + 0x30], r11d
mov rdx, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rbx
call qword [0x14010ba38]
mov rdi, rax
test rax, rax
je 0x14002168e
cmp dword [rsp + 0xbc], 4
mov edx, 0x488c600
mov eax, 0x408c600
mov rcx, rdi
cmove eax, edx
xor r8d, r8d
lea rdx, [0x14008e27e]
xor r9d, r9d
mov qword [rsp + 0x38], r8
mov r8, qword [rsp + 0xf0]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], r9
xor r9d, r9d
mov qword [rsp + 0x28], rax
call qword [0x14010ba28]
mov rbx, rax
test rax, rax
je 0x140021685
xor ecx, ecx
xor r9d, r9d
lea rdx, str.Accept_Encoding:_gzip__deflate
or r8d, 0xffffffff
mov dword [rsp + 0x20], ecx
mov rcx, rax
call qword [0x14010ba20]
test eax, eax
je 0x14002167c
xor edx, edx
lea r9, [rsp + 0x50]
mov rcx, rbx
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rdx
lea r8, [0x14010ba10]
mov edx, 0x20000013
mov qword [rsp + 0x48], r9
call qword [0x14010ba18]
cmp dword [0x14010ba10], 0xc8
jne 0x14002167c
xor eax, eax
mov r9, qword [rsp + 0x48]
lea r8, [rsp + 0x54]
mov rcx, rbx
mov dword [rsp + 0x50], 4
mov edx, 0x20000005
mov qword [rsp + 0x20], rax
call qword [0x14010ba18]
mov rcx, rbx
call qword [0x14010ba30]
mov rcx, rdi
call qword [0x14010ba30]
mov rcx, rsi
call qword [0x14010ba30]
xor eax, eax
cmp dword [rsp + 0x54], 0
setne al
add rsp, 0x190
pop rbx
pop rsi
pop rdi
ret