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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x190
lea rax, [0x14009337c]
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 [0x14010fb60], 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 0x140021d4a
call fcn.14001ee71
lea rsi, str.InternetCrackUrlA
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010fb60], rax
test rax, rax
je 0x140021e38
cmp qword [0x14010fb58], 0
jne 0x140021d7c
call fcn.14001ee71
lea rsi, str.InternetConnectA
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010fb58], rax
test rax, rax
je 0x140021e38
cmp qword [0x14010fb50], 0
jne 0x140021dae
call fcn.14001ee71
lea rsi, str.InternetCloseHandle
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010fb50], rax
test rax, rax
je 0x140021e38
cmp qword [0x14010fb48], 0
jne 0x140021ddc
call fcn.14001ee71
lea rsi, str.HttpOpenRequestA
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010fb48], rax
test rax, rax
je 0x140021e38
cmp qword [0x14010fb40], 0
jne 0x140021e0a
call fcn.14001ee71
lea rsi, str.HttpSendRequestA
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010fb40], rax
test rax, rax
je 0x140021e38
cmp qword [0x14010fb38], 0
jne 0x140021e5b
call fcn.14001ee71
lea rsi, str.HttpQueryInfoA
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14010fb38], rax
test rax, rax
jne 0x140021e5b
call fcn.140038579
lea r8, str.WinInet
mov rdx, rsi
lea rcx, [0x14009324c]
mov r9, rax
call fcn.1400380b9
jmp 0x14002201b
xor eax, eax
test rbx, rbx
je 0x140022025
mov rax, qword [0x1400b42b0]
xor esi, esi
mov rcx, rbx
mov dword [0x14010fb30], 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 [0x14010fb60]
test eax, eax
je 0x14002201b
cmp qword [rsp + 0xc0], 0
je 0x14002201b
cmp qword [rsp + 0xf0], 0
je 0x14002201b
xor edx, edx
xor ecx, ecx
mov byte [rsp + 0xa7], 0
call fcn.14001ef6d
mov rsi, rax
test rax, rax
je 0x14002201b
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 [0x14010fb58]
mov rdi, rax
test rax, rax
je 0x140022012
cmp dword [rsp + 0xbc], 4
mov edx, 0x488c600
mov eax, 0x408c600
mov rcx, rdi
cmove eax, edx
xor r8d, r8d
lea rdx, [0x140093490]
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 [0x14010fb48]
mov rbx, rax
test rax, rax
je 0x140022009
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 [0x14010fb40]
test eax, eax
je 0x140022000
xor edx, edx
lea r9, [rsp + 0x50]
mov rcx, rbx
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rdx
lea r8, [0x14010fb30]
mov edx, 0x20000013
mov qword [rsp + 0x48], r9
call qword [0x14010fb38]
cmp dword [0x14010fb30], 0xc8
jne 0x140022000
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 [0x14010fb38]
mov rcx, rbx
call qword [0x14010fb50]
mov rcx, rdi
call qword [0x14010fb50]
mov rcx, rsi
call qword [0x14010fb50]
xor eax, eax
cmp dword [rsp + 0x54], 0
setne al
add rsp, 0x190
pop rbx
pop rsi
pop rdi
ret