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

Disassembly:
push 0x5fc
mov eax, 0x42f3da
call fcn.0041fa28
push 0x4331e8
lea esi, [ebp - 0x58c]
mov edi, ecx
call fcn.0040296e
sub esp, 0x1c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x4b8], esp
push 0x4331ea
call fcn.004028fb
lea esi, [ebp - 0x54c]
call fcn.0040133a
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x4b8], esp
push edi
call fcn.004028fb
lea esi, [ebp - 0x52c]
call fcn.0040133a
mov byte [ebp - 4], 2
mov eax, esp
mov dword [ebp - 0x4b8], esp
push eax
call fcn.004010d5
pop ecx
lea edi, [ebp - 0x5ec]
call fcn.0040108b
add esp, 0x1c
push 0x43f600
lea esi, [ebp - 0x56c]
mov byte [ebp - 4], 3
call fcn.0040298e
push 0x43f61c
lea esi, [ebp - 0x5ac]
mov byte [ebp - 4], 4
call fcn.0040298e
push 0x4334d8
lea esi, [ebp - 0x5cc]
mov byte [ebp - 4], 5
call fcn.0040296e
lea ecx, [ebp - 0x50c]
mov byte [ebp - 4], 6
call fcn.0041a4dc
push 7
pop edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x48c], edi
mov dword [ebp - 0x490], ebx
mov word [ebp - 0x4a0], ax
push 0x4334d4
lea eax, [ebp - 0x450]
push 0x44083c
push eax
mov byte [ebp - 4], 0xf
call fcn.0040342a
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x4a4]
mov byte [ebp - 4], 0x10
call fcn.00402be0
mov byte [ebp - 4], 0xf
push ebx
push 1
lea esi, [ebp - 0x450]
call fcn.00402d55
sub esp, 0x1c
lea eax, [ebp - 0x58c]
mov esi, esp
mov dword [ebp - 0x4b8], esp
push eax
call fcn.0040298e
sub esp, 0x1c
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x54c]
mov esi, esp
mov dword [ebp - 0x4cc], esp
push eax
call fcn.0040298e
sub esp, 0x1c
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x52c]
mov esi, esp
mov dword [ebp - 0x4b0], esp
push eax
call fcn.0040298e
sub esp, 0x1c
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x5ec]
mov esi, esp
mov dword [ebp - 0x4c8], esp
push eax
call fcn.0040298e
sub esp, 0x1c
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x56c]
mov esi, esp
mov dword [ebp - 0x4c4], esp
push eax
call fcn.0040298e
sub esp, 0x1c
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x5ac]
mov esi, esp
mov dword [ebp - 0x4c0], esp
push eax
call fcn.0040298e
sub esp, 0x1c
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x5cc]
mov esi, esp
mov dword [ebp - 0x4bc], esp
push eax
call fcn.0040298e
sub esp, 0x1c
lea eax, [ebp - 0x50c]
mov esi, esp
mov dword [ebp - 0x4ac], esp
push eax
mov byte [ebp - 4], 0x17
call fcn.0040298e
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xf
call fcn.00401c58
add esp, 0xe0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x4a4]
mov byte [ebp - 4], 0x18
call fcn.00402f35
push ebx
push 1
lea esi, [ebp - 0x450]
call fcn.00402d55
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x4dc], ebx
mov dword [ebp - 0x4d8], ebx
mov dword [ebp - 0x4d4], ebx
mov dword [ebp - 0x4d0], 0x400
cmp dword [ebp - 0x48c], 8
mov esi, dword [ebp - 0x4a0]
jae 0x4022b1
lea esi, [ebp - 0x4a0]
push 0x3ff
lea eax, [ebp - 0x413]
push ebx
push eax
mov dword [ebp - 0x4a8], ebx
mov byte [ebp - 0x414], bl
call fcn.0041dd90
or dword [ebp - 0x4b8], 0xffffffff
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x4b4], ebx
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], ebx
mov dword [ebp - 0x4bc], 4
mov dword [ebp - 0x4c4], 0x3a98
mov dword [ebp - 0x470], edi
mov dword [ebp - 0x474], ebx
mov word [ebp - 0x484], ax
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x458], ebx
mov word [ebp - 0x468], ax
push esi
mov byte [ebp - 4], 0x1b
call fcn.0041d19b
pop ecx
test eax, eax
jne 0x402358
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x46c]
call fcn.00402d55
push ebx
push edi
lea esi, [ebp - 0x488]
call fcn.00402d55
jmp 0x402865
push esi
lea esi, [ebp - 0x434]
call fcn.0040296e
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0x420], edi
ja 0x40237d
push ebx
push 1
call fcn.00402d55
jmp 0x402846
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x434]
push eax
lea esi, [ebp - 0x450]
mov dword [ebp - 0x4b0], 0x50
call fcn.00402a74
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 0x1d
call fcn.00402be0
push ebx
push 1
mov byte [ebp - 4], 0x1c
call fcn.00402d55
xor edi, edi
cmp dword [ebp - 0x420], ebx
jbe 0x40245a
lea eax, [ebp - 0x434]
call fcn.00402a20
cmp word [eax], 0x3a
je 0x4023f5
lea eax, [ebp - 0x434]
call fcn.00402a20
cmp word [eax], 0x2f
je 0x4023f5
inc edi
cmp edi, dword [ebp - 0x420]
jb 0x4023c8
jmp 0x40245a
push edi
push ebx
lea eax, [ebp - 0x434]
push eax
lea esi, [ebp - 0x450]
call fcn.00402a74
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 0x1e
call fcn.00402be0
push ebx
push 1
mov byte [ebp - 4], 0x1c
call fcn.00402d55
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x434]
push eax
lea esi, [ebp - 0x450]
call fcn.00402a74
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 0x1f
call fcn.00402be0
push ebx
push 1
mov byte [ebp - 4], 0x1c
call fcn.00402d55
xor edi, edi
lea eax, [ebp - 0x434]
call fcn.00402a20
cmp word [eax], 0x3a
jne 0x402519
inc edi
cmp dword [ebp - 0x420], edi
jbe 0x402519
lea eax, [ebp - 0x434]
call fcn.00402a20
cmp word [eax], 0x2f
je 0x40249a
inc edi
cmp edi, dword [ebp - 0x420]
jb 0x40247e
jmp 0x402519
push edi
push 1
lea eax, [ebp - 0x434]
push eax
lea esi, [ebp - 0x450]
call fcn.00402a74
mov byte [ebp - 4], 0x20
cmp dword [ebp - 0x438], 8
mov eax, dword [ebp - 0x44c]
jae 0x4024c8
lea eax, [ebp - 0x44c]
push eax
call fcn.0041cf3b
pop ecx
movzx eax, ax
push 0xffffffffffffffff
mov dword [ebp - 0x4b0], eax
push edi
lea eax, [ebp - 0x434]
push eax
lea esi, [ebp - 0x608]
call fcn.00402a74
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 0x21
call fcn.00402be0
push ebx
push 1
call fcn.00402d55
push ebx
push 1
lea esi, [ebp - 0x450]
mov byte [ebp - 4], 0x1c
call fcn.00402d55
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x434]
lea ecx, [ebp - 0x46c]
call fcn.00402be0
push ebx
push 1
lea esi, [ebp - 0x434]
mov byte [ebp - 4], 0x1b
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 - 0x4ac], eax
push 4
lea eax, [ebp - 0x4c4]
push eax
push 2
push dword [ebp - 0x4ac]
call esi
push 4
lea eax, [ebp - 0x4c4]
push eax
push 8
push dword [ebp - 0x4ac]
call esi
push 4
lea eax, [ebp - 0x4c4]
push eax
push 7
pop edi
push edi
push dword [ebp - 0x4ac]
call esi
cmp dword [ebp - 0x4ac], ebx
je 0x402846
cmp dword [ebp - 0x470], 8
mov eax, dword [ebp - 0x484]
jae 0x4025b6
lea eax, [ebp - 0x484]
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x4b0]
push eax
push dword [ebp - 0x4ac]
call dword [0x431498]
mov dword [ebp - 0x4b0], eax
cmp eax, ebx
je 0x402818
cmp dword [ebp - 0x454], 8
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x4e8], str.text_html_application_xhtmlxml_application_xml_q0.9___q0.8_r_n
mov dword [ebp - 0x4e4], ebx
jae 0x402602
lea eax, [ebp - 0x468]
push ebx
push SysReAllocString
lea ecx, [ebp - 0x4e8]
push ecx
push ebx
push str.HTTP_1.0
push eax
push 0x4333c0
push dword [ebp - 0x4b0]
call dword [0x431488]
mov dword [ebp - 0x4a8], eax
cmp eax, ebx
je 0x402818
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 - 0x4a8]
call dword [0x431494]
test eax, eax
je 0x402818
mov esi, dword [0x43148c]
lea eax, [ebp - 0x4cc]
push eax
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x4b4]
push eax
push 0x20000013
push dword [ebp - 0x4a8]
call esi
test eax, eax
je 0x402818
cmp dword [ebp - 0x4b4], 0xc8
je 0x40275d
cmp dword [ebp - 0x4b4], 0x12c
jbe 0x402818
cmp dword [ebp - 0x4b4], 0x12f
ja 0x402818
xor eax, eax
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], ebx
mov word [ebp - 0x430], ax
push ebx
lea eax, [ebp - 0x4bc]
push eax
push ebx
push 0x21
push dword [ebp - 0x4a8]
mov byte [ebp - 4], 0x22
call esi
test eax, eax
je 0x40274a
mov ecx, dword [ebp - 0x4bc]
lea eax, [ebp - 0x434]
call fcn.00402a4e
cmp dword [ebp - 0x41c], 8
mov eax, dword [ebp - 0x430]
jae 0x40270f
lea eax, [ebp - 0x430]
push ebx
lea ecx, [ebp - 0x4bc]
push ecx
push eax
push 0x21
push dword [ebp - 0x4a8]
call esi
test eax, eax
je 0x40274a
cmp dword [ebp - 0x41c], 8
mov eax, dword [ebp - 0x430]
jae 0x40273b
lea eax, [ebp - 0x430]
lea ecx, [ebp - 0x4e0]
push ecx
push eax
call fcn.004017bf
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x434]
call fcn.00402d55
jmp 0x402818
lea eax, [ebp - 0x4cc]
push eax
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x4b4]
push eax
push 0x20000005
push dword [ebp - 0x4a8]
call esi
test eax, eax
je 0x40278f
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x4b8], eax
mov esi, dword [0x43149c]
lea eax, [ebp - 0x4c0]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x4a8]
mov dword [ebp - 0x4c0], ebx
call esi
test eax, eax
je 0x402818
jmp 0x4027be
xor ebx, ebx
mov eax, dword [ebp - 0x4c0]
cmp eax, ebx
je 0x402818
add dword [ebp - 0x4c8], eax
lea ecx, [ebp - 0x414]
mov ebx, eax
push ecx
lea eax, [ebp - 0x4e0]
call fcn.00401776
mov eax, dword [ebp - 0x4b8]
cmp dword [ebp - 0x4c8], eax
jae 0x402816
and dword [ebp - 0x4c0], 0
lea eax, [ebp - 0x4c0]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x4a8]
call esi
test eax, eax
jne 0x4027bc
xor ebx, ebx
push dword [ebp - 0x4ac]
mov esi, dword [0x431484]
call esi
cmp dword [ebp - 0x4b0], ebx
je 0x402836
push dword [ebp - 0x4b0]
call esi
cmp dword [ebp - 0x4a8], ebx
je 0x402846
push dword [ebp - 0x4a8]
call esi
push ebx
push 1
lea esi, [ebp - 0x46c]
call fcn.00402d55
push ebx
push 1
lea esi, [ebp - 0x488]
call fcn.00402d55
xor edi, edi
inc edi
xor eax, eax
lea esi, [ebp - 0x4e0]
call fcn.0040172c
push ebx
push edi
lea esi, [ebp - 0x4a4]
mov dword [ebp - 0x4dc], ebx
mov dword [ebp - 0x4d8], ebx
call fcn.00402d55
push ebx
push edi
lea esi, [ebp - 0x50c]
call fcn.00402d55
push ebx
push edi
lea esi, [ebp - 0x5cc]
call fcn.00402d55
push ebx
push edi
lea esi, [ebp - 0x5ac]
call fcn.00402d55
push ebx
push edi
lea esi, [ebp - 0x56c]
call fcn.00402d55
push ebx
push edi
lea esi, [ebp - 0x5ec]
call fcn.00402d55
push ebx
push edi
lea esi, [ebp - 0x52c]
call fcn.00402d55
push ebx
push edi
lea esi, [ebp - 0x54c]
call fcn.00402d55
push ebx
push edi
lea esi, [ebp - 0x58c]
call fcn.00402d55
mov al, 1
call fcn.0041faab
ret