Function at 0x140051960
Capabilities:
Check http status code

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x278]
sub rsp, 0x378
xor r15d, r15d
mov rdi, rcx
and dword [rbp + 0x2d8], r15d
lea rcx, [rsp + 0x60]
xor edx, edx
xor esi, esi
mov ebx, 0x4600300
lea r14d, [r15 + 0x68]
mov r8d, r14d
call fcn.140054884
mov ecx, 0x104
mov dword [rsp + 0x60], r14d
mov dword [rbp - 0x80], ecx
lea rax, [rbp + 0x160]
mov qword [rsp + 0x78], rax
lea r9, [rsp + 0x60]
mov dword [rbp - 0x50], ecx
lea rax, [rbp + 0x50]
mov qword [rbp - 0x58], rax
lea ecx, [rsi + 0x40]
lea rax, [rbp - 0x30]
mov dword [rbp - 0x70], ecx
mov qword [rbp - 0x78], rax
xor edx, edx
lea rax, [rbp + 0x10]
mov dword [rbp - 0x60], ecx
lea rcx, [rdi + 0x924]
mov qword [rbp - 0x68], rax
mov r8d, 0x10000000
call qword [rdi + 0x148]
xor r14d, r14d
test eax, eax
je 0x140051dda
cmp dword [rsp + 0x74], 4
mov eax, 0x4e03300
mov r12d, r14d
mov dword [rsp + 0x20], r14d
sete r12b
cmove ebx, eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [rdi + 0x150]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140051dda
movzx r8d, word [rbp - 0x7c]
lea rdx, [rbp + 0x160]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov dword [rsp + 0x30], r14d
mov rcx, rax
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r14
call qword [rdi + 0x158]
mov qword [rsp + 0x48], rax
mov r13, rax
test rax, rax
je 0x140051d7f
cmp dword [rbp - 0x50], r14d
jne 0x140051a88
mov word [rbp + 0x50], 0x2f
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0x50]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], r14
call qword [rdi + 0x180]
mov r14, rax
test rax, rax
je 0x140051d73
test r12d, r12d
je 0x140051ae4
bt ebx, 0xc
jae 0x140051ae4
mov r9d, 4
mov dword [rsp + 0x50], 0x3380
lea r8, [rsp + 0x50]
mov rcx, rax
lea edx, [r9 + 0x1b]
call qword [rdi + 0x160]
mov r9d, dword [rbp - 0x70]
xor ebx, ebx
test r9d, r9d
je 0x140051b01
mov r8, qword [rbp - 0x78]
lea edx, [rbx + 0x1c]
mov rcx, r14
call qword [rdi + 0x160]
mov esi, eax
mov r9d, dword [rbp - 0x60]
test r9d, r9d
je 0x140051b1e
mov r8, qword [rbp - 0x68]
mov edx, 0x1d
mov rcx, r14
call qword [rdi + 0x160]
mov esi, eax
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [rdi + 0x188]
test eax, eax
je 0x140051d6a
lea r9, [rbp + 0x2d0]
mov dword [rbp + 0x2d0], 4
lea r8, [rbp + 0x2d8]
mov qword [rsp + 0x20], rbx
mov edx, 0x20000013
mov rcx, r14
call qword [rdi + 0x190]
test eax, eax
je 0x140051d6a
cmp dword [rbp + 0x2d8], 0xc8
jne 0x140051d6a
lea r9, [rbp + 0x2d0]
mov dword [rbp + 0x2d0], 8
lea r8, [rbp + 0x2c0]
mov dword [rbp + 0x2c0], ebx
mov edx, 0x20000005
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [rdi + 0x190]
test eax, eax
jne 0x140051ca5
call qword [rdi + 0xe8]
cmp eax, 0x2f76
jne 0x140051d6a
xor r9d, r9d
mov dword [rbp + 0x2c0], ebx
xor r8d, r8d
lea rdx, [rbp + 0x2c8]
mov rcx, r14
call qword [rdi + 0x178]
test eax, eax
je 0x140051d6a
mov r12d, 1
mov ecx, dword [rbp + 0x2c8]
test ecx, ecx
je 0x140051c93
mov rdx, qword [rdi + 0xd8]
test r15, r15
jne 0x140051c21
mov ebx, ecx
call rdx
mov rcx, rax
mov r8d, ebx
mov edx, r12d
call qword [rdi + 0xc8]
jmp 0x140051c3d
mov ebx, dword [rbp + 0x2c0]
add ebx, ecx
call rdx
mov rcx, rax
mov r9d, ebx
mov r8, r15
mov edx, r12d
call qword [rdi + 0xd0]
xor ebx, ebx
mov r15, rax
test rax, rax
je 0x140051d6a
mov edx, dword [rbp + 0x2c0]
lea r9, [rsp + 0x40]
mov r8d, dword [rbp + 0x2c8]
add rdx, rax
mov rcx, r14
call qword [rdi + 0x168]
mov eax, dword [rbp + 0x2c8]
lea rdx, [rbp + 0x2c8]
add dword [rbp + 0x2c0], eax
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [rdi + 0x178]
test eax, eax
jne 0x140051bf2
lea r13, [rdi + 0xd8]
test r15, r15
je 0x140051d65
jmp 0x140051d01
mov eax, dword [rbp + 0x2c0]
test eax, eax
je 0x140051d6a
lea r13, [rdi + 0xd8]
mov ebx, eax
call qword [r13]
mov r12d, 1
mov r8d, ebx
mov rcx, rax
mov edx, r12d
call qword [rdi + 0xc8]
xor ebx, ebx
mov r15, rax
test rax, rax
je 0x140051d65
mov r8d, dword [rbp + 0x2c0]
lea r9, [rsp + 0x40]
mov rdx, rax
mov dword [rsp + 0x40], ebx
mov rcx, r14
call qword [rdi + 0x168]
mov esi, eax
mov eax, dword [rbp + 0x2c0]
test eax, eax
je 0x140051d65
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [rdi + 0x48]
mov qword [rdi + 0xd60], rax
test rax, rax
je 0x140051d3f
mov r8d, dword [rbp + 0x2c0]
mov rdx, r15
mov rcx, rax
call fcn.140054864
mov esi, r12d
jmp 0x140051d41
mov esi, ebx
mov r8d, dword [rbp + 0x2c0]
xor edx, edx
mov rcx, r15
call fcn.140054884
call qword [r13]
mov r8, r15
mov edx, r12d
mov rcx, rax
call qword [rdi + 0xe0]
mov r13, qword [rsp + 0x48]
mov rcx, r14
call qword [rdi + 0x170]
mov rcx, r13
call qword [rdi + 0x170]
xor r14d, r14d
mov rcx, qword [rsp + 0x58]
call qword [rdi + 0x170]
test esi, esi
je 0x140051dd6
cmp dword [rdi + 0x234], 3
jne 0x140051dd6
mov rbx, qword [rdi + 0xd60]
lea rdx, [rdi + 0xd48]
mov r9d, dword [rdi + 0xd58]
lea rcx, [rdi + 0xd38]
mov r8, rbx
call fcn.140054498
mov rdx, qword [rdi + 0x28]
lea rcx, [rdi + 0xc2c]
call fcn.140054358
cmp rax, qword [rbx + 0x518]
cmovne esi, r14d
mov eax, esi
jmp 0x140051ddc
xor eax, eax
add rsp, 0x378
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret