Function at 0x40d8b0
Capabilities:
Check http status code

Disassembly:
push 0xffffffffffffffff
push 0x4bd0d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
mov eax, dword [0x4f4df4]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x184], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x194]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x188], 3
call fcn.004b2819
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x1a0], 4
call fcn.0040d7c0
test al, al
je 0x40db0b
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 3
jne 0x40d953
jmp 0x40d96d
cmp ecx, 1
jne 0x40db0b
cmp byte [0x4f78e8], bl
jne 0x40db0b
mov eax, 0x8000000
mov edx, dword [esp + 0x20]
push ebx
push eax
push ecx
cmp dword [edx - 8], ebx
jne 0x40d98f
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x19c]
push ebx
push ebx
push edx
push eax
push ecx
jmp 0x40d9a7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x1a0]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
call dword [0x4f7908]
mov edi, eax
cmp edi, ebx
je 0x40db0b
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 3
mov dword [esp + 0x24], eax
jne 0x40db80
mov ecx, dword [esp + 0x10]
push ebx
push 0xa0000000
push 0x4e9d18
push ebx
push ebx
push ecx
push str.HEAD
push edi
call dword [0x4f790c]
mov esi, eax
cmp esi, ebx
je 0x40db04
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], 4
push ebx
push ebx
push ebx
push ebx
push esi
call dword [0x4f7918]
test eax, eax
je 0x40dafd
lea edx, [esp + 0x38]
push ebx
lea eax, [esp + 0x34]
push edx
push eax
push 0x20000013
push esi
call dword [0x4f7914]
test eax, eax
je 0x40db0b
mov eax, dword [esp + 0x30]
cmp eax, 0x197
je 0x40da42
cmp eax, 0x191
jne 0x40da5c
mov ecx, dword [esp + 0x18c]
push esi
push ecx
mov ecx, ebp
call fcn.0040d730
test al, al
je 0x40dafd
jmp 0x40d9fe
cmp eax, 0x12e
je 0x40da6a
cmp eax, 0x12d
jne 0x40dad7
lea edx, [esp + 0x34]
push ebx
lea eax, [esp + 0x40]
push edx
push eax
push 0x21
push esi
mov dword [esp + 0x48], 0x104
call dword [0x4f7914]
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004b2934
push esi
call dword [0x4f7920]
push edi
xor esi, esi
call dword [0x4f7920]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.0040d7c0
test al, al
je 0x40db0b
jmp 0x40d946
cmp eax, 0xc8
jne 0x40dafd
lea eax, [esp + 0x38]
push ebx
lea ecx, [esp + 0x28]
push eax
push ecx
push 0x20000005
push esi
call dword [0x4f7914]
test eax, eax
jne 0x40dbae
push esi
call dword [0x4f7920]
push edi
call dword [0x4f7920]
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 3
call fcn.004b27ab
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 2
call fcn.004b27ab
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], 1
call fcn.004b27ab
lea ecx, [esp + 0x10]
mov byte [esp + 0x184], bl
call fcn.004b27ab
lea ecx, [esp + 0x14]
mov dword [esp + 0x184], 0xffffffff
call fcn.004b27ab
or eax, 0xffffffff
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x178
ret 0xc
cmp ecx, 1
jne 0x40dbb2
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x40]
push 0x84000000
push edx
push eax
push edi
call dword [0x4f78f0]
mov ecx, dword [esp + 0x5c]
mov esi, eax
neg eax
sbb eax, eax
and eax, ecx
mov dword [esp + 0x24], eax
jmp 0x40dbb2
mov eax, dword [esp + 0x24]
cmp esi, ebx
je 0x40dbc1
push esi
call dword [0x4f7920]
mov eax, dword [esp + 0x24]
cmp edi, ebx
je 0x40dbd0
push edi
call dword [0x4f7920]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x184], 3
call fcn.004b27ab
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 2
call fcn.004b27ab
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], 1
call fcn.004b27ab
lea ecx, [esp + 0x10]
mov byte [esp + 0x184], bl
call fcn.004b27ab
lea ecx, [esp + 0x14]
mov dword [esp + 0x184], 0xffffffff
call fcn.004b27ab
mov eax, esi
jmp 0x40db65