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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x52d8
call fcn.00407ac0
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], 0x40b29d
mov dword [esp], 0
call fcn.0040467f
mov dword [ebp - 0x3124], eax
cmp dword [ebp - 0x3124], 0
js 0x406290
mov eax, dword [ebp - 0x3124]
add eax, 3
mov dword [ebp - 0x328c], eax
jmp 0x40629a
mov dword [ebp - 0x328c], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40b2a1
mov eax, dword [ebp - 0x328c]
mov dword [esp], eax
call fcn.0040467f
mov dword [ebp - 0x3124], eax
mov eax, dword [ebp - 0x3124]
test eax, eax
js 0x40632e
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.004045c5
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.004045c5
jmp 0x406396
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.004045c5
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.004045c5
lea eax, [ebp - 0x2118]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40b2a3
mov dword [esp], 0
call fcn.0040467f
mov dword [ebp - 0x3124], eax
cmp dword [ebp - 0x3124], 0
js 0x406410
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.004045c5
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 0x406438
mov dword [esp + 4], 0x40b2a5
lea eax, [ebp - 0x3120]
mov dword [esp], eax
call sub.ntdll.dll_strcpy
cmp byte [ebp - 0x2118], 0
jne 0x406450
mov dword [ebp - 0x52ac], 0
jmp 0x4067a5
lea eax, [ebp - 0xc]
mov dword [esp], eax
call fcn.00404bb6
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.00404c76
test eax, eax
jne 0x40648d
mov dword [ebp - 0x52ac], 0
jmp 0x4067a5
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.0040528a
mov dword [ebp - 0x328c], 0
mov dword [ebp - 0x3290], 0
cmp dword [ebp - 0x3128], 7
jg 0x406621
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.00405223
mov dword [ebp - 0x3124], eax
cmp dword [ebp - 0x3124], 0
jne 0x40655a
jmp 0x4064f1
cmp dword [ebp - 0x3124], 0
jle 0x406614
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.004052b8
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.0040467f
mov dword [ebp - 0x3290], eax
cmp dword [ebp - 0x3290], 0
js 0x4065eb
lea eax, [ebp - 0x3290]
add dword [eax], 4
jmp 0x406621
cmp dword [ebp - 0x328c], 0x2000
jle 0x4064f1
mov dword [ebp - 0x3290], 0
mov dword [ebp - 0x52ac], 0
jmp 0x4067a5
lea eax, [ebp - 0x3128]
inc dword [eax]
jmp 0x4064f1
cmp dword [ebp - 0x3128], 7
jle 0x406639
mov dword [ebp - 0x52ac], 0
jmp 0x4067a5
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], 0x40b2ad
lea eax, [ebp - 0x52a8]
mov dword [esp], eax
call fcn.0040480e
test eax, eax
je 0x406790
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], 0x40b2b1
lea eax, [ebp - 0x2018]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004032b4
mov dword [ebp - 0x328c], 0
cmp dword [ebp - 0x3128], 7
jg 0x40677b
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.00405223
mov dword [ebp - 0x3124], eax
cmp dword [ebp - 0x3124], 0
js 0x40676e
mov dword [ebp - 0x3128], 0
mov eax, dword [ebp - 0x3124]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40b2b1
lea eax, [ebp - 0x2018]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004032b4
jmp 0x4066c9
lea eax, [ebp - 0x3128]
inc dword [eax]
jmp 0x4066c9
cmp dword [ebp - 0x3128], 7
jle 0x406790
mov dword [ebp - 0x52ac], 0
jmp 0x4067a5
lea eax, [ebp - 0xc]
mov dword [esp], eax
call fcn.00404ff0
mov dword [ebp - 0x52ac], 1
mov eax, dword [ebp - 0x52ac]
leave
ret