Function at 0x4061ef
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x52d8
call fcn.00407a90
mov dword [ebp - 0x3124], 0
mov dword [ebp - 0x3128], 0
lea ecx, [ebp - 0x3288]
mov edx, str.GET__s_HTTP_1.1_r_nHost:__s_r_nConnection:_Keep_Alive_r_nUser_Agent:_Mozilla_5.0__Windows__U__Windows_NT_5.1__ar__rv:1.9.0.5__Gecko_2008120122_Firefox_3.0.5_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8_r_nAccept_Language:_en_en_us_q0.7_en_q0.3_r_nAccept_Encoding:_gzip_deflate_r_nAccept_Charset:_ISO_8859_1_utf_8_q0.7__q0.7_r_n_r_n
mov eax, 0x15d
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call sub.ntdll.dll_memcpy
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40b19d
mov dword [esp], 0
call fcn.004045f0
mov dword [ebp - 0x3124], eax
cmp dword [ebp - 0x3124], 0
js 0x40626b
mov eax, dword [ebp - 0x3124]
add eax, 3
mov dword [ebp - 0x328c], eax
jmp 0x406275
mov dword [ebp - 0x328c], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40b1a1
mov eax, dword [ebp - 0x328c]
mov dword [esp], eax
call fcn.004045f0
mov dword [ebp - 0x3124], eax
mov eax, dword [ebp - 0x3124]
test eax, eax
js 0x406309
mov edx, dword [ebp - 0x328c]
mov eax, dword [ebp - 0x3124]
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x328c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2118]
mov dword [esp], eax
call fcn.00404536
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ntdll.dll_strlen
sub eax, dword [ebp - 0x3124]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3124]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x3118]
mov dword [esp], eax
call fcn.00404536
jmp 0x406371
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ntdll.dll_strlen
sub eax, dword [ebp - 0x328c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x328c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2118]
mov dword [esp], eax
call fcn.00404536
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ntdll.dll_strlen
sub eax, dword [ebp - 0x328c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3124]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x3118]
mov dword [esp], eax
call fcn.00404536
lea eax, [ebp - 0x2118]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40b1a3
mov dword [esp], 0
call fcn.004045f0
mov dword [ebp - 0x3124], eax
cmp dword [ebp - 0x3124], 0
js 0x4063eb
lea eax, [ebp - 0x2118]
mov dword [esp], eax
call sub.ntdll.dll_strlen
sub eax, dword [ebp - 0x3124]
dec eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3124]
inc eax
mov dword [esp + 8], eax
lea eax, [ebp - 0x2118]
mov dword [esp + 4], eax
lea eax, [ebp - 0x3120]
mov dword [esp], eax
call fcn.00404536
lea eax, [ebp - 8]
add eax, dword [ebp - 0x3124]
sub eax, 0x2110
mov byte [eax], 0
lea eax, [ebp - 0x3120]
mov dword [esp], eax
call sub.ntdll.dll_atol
test eax, eax
jg 0x406413
mov dword [esp + 4], 0x40b1a5
lea eax, [ebp - 0x3120]
mov dword [esp], eax
call sub.ntdll.dll_strcpy
cmp byte [ebp - 0x2118], 0
jne 0x40642b
mov dword [ebp - 0x52ac], 0
jmp 0x406775
lea eax, [ebp - 0x3120]
mov dword [esp + 8], eax
lea eax, [ebp - 0x2118]
mov dword [esp + 4], eax
lea eax, [ebp - 0xc]
mov dword [esp], eax
call fcn.00404be7
test eax, eax
jne 0x40645d
mov dword [ebp - 0x52ac], 0
jmp 0x406775
lea eax, [ebp - 0x2118]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x3288]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2018]
mov dword [esp], eax
call sub.ntdll.dll_sprintf
lea eax, [ebp - 0x2018]
mov dword [esp], eax
call sub.ntdll.dll_strlen
mov dword [esp + 8], eax
lea eax, [ebp - 0x2018]
mov dword [esp + 4], eax
lea eax, [ebp - 0xc]
mov dword [esp], eax
call fcn.004051fb
mov dword [ebp - 0x328c], 0
mov dword [ebp - 0x3290], 0
cmp dword [ebp - 0x3128], 7
jg 0x4065f1
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 0
lea eax, [ebp - 0x5298]
mov dword [esp], eax
call sub.ntdll.dll_memset
mov dword [esp + 0x10], 0x309
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x2000
lea eax, [ebp - 0x5298]
mov dword [esp + 4], eax
lea eax, [ebp - 0xc]
mov dword [esp], eax
call fcn.00405194
mov dword [ebp - 0x3124], eax
cmp dword [ebp - 0x3124], 0
jne 0x40652a
jmp 0x4064c1
cmp dword [ebp - 0x3124], 0
jle 0x4065e4
mov dword [ebp - 0x3128], 0
mov eax, dword [ebp - 0x3124]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x328c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x5298]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2018]
mov dword [esp], eax
call fcn.00405229
mov edx, dword [ebp - 0x3124]
lea eax, [ebp - 0x328c]
add dword [eax], edx
lea eax, [ebp - 0x2018]
mov dword [esp + 8], eax
mov dword [esp + 4], str._r_n_r_n
mov dword [esp], 0
call fcn.004045f0
mov dword [ebp - 0x3290], eax
cmp dword [ebp - 0x3290], 0
js 0x4065bb
lea eax, [ebp - 0x3290]
add dword [eax], 4
jmp 0x4065f1
cmp dword [ebp - 0x328c], 0x2000
jle 0x4064c1
mov dword [ebp - 0x3290], 0
mov dword [ebp - 0x52ac], 0
jmp 0x406775
lea eax, [ebp - 0x3128]
inc dword [eax]
jmp 0x4064c1
cmp dword [ebp - 0x3128], 7
jle 0x406609
mov dword [ebp - 0x52ac], 0
jmp 0x406775
movzx eax, byte [ebp - 0x200f]
mov byte [ebp - 0x52a8], al
movzx eax, byte [ebp - 0x200e]
mov byte [ebp - 0x52a7], al
movzx eax, byte [ebp - 0x200d]
mov byte [ebp - 0x52a6], al
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40b1ad
lea eax, [ebp - 0x52a8]
mov dword [esp], eax
call fcn.0040477f
test eax, eax
je 0x406760
mov edx, dword [ebp - 0x3290]
mov eax, dword [ebp - 0x328c]
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3290]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40b1b1
lea eax, [ebp - 0x2018]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00403230
mov dword [ebp - 0x328c], 0
cmp dword [ebp - 0x3128], 7
jg 0x40674b
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 0
lea eax, [ebp - 0x2018]
mov dword [esp], eax
call sub.ntdll.dll_memset
mov dword [esp + 0x10], 0x309
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x2000
lea eax, [ebp - 0x2018]
mov dword [esp + 4], eax
lea eax, [ebp - 0xc]
mov dword [esp], eax
call fcn.00405194
mov dword [ebp - 0x3124], eax
cmp dword [ebp - 0x3124], 0
js 0x40673e
mov dword [ebp - 0x3128], 0
mov eax, dword [ebp - 0x3124]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40b1b1
lea eax, [ebp - 0x2018]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00403230
jmp 0x406699
lea eax, [ebp - 0x3128]
inc dword [eax]
jmp 0x406699
cmp dword [ebp - 0x3128], 7
jle 0x406760
mov dword [ebp - 0x52ac], 0
jmp 0x406775
lea eax, [ebp - 0xc]
mov dword [esp], eax
call fcn.00404f61
mov dword [ebp - 0x52ac], 1
mov eax, dword [ebp - 0x52ac]
leave
ret