Function at 0x5bedb3
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov al, byte [esi + 2]
cmp al, 4
jne 0x5bede1
mov cx, word [esi + 0xe]
test cx, cx
je 0x5bedd7
cmp cx, 0x40
jbe 0x5bede1
mov eax, 0x1770
jmp 0x5bf13a
cmp al, 2
je 0x5bede9
cmp al, 3
jne 0x5bee0a
mov ax, word [esi + 0xe]
movzx ecx, word [esi + 0xc]
movzx edx, ax
add ecx, edx
cmp ecx, 0xc8
jg 0x5bee03
test ax, ax
jne 0x5bee0a
push 6
jmp 0x5bf139
and dword [ebp - 8], 0
and dword [ebp - 0x14], 0
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.005c0092
pop ecx
pop ecx
push ebx
push edi
call fcn.005c0714
pop ecx
pop ecx
push ebx
push edi
call fcn.005c082c
pop ecx
test eax, eax
pop ecx
jne 0x5bf13f
push 0x2a
push ebx
push edi
call fcn.005c02a8
add esp, 0xc
test eax, eax
jne 0x5bf144
and dword [ebp - 0xc], eax
movzx ecx, word [ebp - 0xc]
mov cl, byte [ecx + ebp - 0x28]
cmp cl, 0xff
je 0x5bee7c
push ecx
push ebx
push edi
call fcn.005c02a8
add esp, 0xc
test eax, eax
jne 0x5bf149
inc dword [ebp - 0xc]
cmp word [ebp - 0xc], 8
jb 0x5bee52
test eax, eax
jne 0x5bf149
mov al, byte [esi + 2]
cmp al, 4
je 0x5bf14e
cmp al, 2
je 0x5beeaf
cmp al, 5
je 0x5beeaf
cmp al, 0x1e
je 0x5beeaf
cmp al, 0x14
je 0x5beeaf
cmp al, 9
je 0x5beeaf
cmp al, 0xb
je 0x5beeaf
cmp al, 0x2d
je 0x5beeaf
push 6
jmp 0x5beeb1
push 4
push ebx
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2a3
mov al, byte [esi + 0x110]
shr al, 2
and al, 0x3c
push eax
push ebx
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2ab
mov al, byte [esi + 0x110]
and al, 0xf
shl al, 2
push eax
push ebx
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2ab
mov ax, word [esi + 0x110]
shr eax, 0xa
and al, 0x3c
push eax
push ebx
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2ab
mov ax, word [esi + 0x110]
shr eax, 6
and al, 0x3c
push eax
push ebx
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2ab
mov ax, word [esi + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
sar ecx, 2
and cl, 0x3c
push ecx
push ebx
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2b3
mov al, byte [ebp - 8]
add al, byte [esi + 0xc]
shl al, 2
and al, 0x3c
push eax
push ebx
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2b3
push pe_nt_image_headers32
push edi
call fcn.005c0943
mov byte [ebp + 8], al
pop ecx
shr al, 2
pop ecx
and al, 0x3c
push eax
push ebx
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2bb
mov al, byte [ebp + 8]
and al, 0xf
shl al, 2
push eax
push ebx
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2bb
and dword [ebp - 0xc], eax
mov al, byte [esi + 2]
cmp al, 2
je 0x5bf0c4
cmp al, 5
je 0x5bf0c4
cmp al, 0x1e
je 0x5bf0c4
cmp al, 0x14
je 0x5bf0c4
cmp al, 9
je 0x5bf0c4
cmp al, 0xb
je 0x5bf0c4
cmp al, 0x2d
je 0x5bf0c4
mov ax, word [ebp - 8]
cmp ax, word [esi + 0xe]
jae 0x5bf11b
movzx ebx, word [ebp - 8]
mov al, byte [ebx + esi + 0x10]
xor al, byte [ebp + 8]
mov byte [ebp + 8], al
and al, 0xfb
or al, 8
shr al, 2
push eax
push dword [ebp + 0xc]
push edi
call fcn.005c03d5
movzx eax, word [esi + 0xe]
add esp, 0xc
dec eax
cmp ebx, eax
je 0x5bf04a
cmp word [ebp - 0xc], 0x13
je 0x5bf04a
mov al, byte [ebp + 8]
and al, 0xf
shl al, 2
or al, 2
jmp 0x5bf054
mov al, byte [ebp + 8]
and al, 0xf
shl al, 2
or al, 3
push eax
push dword [ebp + 0xc]
push edi
call fcn.005c03d5
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x5bf2c3
mov ax, word [esi + 0xc]
mov ecx, ebx
add ecx, eax
and ecx, 7
cmp cl, 7
je 0x5bf08c
movzx eax, word [esi + 0xe]
dec eax
cmp ebx, eax
je 0x5bf08c
cmp word [ebp - 0xc], 0x13
jne 0x5bf097
push dword [ebp + 0xc]
push edi
call fcn.005c08ca
pop ecx
pop ecx
inc dword [ebp - 0xc]
inc dword [ebp - 8]
cmp word [ebp - 0xc], 0x14
je 0x5bf0b4
mov ax, word [ebp - 8]
cmp ax, word [esi + 0xe]
jb 0x5bf00c
jmp 0x5bf0bf
push dword [ebp + 0xc]
push edi
call fcn.005c07e1
pop ecx
pop ecx
mov ebx, dword [ebp + 0xc]
jmp 0x5bf11b
and dword [ebp - 0x18], 0
mov ax, word [ebp - 8]
cmp ax, word [esi + 0xe]
jae 0x5bf11b
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
call fcn.005c04e4
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x5bf2c8
mov al, byte [ebp + 8]
mov edx, dword [edi + 4]
movzx ecx, word [ebp - 8]
xor al, byte [ebp - 1]
inc dword [ebp - 8]
inc dword [ebp - 0xc]
cmp word [ebp - 0xc], 0x14
mov byte [ecx + edx], al
mov al, byte [ebp - 1]
mov byte [ebp + 8], al
jne 0x5bf0c8
push ebx
push edi
call fcn.005c07e1
pop ecx
pop ecx
mov ax, word [ebp - 8]
cmp ax, word [esi + 0xe]
je 0x5bf2d9
inc dword [ebp - 0x14]
cmp word [ebp - 0x14], 0xf
jb 0x5bee15
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret
add eax, 0xa
jmp 0x5bf13a
add eax, 0x14
jmp 0x5bf13a
add eax, 0x1e
jmp 0x5bf13a
push 1
push ebx
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2a3
and byte [ebp + 8], al
mov eax, dword [edi]
and dword [ebp - 0xc], 0
mov ax, word [eax + 0xe]
test ax, ax
mov dword [ebp - 0x14], eax
jbe 0x5bf21e
movzx esi, word [ebp - 0xc]
mov eax, dword [edi]
mov bl, byte [esi + eax + 0x10]
mov al, bl
shr al, 2
and al, 0x3c
add al, 2
push eax
push dword [ebp + 0xc]
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2e9
push 0x40
push edi
call fcn.005c0943
pop ecx
mov byte [ebp - 0x10], al
test al, 2
pop ecx
je 0x5bf1c1
mov eax, dword [ebp + 0xc]
inc eax
push eax
call fcn.005c0923
pop ecx
jmp 0x5bf1e4
test al, 1
je 0x5bf1cd
shr al, 2
and al, 0xf
add byte [ebp + 8], al
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2e9
movzx ecx, word [ebp - 0x14]
lea eax, [esi + 1]
cdq
idiv ecx
shl bl, 2
add al, bl
add al, 2
push eax
push dword [ebp + 0xc]
push edi
call fcn.005c03d5
add esp, 0xc
test eax, eax
jne 0x5bf2e9
inc dword [ebp - 0xc]
mov ax, word [ebp - 0xc]
cmp ax, word [ebp - 0x14]
jb 0x5bf17b
mov ebx, dword [ebp + 0xc]
and byte [ebp + 8], 0xf
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
call fcn.005c067e
add esp, 0x10
test eax, eax
je 0x5bf244
add eax, 0x5a
jmp 0x5bf13a
push ebx
push edi
call fcn.005c07e1
mov eax, dword [ebp - 0x1e]
pop ecx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
pop ecx
movzx ax, byte [ebp + 8]
test ax, ax
jbe 0x5bf28f
movzx esi, ax
mov edx, 0x8000
mov al, byte [ebp + 0xc]
mov cl, byte [ebp - 0xc]
shr word [ebp + 0xc], 1
shr word [ebp - 0xc], 1
and al, 1
and cl, 1
test al, al
je 0x5bf285
or dword [ebp - 0xc], edx
test cl, cl
je 0x5bf28c
or dword [ebp + 0xc], edx
dec esi
jne 0x5bf26b
movzx eax, word [ebp + 0xc]
movzx ecx, word [ebp - 0xc]
shl eax, 0x10
or eax, ecx
mov ecx, dword [edi + 4]
mov dword [ecx], eax
jmp 0x5bf2e2
add eax, 0x28
jmp 0x5bf13a
add eax, 0x32
jmp 0x5bf13a
add eax, 0x3c
jmp 0x5bf13a
add eax, 0x46
jmp 0x5bf13a
push dword [ebp + 0xc]
jmp 0x5bf2c9
push ebx
push edi
call fcn.005c07e1
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
jmp 0x5bf13a
push ebx
push edi
call fcn.005c07e1
pop ecx
pop ecx
xor eax, eax
jmp 0x5bf13a
add eax, 0x50
jmp 0x5bf13a