Function at 0x40984f
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4a5dc4
call fcn.004817b4
sub esp, 0x16c
mov eax, dword [0x4dbfc4]
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.0049be4c
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.0040979c
test al, al
je 0x409ae0
mov edi, dword [ebp + 0xc]
push 3
xor ecx, ecx
pop eax
cmp dword [ebp - 0x24], eax
je 0x4098e3
push 1
pop eax
cmp dword [ebp - 0x24], eax
jne 0x409ae0
cmp byte [0x4dea88], bl
jne 0x409ae0
mov ecx, 0x8000000
mov edx, dword [ebp - 0x1c]
push ebx
push ecx
push eax
cmp dword [edx - 8], ebx
jne 0x4098f2
push ebx
push ebx
jmp 0x4098f6
push dword [ebp - 0x18]
push edx
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [0x4deaa8]
mov esi, eax
cmp esi, ebx
je 0x409ae0
xor eax, eax
cmp dword [ebp - 0x24], 3
mov dword [ebp - 0x20], eax
jne 0x409a8f
push ebx
push 0xa0000000
push 0x4d0ce0
push ebx
push ebx
push dword [ebp - 0x14]
push str.HEAD
push esi
call dword [0x4deaac]
mov edi, eax
cmp edi, ebx
je 0x409a45
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], 4
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x4deab8]
test eax, eax
je 0x409a3e
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
push 0x20000013
push edi
call dword [0x4deab4]
test eax, eax
je 0x409a4c
mov eax, dword [ebp - 0x30]
cmp eax, 0x197
je 0x40998f
cmp eax, 0x191
jne 0x4099a5
mov ecx, dword [ebp - 0x2c]
push edi
push dword [ebp + 8]
call fcn.0040971d
test al, al
je 0x409a3e
jmp 0x40994e
cmp eax, 0x12e
je 0x4099b3
cmp eax, 0x12d
jne 0x409a1e
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 [0x4deab4]
lea eax, [ebp - 0x140]
lea ecx, [ebp + 0x10]
push eax
call fcn.0049bf67
push edi
call dword [0x4deac0]
push esi
xor edi, edi
call dword [0x4deac0]
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.0040979c
test al, al
je 0x409ae0
jmp 0x4098bc
cmp eax, 0xc8
jne 0x409a3e
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push edi
call dword [0x4deab4]
test eax, eax
jne 0x409abd
push edi
call dword [0x4deac0]
push esi
call dword [0x4deac0]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0049bdde
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0049bdde
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0049bdde
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0049bdde
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049bdde
or eax, 0xffffffff
jmp 0x409b20
cmp dword [ebp - 0x24], 1
jne 0x409ac0
push ebx
lea eax, [ebp - 0x178]
push 0x84000000
push eax
push dword [ebp - 0x14]
push esi
call dword [0x4dea90]
mov edi, eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x158]
mov dword [ebp - 0x20], eax
jmp 0x409ac0
mov eax, dword [ebp - 0x20]
cmp edi, ebx
je 0x409ace
push edi
call dword [0x4deac0]
mov eax, dword [ebp - 0x20]
cmp esi, ebx
je 0x409adc
push esi
call dword [0x4deac0]
mov eax, dword [ebp - 0x20]
mov esi, eax
jmp 0x409ae3
or esi, 0xffffffff
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0049bdde
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0049bdde
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0049bdde
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0049bdde
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049bdde
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc