Function at 0x40b081
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4dfa78
call fcn.004b8e80
sub esp, 0x16c
mov eax, dword [0x52933c]
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.004d520a
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 4
push dword [ebp + 0x10]
call fcn.0040afce
test al, al
je 0x40b312
mov edi, dword [ebp + 0xc]
push 3
xor ecx, ecx
pop eax
cmp dword [ebp - 0x24], eax
je 0x40b115
push 1
pop eax
cmp dword [ebp - 0x24], eax
jne 0x40b312
cmp byte [0x52bf88], bl
jne 0x40b312
mov ecx, 0x8000000
mov edx, dword [ebp - 0x1c]
push ebx
push ecx
push eax
cmp dword [edx - 8], ebx
jne 0x40b124
push ebx
push ebx
jmp 0x40b128
push dword [ebp - 0x18]
push edx
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [0x52bfa8]
mov esi, eax
cmp esi, ebx
je 0x40b312
xor eax, eax
cmp dword [ebp - 0x24], 3
mov dword [ebp - 0x20], eax
jne 0x40b2c1
push ebx
push 0xa0000000
push 0x50ed28
push ebx
push ebx
push dword [ebp - 0x14]
push str.HEAD
push esi
call dword [0x52bfac]
mov edi, eax
cmp edi, ebx
je 0x40b277
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], 4
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x52bfb8]
test eax, eax
je 0x40b270
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
push 0x20000013
push edi
call dword [0x52bfb4]
test eax, eax
je 0x40b27e
mov eax, dword [ebp - 0x30]
cmp eax, 0x197
je 0x40b1c1
cmp eax, 0x191
jne 0x40b1d7
mov ecx, dword [ebp - 0x2c]
push edi
push dword [ebp + 8]
call fcn.0040af4f
test al, al
je 0x40b270
jmp 0x40b180
cmp eax, 0x12e
je 0x40b1e5
cmp eax, 0x12d
jne 0x40b250
lea eax, [ebp - 0x38]
push ebx
push eax
lea eax, [ebp - 0x140]
push eax
push 0x21
push edi
mov dword [ebp - 0x38], 0x104
call dword [0x52bfb4]
lea eax, [ebp - 0x140]
lea ecx, [ebp + 0x10]
push eax
call fcn.004d5325
push edi
call dword [0x52bfc0]
push esi
xor edi, edi
call dword [0x52bfc0]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
call fcn.0040afce
test al, al
je 0x40b312
jmp 0x40b0ee
cmp eax, 0xc8
jne 0x40b270
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push edi
call dword [0x52bfb4]
test eax, eax
jne 0x40b2ef
push edi
call dword [0x52bfc0]
push esi
call dword [0x52bfc0]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.004d519c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004d519c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004d519c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004d519c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d519c
or eax, 0xffffffff
jmp 0x40b352
cmp dword [ebp - 0x24], 1
jne 0x40b2f2
push ebx
lea eax, [ebp - 0x178]
push 0x84000000
push eax
push dword [ebp - 0x14]
push esi
call dword [0x52bf90]
mov edi, eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x158]
mov dword [ebp - 0x20], eax
jmp 0x40b2f2
mov eax, dword [ebp - 0x20]
cmp edi, ebx
je 0x40b300
push edi
call dword [0x52bfc0]
mov eax, dword [ebp - 0x20]
cmp esi, ebx
je 0x40b30e
push esi
call dword [0x52bfc0]
mov eax, dword [ebp - 0x20]
mov esi, eax
jmp 0x40b315
or esi, 0xffffffff
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.004d519c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004d519c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004d519c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004d519c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d519c
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc