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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
push 4
call fcn.0040a63d
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
call fcn.0040590a
mov dword [ebp - 0x10], eax
push str._HTTP_1.1_r_n
push dword [ebp - 0x10]
push str.GET
mov ecx, 3
call fcn.004010d6
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4051f4
push ebx
call fcn.0040a643
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405208
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00405b41
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push str.Host:
push dword [ebp - 4]
mov ecx, 3
call fcn.004010d6
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40525a
push ebx
call fcn.0040a643
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40526e
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4855e2
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4052a3
mov eax, 0x48536c
push eax
push 4
mov ebx, 0x40ade0
call fcn.0040a655
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x405348
push 0x48536c
push dword [ebp - 4]
call fcn.00401132
add esp, 8
cmp eax, 0
jne 0x405313
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Referer:
mov ecx, 2
call fcn.004010d6
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40530a
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x405348
mov ebx, dword [ebp + 8]
push dword [ebx]
push str._r_nReferer:
push dword [ebp - 4]
mov ecx, 3
call fcn.004010d6
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405344
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Accept:
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x405379
mov eax, 0x48536c
push eax
push 4
mov ebx, 0x40ade0
call fcn.0040a655
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4053c9
push str._r_nAccept:__
push dword [ebp - 4]
mov ecx, 2
call fcn.004010d6
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4053c5
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Accept_Language:
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4053fa
mov eax, 0x48536c
push eax
push 4
mov ebx, 0x40ade0
call fcn.0040a655
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40544a
push str._r_nAccept_Language:_zh_cn
push dword [ebp - 4]
mov ecx, 2
call fcn.004010d6
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405446
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Content_Type:
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40547b
mov eax, 0x48536c
push eax
push 4
mov ebx, 0x40ade0
call fcn.0040a655
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4054cb
push str._r_nContent_Type:_application_x_www_form_urlencoded
push dword [ebp - 4]
mov ecx, 2
call fcn.004010d6
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4054c7
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_bind
push 0
push 1
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.User_Agent:
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4054fc
mov eax, 0x48536c
push eax
push 4
mov ebx, 0x40ade0
call fcn.0040a655
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40554c
push str._r_nUser_Agent:_Mozilla_5.0__compatible__MSIE_9.0__qdesk_2.5.1277.202__Windows_NT_6.1__WOW64__Trident_6.0__QQBrowser_7.7.28658.400_
push dword [ebp - 4]
mov ecx, 2
call fcn.004010d6
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405548
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x405561
mov eax, 0x48536c
push eax
push 1
mov ebx, 0x40b300
call fcn.0040a655
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x48536c
push dword [ebp - 0x10]
call fcn.00401132
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4055a5
push ebx
call fcn.0040a643
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4055e4
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push str._r_nCookie:
push dword [ebp - 4]
mov ecx, 3
call fcn.004010d6
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4055e0
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00405b41
mov dword [ebp - 0x18], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40561a
mov eax, 0x48536c
push eax
push 1
mov ebx, 0x40c660
call fcn.0040a655
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x405640
push ebx
call fcn.0040a643
add esp, 4
push dword [ebp + 8]
call fcn.004062e0
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x405663
mov eax, 0x48536c
push eax
push 0x90002
push 0
push dword [ebp - 8]
push 3
mov eax, 8
mov ebx, 0x460aa0
call fcn.0040a65b
add esp, 0x28
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x405695
push ebx
call fcn.0040a643
add esp, 4
push 0x49b507
push dword [ebp - 4]
mov ecx, 2
call fcn.004010d6
add esp, 8
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0x1388
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4056cc
mov eax, 0x48536c
push eax
push 0x90002
push 0
push dword [ebp - 8]
push 3
mov eax, 8
mov ebx, 0x460be0
call fcn.0040a65b
add esp, 0x28
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4056fe
push ebx
call fcn.0040a643
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 0x1388
push 0x90002
push 0
push dword [ebp - 8]
push 3
mov eax, 8
mov ebx, 0x460b30
call fcn.0040a65b
add esp, 0x28
mov dword [ebp - 0x10], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x405747
mov eax, 0x4853a0
push eax
push 1
mov ebx, 0x40bbb0
call fcn.0040a655
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40576d
push ebx
call fcn.0040a643
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405781
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x90002
push 0
push dword [ebp - 8]
push 1
mov eax, 8
mov ebx, 0x461320
call fcn.0040a65b
add esp, 0x10
cmp dword [ebp + 0x18], 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4058bc
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 8
call fcn.0040a63d
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x4853a0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push 1
mov eax, 0x49b507
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004032e5
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40582f
push ebx
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40583f
push ebx
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40585d
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x405859
imul eax, dword [ebx]
jmp 0x40584e
mov ecx, eax
test ecx, ecx
je 0x40587c
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x405875
push ebx
push eax
call fcn.0040a643
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x405863
call fcn.0040a643
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00403e3c
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4058a0
push ebx
call fcn.0040a643
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4058b6
push ebx
call fcn.0040a643
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4058cc
push ebx
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
push 0x90002
push 0
push ebx
push 1
mov eax, 8
mov ebx, 0x461300
call fcn.0040a65b
add esp, 0x10
call fcn.0040a643
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405904
push ebx
call fcn.0040a643
add esp, 4
mov esp, ebp
pop ebp
ret 0x14