Function at 0x40b110
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4e2c14
call fcn.004bb144
sub esp, 0x16c
mov eax, dword [0x52d2c4]
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.004d8436
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.0040b05d
test al, al
je 0x40b3a1
mov edi, dword [ebp + 0xc]
push 3
xor ecx, ecx
pop eax
cmp dword [ebp - 0x24], eax
je 0x40b1a4
push 1
pop eax
cmp dword [ebp - 0x24], eax
jne 0x40b3a1
cmp byte [0x531f48], bl
jne 0x40b3a1
mov ecx, 0x8000000
mov edx, dword [ebp - 0x1c]
push ebx
push ecx
push eax
cmp dword [edx - 8], ebx
jne 0x40b1b3
push ebx
push ebx
jmp 0x40b1b7
push dword [ebp - 0x18]
push edx
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [0x531f68]
mov esi, eax
cmp esi, ebx
je 0x40b3a1
xor eax, eax
cmp dword [ebp - 0x24], 3
mov dword [ebp - 0x20], eax
jne 0x40b350
push ebx
push 0xa0000000
push 0x511d28
push ebx
push ebx
push dword [ebp - 0x14]
push str.HEAD
push esi
call dword [0x531f6c]
mov edi, eax
cmp edi, ebx
je 0x40b306
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], 4
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x531f78]
test eax, eax
je 0x40b2ff
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
push 0x20000013
push edi
call dword [0x531f74]
test eax, eax
je 0x40b30d
mov eax, dword [ebp - 0x30]
cmp eax, 0x197
je 0x40b250
cmp eax, 0x191
jne 0x40b266
mov ecx, dword [ebp - 0x2c]
push edi
push dword [ebp + 8]
call fcn.0040afde
test al, al
je 0x40b2ff
jmp 0x40b20f
cmp eax, 0x12e
je 0x40b274
cmp eax, 0x12d
jne 0x40b2df
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 [0x531f74]
lea eax, [ebp - 0x140]
lea ecx, [ebp + 0x10]
push eax
call fcn.004d8551
push edi
call dword [0x531f80]
push esi
xor edi, edi
call dword [0x531f80]
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.0040b05d
test al, al
je 0x40b3a1
jmp 0x40b17d
cmp eax, 0xc8
jne 0x40b2ff
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push edi
call dword [0x531f74]
test eax, eax
jne 0x40b37e
push edi
call dword [0x531f80]
push esi
call dword [0x531f80]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.004d83c8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004d83c8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004d83c8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004d83c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d83c8
or eax, 0xffffffff
jmp 0x40b3e1
cmp dword [ebp - 0x24], 1
jne 0x40b381
push ebx
lea eax, [ebp - 0x178]
push 0x84000000
push eax
push dword [ebp - 0x14]
push esi
call dword [0x531f50]
mov edi, eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x158]
mov dword [ebp - 0x20], eax
jmp 0x40b381
mov eax, dword [ebp - 0x20]
cmp edi, ebx
je 0x40b38f
push edi
call dword [0x531f80]
mov eax, dword [ebp - 0x20]
cmp esi, ebx
je 0x40b39d
push esi
call dword [0x531f80]
mov eax, dword [ebp - 0x20]
mov esi, eax
jmp 0x40b3a4
or esi, 0xffffffff
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.004d83c8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004d83c8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004d83c8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004d83c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d83c8
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc