Function at 0x4042c0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548868
mov eax, dword fs:[0]
push eax
mov eax, 0x1ac0
call fcn.00530950
mov eax, dword [0x5a9ed8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1a8c], eax
push 0xff
xor edi, edi
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x1a84], 4
lea eax, [ebp - 0x20f]
mov dword [ebp - 0x1a88], ebx
push edi
push eax
mov dword [ebp - 0x1a80], ebx
mov byte [ebp - 0x210], bl
call fcn.00530550
push 0x7f
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
push edi
push eax
call fcn.00530550
push 0x7f
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], bl
push edi
push eax
call fcn.00530550
push 0x823
lea eax, [ebp - 0x1257]
mov byte [ebp - 0x1258], bl
push edi
push eax
call fcn.00530550
push 0x823
lea eax, [ebp - 0xa33]
mov byte [ebp - 0xa34], bl
push edi
push eax
call fcn.00530550
push 0x38
lea eax, [ebp - 0x1ac8]
push edi
push eax
call fcn.00530550
lea eax, [ebp - 0x210]
mov dword [ebp - 0x1acc], 0x3c
mov dword [ebp - 0x1abc], eax
lea ecx, [ebp - 0x1acc]
add esp, 0x48
mov dword [ebp - 0x1ab8], 0x100
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1ab0], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x1aa8], eax
lea eax, [ebp - 0x1258]
push ecx
mov dword [ebp - 0x1aa0], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push edi
push edi
push eax
mov dword [ebp - 0x1aac], 0x80
mov dword [ebp - 0x1aa4], 0x80
mov dword [ebp - 0x1a9c], 0x824
call dword [0x5598cc]
test eax, eax
je 0x4045a3
cmp dword [ebp - 0x1ac0], 3
jne 0x4045a3
push edi
push edi
push edi
push edi
push str.down
call dword [0x5598c8]
mov ebx, eax
test ebx, ebx
je 0x4045a3
push edi
push edi
push 3
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x1ab4]
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [0x5598c0]
mov esi, eax
mov dword [ebp - 0x1a88], esi
test esi, esi
je 0x4045a3
cmp dword [ebp - 0x1a9c], edi
je 0x4044a6
mov ecx, dword [ebp - 0x1aa0]
lea edx, [ebp - 0xa34]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x404497
jmp 0x4044b2
mov eax, 0x2f
mov word [ebp - 0xa34], ax
push 0
push 0x80200000
push 0
push 0x559db1
push str.HTTP_1.1
lea eax, [ebp - 0xa34]
push eax
push str.HEAD
push esi
call dword [0x5598b4]
push 0
push 0
push 0
mov edi, eax
mov dword [ebp - 0x1a80], 0
push 0
push edi
mov dword [ebp - 0x1a84], 4
call dword [0x5598b0]
test eax, eax
je 0x4045a3
push 0
lea eax, [ebp - 0x1a84]
mov dword [ebp - 0x1a80], 0
push eax
lea eax, [ebp - 0x1a80]
mov dword [ebp - 0x1a84], 4
push eax
push 0x20000013
push edi
call dword [0x5598ac]
mov esi, eax
test esi, esi
je 0x4045a5
mov eax, dword [ebp - 0x1a80]
cmp eax, 0xc8
je 0x4045a3
cmp eax, 0x12e
jne 0x4045a3
push 0x823
lea eax, [ebp - 0x1a7b]
mov byte [ebp - 0x1a7c], 0
push 0
push eax
call fcn.00530550
add esp, 0xc
mov dword [ebp - 0x1a90], 0x824
lea eax, [ebp - 0x1a90]
push 0
push eax
lea eax, [ebp - 0x1a7c]
push eax
push 0x21
push edi
call dword [0x5598ac]
mov ecx, dword [ebp - 0x1a8c]
lea eax, [ebp - 0x1a7c]
push eax
call fcn.004036c0
jmp 0x4045a5
xor esi, esi
push 0
call dword [0x559424]
mov eax, dword [0x5598c4]
test edi, edi
je 0x4045be
push edi
call eax
mov eax, dword [0x5598c4]
mov ecx, dword [ebp - 0x1a88]
test ecx, ecx
je 0x4045cb
push ecx
call eax
test ebx, ebx
je 0x4045d6
push ebx
call dword [0x5598c4]
cmp dword [ebp + 0x1c], 0x10
jb 0x4045e7
push dword [ebp + 8]
call fcn.0040a18a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052ed73
mov esp, ebp
pop ebp
ret