Function at 0x4017bf
Capabilities:
Check http status code
Reference http user-agent string

Disassembly:
push ebp
sub esp, 0x470
lea ebp, [esp - 4]
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp + 0x470], eax
push 0x54
mov eax, 0x42e39a
call fcn.0041f9bf
mov eax, dword [ebp + 0x480]
mov esi, dword [ebp + 0x47c]
xor ebx, ebx
push 0x3ff
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x71]
push ebx
push eax
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x70], bl
call fcn.0041dd90
or dword [ebp - 0x3c], 0xffffffff
push 7
pop edi
xor eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x2c], 0x3a98
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], ax
mov dword [ebp - 4], ebx
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x30], ebx
mov word [ebp + 0x20], ax
push esi
mov byte [ebp - 4], 1
call fcn.0041d19b
add esp, 0x10
test eax, eax
jne 0x40188f
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.00402d55
push ebx
push 1
lea esi, [ebp]
call fcn.00402d55
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x470]
xor ecx, ebp
call fcn.0041c82b
add ebp, 0x474
leave
ret
push esi
lea esi, [ebp + 0x54]
call fcn.0040296e
mov byte [ebp - 4], 2
cmp dword [ebp + 0x68], edi
ja 0x4018c7
push ebx
push 1
call fcn.00402d55
mov byte [ebp - 0xd], bl
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.00402d55
push ebx
push 1
lea esi, [ebp]
call fcn.00402d55
mov al, byte [ebp - 0xd]
jmp 0x40186c
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x54]
push eax
lea esi, [ebp + 0x38]
mov dword [ebp - 0x18], 0x50
call fcn.00402a74
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 3
call fcn.00402be0
push ebx
push 1
mov byte [ebp - 4], 2
call fcn.00402d55
xor edi, edi
cmp dword [ebp + 0x68], ebx
jbe 0x401976
lea eax, [ebp + 0x54]
call fcn.00402a20
cmp word [eax], 0x3a
je 0x401923
lea eax, [ebp + 0x54]
call fcn.00402a20
cmp word [eax], 0x2f
je 0x401923
inc edi
cmp edi, dword [ebp + 0x68]
jb 0x4018ff
jmp 0x401976
push edi
push ebx
lea eax, [ebp + 0x54]
push eax
lea esi, [ebp + 0x38]
call fcn.00402a74
push 0xffffffffffffffff
push ebx
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.00402be0
push ebx
push 1
mov byte [ebp - 4], 2
call fcn.00402d55
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x54]
push eax
lea esi, [ebp + 0x38]
call fcn.00402a74
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 5
call fcn.00402be0
push ebx
push 1
mov byte [ebp - 4], 2
call fcn.00402d55
xor edi, edi
lea eax, [ebp + 0x54]
call fcn.00402a20
cmp word [eax], 0x3a
jne 0x401a03
inc edi
cmp dword [ebp + 0x68], edi
jbe 0x401a03
lea eax, [ebp + 0x54]
call fcn.00402a20
cmp word [eax], 0x2f
je 0x4019a2
inc edi
cmp edi, dword [ebp + 0x68]
jb 0x40198c
jmp 0x401a03
push edi
push 1
lea eax, [ebp + 0x54]
push eax
lea esi, [ebp + 0x38]
call fcn.00402a74
mov byte [ebp - 4], 6
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x4019c1
lea eax, [ebp + 0x3c]
push eax
call fcn.0041cf3b
pop ecx
movzx eax, ax
push 0xffffffffffffffff
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp + 0x54]
push eax
lea esi, [ebp - 0x60]
call fcn.00402a74
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 7
call fcn.00402be0
push ebx
push 1
call fcn.00402d55
push ebx
push 1
lea esi, [ebp + 0x38]
mov byte [ebp - 4], 2
call fcn.00402d55
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x54]
lea ecx, [ebp + 0x1c]
call fcn.00402be0
push ebx
push 1
lea esi, [ebp + 0x54]
mov byte [ebp - 4], 1
call fcn.00402d55
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:14.0__Gecko_20100101_Firefox_14.0.1
call dword [0x431480]
mov esi, dword [0x431490]
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x2c]
push eax
push 2
push dword [ebp - 0x1c]
call esi
push 4
lea eax, [ebp - 0x2c]
push eax
push 8
push dword [ebp - 0x1c]
call esi
push 4
lea eax, [ebp - 0x2c]
push eax
push 7
pop edi
push edi
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x401c4d
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x401a76
lea eax, [ebp + 4]
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [0x431498]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x401c2e
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x44], str.text_html_application_xhtmlxml_application_xml_q0.9___q0.8_r_n
mov dword [ebp - 0x40], ebx
jae 0x401aaa
lea eax, [ebp + 0x20]
push ebx
push SysReAllocString
lea ecx, [ebp - 0x44]
push ecx
push ebx
push str.HTTP_1.0
push eax
push 0x4333c0
push dword [ebp - 0x18]
call dword [0x431488]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x401c2e
push ebx
push ebx
mov esi, str._r_n_r_n
push esi
call fcn.0041d19b
pop ecx
push eax
push esi
push dword [ebp - 0x14]
call dword [0x431494]
test eax, eax
je 0x401c2e
mov esi, dword [0x43148c]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x401c2e
cmp dword [ebp - 0x20], 0xc8
je 0x401bb0
cmp dword [ebp - 0x20], 0x12c
jbe 0x401c2e
cmp dword [ebp - 0x20], 0x12f
ja 0x401c2e
xor eax, eax
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x68], ebx
mov word [ebp + 0x58], ax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x21
push dword [ebp - 0x14]
mov byte [ebp - 4], 8
call esi
test eax, eax
je 0x401ba3
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 0x54]
call fcn.00402a4e
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x401b78
lea eax, [ebp + 0x58]
push ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
push 0x21
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x401ba3
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x401b95
lea eax, [ebp + 0x58]
push dword [ebp - 0x38]
push eax
call fcn.004017bf
pop ecx
pop ecx
mov byte [ebp - 0xd], al
push ebx
push 1
lea esi, [ebp + 0x54]
call fcn.00402d55
jmp 0x401c2e
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x401bd0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov esi, dword [0x43149c]
lea eax, [ebp - 0x28]
push eax
mov edi, 0x400
push edi
lea eax, [ebp + 0x70]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x28], ebx
call esi
jmp 0x401c22
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x401c2a
add dword [ebp - 0x30], eax
lea ecx, [ebp + 0x70]
mov ebx, eax
mov eax, dword [ebp - 0x38]
push ecx
call fcn.00401776
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x30], eax
jae 0x401c28
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp + 0x70]
push eax
push dword [ebp - 0x14]
call esi
xor ebx, ebx
test eax, eax
jne 0x401bee
jmp 0x401c2a
xor ebx, ebx
mov byte [ebp - 0xd], 1
push dword [ebp - 0x1c]
mov esi, dword [0x431484]
call esi
cmp dword [ebp - 0x18], ebx
je 0x401c43
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x14], ebx
je 0x401c4d
push dword [ebp - 0x14]
call esi
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x4018ac