Function at 0x408e60
Capabilities:
Check http status code

Disassembly:
test rdx, rdx
je 0x4090a0
push r15
push r14
push r13
mov r13, rdx
mov edx, 1
push r12
push rbp
push rdi
push rsi
mov rsi, rcx
push rbx
sub rsp, 0x58
mov rdi, qword [0x004113e0]
cmp dword [rcx + 0x2c], 1
sbb ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0
mov rax, qword [rdi]
mov dword [rsp + 0x44], 0
and ebx, 0xff800000
add ebx, 0x800100
mov rcx, qword [rax + 0x598]
mov dword [rsp + 0x20], 0
mov rcx, qword [rcx]
call qword [rax + 0x318]
mov r14, rax
test rax, rax
je 0x4091c3
mov rax, qword [rdi]
mov rcx, r14
mov edx, 0x2710
mov dword [rsp + 0x20], 0x2710
mov r9d, 0x2710
mov r8d, 0x2710
call qword [rax + 0x320]
mov rax, qword [rsi + 8]
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x4091c3
mov r10, qword [rdi]
xor r9d, r9d
movzx r8d, word [rsi + 0x28]
mov rcx, r14
mov rdx, qword [rax]
call qword [r10 + 0x328]
mov r15, rax
test rax, rax
je 0x4091ef
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi]
xor r9d, r9d
mov rax, qword [rdi]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, qword [rcx]
mov rcx, r15
mov rdx, qword [rdx]
call qword [rax + 0x330]
mov rbp, rax
test rax, rax
je 0x4091cd
xor ebx, ebx
cmp qword [rsi + 0x40], 0
mov r12d, 0xffffffff
je 0x408faa
nop
mov rax, qword [rsi + 0x38]
mov r9d, 0x20000000
mov r8d, r12d
mov rcx, rbp
mov rdx, qword [rax + rbx*8]
mov rax, qword [rdi]
add rbx, 1
mov rdx, qword [rdx]
call qword [rax + 0x350]
cmp qword [rsi + 0x40], rbx
ja 0x408f80
mov edx, dword [rsi + 0x2c]
mov rax, qword [rdi]
test edx, edx
jne 0x409070
mov rdx, qword [rsi + 0x18]
xor r8d, r8d
mov ecx, dword [rdx + 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov rcx, rbp
mov r9, qword [rdx]
xor edx, edx
call qword [rax + 0x348]
test eax, eax
je 0x409037
mov rax, qword [rdi]
xor edx, edx
mov rcx, rbp
call qword [rax + 0x358]
test eax, eax
je 0x409037
mov rax, qword [rdi]
lea rdx, [rsp + 0x4c]
xor r8d, r8d
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
mov rcx, rbp
mov edx, 0x20000013
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 4
mov qword [rsp + 0x28], 0
call qword [rax + 0x368]
test eax, eax
jne 0x4090a3
mov rax, qword [rdi]
mov rcx, rbp
call qword [rax + 0x340]
mov rax, qword [rdi]
mov rcx, r15
call qword [rax + 0x340]
mov rax, qword [rdi]
mov rcx, r14
call qword [rax + 0x340]
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x44], 0x3300
mov r9d, 4
lea r8, [rsp + 0x44]
mov rcx, rbp
mov edx, 0x1f
call qword [rax + 0x338]
mov rax, qword [rdi]
jmp 0x408fb8
xor eax, eax
ret
cmp dword [rsp + 0x48], 0xc8
jne 0x409037
mov dword [r13 + 8], 0
mov ecx, 0x1000
call fcn.00407ce0
mov rbx, rax
test rax, rax
je 0x409037
lea rsi, [rsp + 0x40]
jmp 0x409128
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x409144
add ecx, dword [r13 + 8]
call fcn.00407ce0
mov r12, rax
test rax, rax
je 0x409190
mov r8d, dword [r13 + 8]
mov rdx, qword [r13]
mov rcx, rax
call fcn.00407c90
mov ecx, dword [r13 + 8]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
add rcx, r12
call fcn.00407c90
mov rcx, qword [r13]
call fcn.00407d00
mov eax, dword [rsp + 0x40]
add dword [r13 + 8], eax
mov qword [r13], r12
mov rax, qword [rdi]
mov r9, rsi
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rbp
call qword [rax + 0x360]
test eax, eax
jne 0x4090d2
mov rcx, r13
call fcn.00404c50
test eax, eax
je 0x409190
mov rcx, rbx
call fcn.00407d00
mov rax, qword [rdi]
mov rcx, rbp
call qword [rax + 0x340]
mov rax, qword [rdi]
mov rcx, r15
call qword [rax + 0x340]
mov rax, qword [rdi]
mov rcx, r14
call qword [rax + 0x340]
mov eax, 1
jmp 0x40905d
mov rax, qword [rdi]
mov rcx, rbp
call qword [rax + 0x340]
mov rax, qword [rdi]
mov rcx, r15
call qword [rax + 0x340]
mov rax, qword [rdi]
mov rcx, r14
call qword [rax + 0x340]
mov rcx, rbx
call fcn.00407d00
xor eax, eax
jmp 0x40905d
mov eax, 0xffffffff
jmp 0x40905d
mov rax, qword [rdi]
mov rcx, r15
call qword [rax + 0x340]
mov rax, qword [rdi]
mov rcx, r14
call qword [rax + 0x340]
mov eax, 0xfffffffd
jmp 0x40905d
mov rax, qword [rdi]
mov rcx, r14
call qword [rax + 0x340]
mov eax, 0xfffffffe
jmp 0x40905d