Function at 0x516b60
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x1a9ec4], 0
je 0x516e86
cmp word [ebx + 0x27260], 0
jl 0x516e86
cmp word [ebx + 0x27262], 0
jl 0x516e86
mov ecx, dword [0x9c25b4]
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [ebx + 0x276cc]
mov dword [ebp - 0x3c], eax
test edx, edx
je 0x516bc4
mov ecx, eax
sub ecx, edx
cmp ecx, 0xc8
jb 0x516e86
mov ecx, dword [ebx + 0x1a9bc0]
test ecx, ecx
je 0x516e86
movsx eax, word [ebx + 0x27262]
push esi
push eax
movsx eax, word [ebx + 0x27260]
push eax
call fcn.004de3e0
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x516e85
mov ecx, dword [esi + 0x1e4]
mov eax, dword [ebx + 0x4c]
push edi
mov dword [ebp - 0x48], eax
push dword [ecx + 0x1e4]
call fcn.004dac60
movsx edi, ax
mov dword [ebp - 0x44], edi
cmp edi, 0xffffffff
jne 0x516c2a
mov eax, dword [esi + 0x1d4]
lea edi, [eax + eax*4]
add edi, dword [esi + 0x1d0]
mov dword [ebp - 0x44], edi
mov ecx, dword [esi + 0x670]
mov dl, 0x26
call fcn.0049aed0
mov ecx, eax
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 6], ax
xorps xmm0, xmm0
mov eax, dword [0x9c25ac]
cmp ecx, 0xf
movlpd qword [ebp - 0x24], xmm0
mov edx, 0xe
movlpd qword [ebp - 0x16], xmm0
movlpd qword [ebp - 0xe], xmm0
mov ax, word [eax + 0xf98]
mov word [ebp - 0x32], ax
lea esi, [edx - 0xc]
mov eax, 0x3c9
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x48]
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x20]
cmove eax, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], eax
lea edi, [ebx + 0x1a9ecc]
xor eax, eax
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x18], ax
cvttss2si eax, dword [ecx + 0x28]
mov word [ebp - 0x1c], ax
cvttss2si eax, dword [ecx + 0x2c]
mov word [ebp - 0x1a], ax
nop word [eax + eax]
mov eax, dword [edi - 4]
cmp dword [eax + 0x1e8], 0
je 0x516ce4
lea edx, [esi - 2]
shr edx, 3
lea eax, [esi - 2]
and eax, 7
movsx ecx, byte [ebp + edx - 0x16]
bts ecx, eax
mov byte [ebp + edx - 0x16], cl
mov eax, dword [edi]
cmp dword [eax + 0x1e8], 0
je 0x516d07
lea edx, [esi - 1]
shr edx, 3
lea eax, [esi - 1]
and eax, 7
movsx ecx, byte [ebp + edx - 0x16]
bts ecx, eax
mov byte [ebp + edx - 0x16], cl
mov eax, dword [edi + 4]
cmp dword [eax + 0x1e8], 0
je 0x516d29
mov edx, esi
mov eax, esi
shr edx, 3
and eax, 7
movsx ecx, byte [ebp + edx - 0x16]
bts ecx, eax
mov byte [ebp + edx - 0x16], cl
mov eax, dword [edi + 8]
cmp dword [eax + 0x1e8], 0
je 0x516d4c
lea edx, [esi + 1]
mov ecx, edx
and edx, 7
shr ecx, 3
movsx eax, byte [ebp + ecx - 0x16]
bts eax, edx
mov byte [ebp + ecx - 0x16], al
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x1e8], 0
je 0x516d6f
lea edx, [esi + 2]
mov ecx, edx
and edx, 7
shr ecx, 3
movsx eax, byte [ebp + ecx - 0x16]
bts eax, edx
mov byte [ebp + ecx - 0x16], al
add esi, 5
add edi, 0x14
lea eax, [esi - 2]
cmp eax, 0x64
jl 0x516cc0
mov edx, 0x34
lea ecx, [ebp - 0x38]
call fcn.0054f850
mov edi, dword [ebp - 0x40]
or eax, 0xffffffff
mov word [ebx + 0x27260], ax
mov word [ebx + 0x27262], ax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x276cc], eax
mov ecx, dword [edi + 0x670]
call fcn.00499c90
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, 1
jle 0x516dff
mov ecx, dword [edi + 0x670]
dec esi
mov edx, esi
call fcn.004987c0
push esi
add edi, 0x39c
push 0x5ff46c
push edi
call fcn.00445aa0
mov ecx, dword [ebp - 0x40]
add esp, 0xc
push 0
push dword [ecx + 0x384]
mov ecx, dword [ecx + 0x4a0]
push edi
call fcn.0054c310
mov esi, dword [ebp - 0x3c]
jmp 0x516e3f
push dword [edi + 0x1d4]
mov ecx, dword [ebx + 0x1a9bc0]
push dword [edi + 0x1d0]
call fcn.004de510
mov ecx, eax
mov eax, dword [0x9c25d0]
mov edx, dword [eax + 0x1e8]
test edx, edx
je 0x516e35
cmp edx, ecx
jne 0x516e35
mov dword [eax + 0x1e8], 0
test ecx, ecx
je 0x516e3f
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp - 0x4c]
mov ecx, 2
pop edi
lea eax, [edx - 0xb]
cmp ecx, eax
sbb ecx, ecx
and ecx, 0xfffffff3
add ecx, 0x36
cmp edx, 0x13
je 0x516e63
push ecx
call fcn.005bc750
add esp, 4
push 0
mov ecx, ebx
call fcn.00547270
cmp esi, 1
jg 0x516e85
mov eax, dword [0x9c25ac]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x44]
movq qword [eax + ecx*8 + 0x9ec], xmm0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046676f
mov esp, ebp
pop ebp
ret