Function at 0x40b06a
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4d9c88
call fcn.004b36d0
sub esp, 0x16c
mov eax, dword [0x52041c]
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.004cf4db
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.0040afb7
test al, al
je 0x40b2fb
mov edi, dword [ebp + 0xc]
push 3
xor ecx, ecx
pop eax
cmp dword [ebp - 0x24], eax
je 0x40b0fe
push 1
pop eax
cmp dword [ebp - 0x24], eax
jne 0x40b2fb
cmp byte [0x523048], bl
jne 0x40b2fb
mov ecx, 0x8000000
mov edx, dword [ebp - 0x1c]
push ebx
push ecx
push eax
cmp dword [edx - 8], ebx
jne 0x40b10d
push ebx
push ebx
jmp 0x40b111
push dword [ebp - 0x18]
push edx
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [0x523068]
mov esi, eax
cmp esi, ebx
je 0x40b2fb
xor eax, eax
cmp dword [ebp - 0x24], 3
mov dword [ebp - 0x20], eax
jne 0x40b2aa
push ebx
push 0xa0000000
push 0x506d28
push ebx
push ebx
push dword [ebp - 0x14]
push str.HEAD
push esi
call dword [0x52306c]
mov edi, eax
cmp edi, ebx
je 0x40b260
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], 4
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x523078]
test eax, eax
je 0x40b259
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
push 0x20000013
push edi
call dword [0x523074]
test eax, eax
je 0x40b267
mov eax, dword [ebp - 0x30]
cmp eax, 0x197
je 0x40b1aa
cmp eax, 0x191
jne 0x40b1c0
mov ecx, dword [ebp - 0x2c]
push edi
push dword [ebp + 8]
call fcn.0040af38
test al, al
je 0x40b259
jmp 0x40b169
cmp eax, 0x12e
je 0x40b1ce
cmp eax, 0x12d
jne 0x40b239
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 [0x523074]
lea eax, [ebp - 0x140]
lea ecx, [ebp + 0x10]
push eax
call fcn.004cf5f6
push edi
call dword [0x523080]
push esi
xor edi, edi
call dword [0x523080]
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.0040afb7
test al, al
je 0x40b2fb
jmp 0x40b0d7
cmp eax, 0xc8
jne 0x40b259
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push edi
call dword [0x523074]
test eax, eax
jne 0x40b2d8
push edi
call dword [0x523080]
push esi
call dword [0x523080]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.004cf46d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004cf46d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004cf46d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004cf46d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cf46d
or eax, 0xffffffff
jmp 0x40b33b
cmp dword [ebp - 0x24], 1
jne 0x40b2db
push ebx
lea eax, [ebp - 0x178]
push 0x84000000
push eax
push dword [ebp - 0x14]
push esi
call dword [0x523050]
mov edi, eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x158]
mov dword [ebp - 0x20], eax
jmp 0x40b2db
mov eax, dword [ebp - 0x20]
cmp edi, ebx
je 0x40b2e9
push edi
call dword [0x523080]
mov eax, dword [ebp - 0x20]
cmp esi, ebx
je 0x40b2f7
push esi
call dword [0x523080]
mov eax, dword [ebp - 0x20]
mov esi, eax
jmp 0x40b2fe
or esi, 0xffffffff
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.004cf46d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004cf46d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004cf46d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004cf46d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cf46d
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc