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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
jmp 0x40b52d
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
push 3
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x60], 0
push 0
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov eax, str.http:__pv.sohu.com_cityjson
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040bfb0
mov dword [ebp - 0x6c], eax
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x40b64a
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x40b65a
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x40b66a
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40b67a
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40b68a
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40b69a
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40b6aa
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40b6ba
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40b6ca
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40b6da
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40b6ea
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40b6fa
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40b70a
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40b71a
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b72a
push ebx
call fcn.0041124d
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x40b73d
mov eax, 0x4ac2ad
push eax
push 1
mov ebx, 0x414040
call fcn.00411241
add esp, 0x10
mov dword [ebp - 0x70], eax
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x40b763
push ebx
call fcn.0041124d
add esp, 4
mov eax, dword [ebp - 0x70]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b777
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.____cid_:__
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str._cip_:__
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004055b0
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40b7c7
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b7d7
push ebx
call fcn.0041124d
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b7eb
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, 0x4ac797
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str._cname_:__
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004055b0
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40b83b
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b84b
push ebx
call fcn.0041124d
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b85f
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x4ac2ad
push dword [ebp - 8]
call fcn.0040104a
add esp, 8
cmp eax, 0
je 0x40b899
push 0x4ac2ad
push dword [ebp - 0xc]
call fcn.0040104a
add esp, 8
cmp eax, 0
je 0x40b899
xor eax, eax
jmp 0x40b89e
mov eax, 1
test eax, eax
je 0x40beb3
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 8
call fcn.00411247
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
push 3
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_50.0.2661.87_Safari_537.36
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov eax, str.http:__www.ip138.com
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
call fcn.00402680
mov dword [ebp - 0x64], eax
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x40b9c1
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40b9d1
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40b9e1
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40b9f1
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40ba01
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40ba11
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40ba21
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40ba31
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40ba41
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40ba51
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x4113b0
call fcn.00411241
add esp, 0x10
call fcn.0041124d
add esp, 4
mov eax, dword [ebp - 0x64]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40ba88
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push reloc.WS2_32.dll_connect
push 0
push str._iframe_src
push 1
mov ebx, 0x4138c0
call fcn.00411241
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x4ac841
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040471e
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40bad5
push ebx
call fcn.0041124d
add esp, 4
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov eax, 0x4ac841
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040f633
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40bb0d
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40bb1d
push ebx
call fcn.0041124d
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40bb30
mov eax, 0x4ac299
push eax
push 1
mov ebx, 0x414040
call fcn.00411241
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40bb56
push ebx
call fcn.0041124d
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40bb6a
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_connect
push 0
push 0x4ac84a
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40bb8d
mov eax, 0x4ac2ad
push eax
push 2
mov ebx, 0x412b40
call fcn.00411241
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40bbdd
push dword [ebp - 0x14]
push str.http:
mov ecx, 2
call fcn.00401152
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40bbd9
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 8
call fcn.00411247
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
lea eax, [ebp - 0x14]
push eax
call fcn.00402680
mov dword [ebp - 0x64], eax
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x40bcf4
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40bd04
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40bd14
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40bd24
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40bd34
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40bd44
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40bd54
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40bd64
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40bd74
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x4113b0
call fcn.00411241
add esp, 0x10
call fcn.0041124d
add esp, 4
lea eax, [ebp - 0x64]
push eax
call fcn.0040f873
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x40bdb3
push ebx
call fcn.0041124d
add esp, 4
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40bdc7
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.__title_
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, 0x4ac85e
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004055b0
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40be17
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40be27
push ebx
call fcn.0041124d
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40be3b
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str._r_n__p_
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, 0x4ac874
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004055b0
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40be8b
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40be9b
push ebx
call fcn.0041124d
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40beaf
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x4ac2ad
push dword [ebp - 8]
call fcn.0040104a
add esp, 8
cmp eax, 0
jne 0x40bee6
mov eax, str.IP
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40bee2
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x4ac2ad
push dword [ebp - 0xc]
call fcn.0040104a
add esp, 8
cmp eax, 0
jne 0x40bf19
mov eax, 0x4ac884
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40bf15
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40bf35
push eax
mov ebx, eax
call fcn.004010e7
inc eax
push eax
call fcn.00411247
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40bf4a
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bf5b
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40bf6b
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40bf7b
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40bf8b
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40bf9b
push ebx
call fcn.0041124d
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40bfab
push ebx
call fcn.0041124d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret