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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 1
mov ebx, 0x4153f0
call fcn.00414e17
add esp, 0x10
push 0x80000301
push 0
push 0x64
push 0x80000301
push 0
push 0
push 2
mov ebx, 0x415610
call fcn.00414e17
add esp, 0x1c
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x40f37f
cmp dword [ebp - 4], 0
jne 0x40f0d7
mov eax, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:2.2a1pre__Gecko_20110324_Firefox_4.2a1pre
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f0ce
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f37a
cmp dword [ebp - 4], 1
jl 0x40f0f2
cmp dword [ebp - 4], 2
jg 0x40f0f2
mov eax, 1
jmp 0x40f0f4
xor eax, eax
test eax, eax
je 0x40f11b
mov eax, str.Mozilla_5.0__Windows__U__Windows_NT_6.1__tr_TR__AppleWebKit_533.20.25__KHTML__like_Gecko__Version_5.0.4_Safari_533.20.27
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f112
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f37a
cmp dword [ebp - 4], 3
jl 0x40f136
cmp dword [ebp - 4], 4
jg 0x40f136
mov eax, 1
jmp 0x40f138
xor eax, eax
test eax, eax
je 0x40f15f
mov eax, str.Mozilla_5.0__Windows__U__Windows_NT_6.0__AppleWebKit_533.1__KHTML__like_Gecko__Maxthon_3.0.8.2_Safari_533.1
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f156
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f37a
cmp dword [ebp - 4], 5
jl 0x40f17a
cmp dword [ebp - 4], 7
jg 0x40f17a
mov eax, 1
jmp 0x40f17c
xor eax, eax
test eax, eax
je 0x40f1a3
mov eax, str.Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_6.0__Trident_4.0__QQDownload_1.7__GTB6.6__TencentTraveler_4.0__SLCC1__.NET_CLR_2.0.50727__InfoPath.2__.NET_CLR_3.5.30729__.NET_CLR_3.0.30729_
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f19a
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f37a
cmp dword [ebp - 4], 8
jl 0x40f1be
cmp dword [ebp - 4], 0xa
jg 0x40f1be
mov eax, 1
jmp 0x40f1c0
xor eax, eax
test eax, eax
je 0x40f1e7
mov eax, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0__SLCC2__Media_Center_PC_6.0__InfoPath.3__MS_RTC_LM_8__Zune_4.7_
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f1de
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f37a
cmp dword [ebp - 4], 0xb
jl 0x40f202
cmp dword [ebp - 4], 0x10
jg 0x40f202
mov eax, 1
jmp 0x40f204
xor eax, eax
test eax, eax
je 0x40f22b
mov eax, str.Mozilla_4.0__compatible__MSIE_7.0b__Windows_NT_5.1__.NET_CLR_1.1.4322__Alexa_Toolbar__.NET_CLR_2.0.50727_
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f222
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f37a
cmp dword [ebp - 4], 0x11
jl 0x40f246
cmp dword [ebp - 4], 0x1c
jg 0x40f246
mov eax, 1
jmp 0x40f248
xor eax, eax
test eax, eax
je 0x40f26f
mov eax, str.Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_534.30__KHTML__like_Gecko__Chrome_12.0.742.53_Safari_534.30
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f266
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f37a
cmp dword [ebp - 4], 0x1d
jl 0x40f28a
cmp dword [ebp - 4], 0x2c
jg 0x40f28a
mov eax, 1
jmp 0x40f28c
xor eax, eax
test eax, eax
je 0x40f2b3
mov eax, str.Mozilla_4.0__compatible__MSIE_6.1__Windows_XP__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f2aa
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f37a
cmp dword [ebp - 4], 0x2d
jl 0x40f2ce
cmp dword [ebp - 4], 0x3b
jg 0x40f2ce
mov eax, 1
jmp 0x40f2d0
xor eax, eax
test eax, eax
je 0x40f2f7
mov eax, str.Mozilla_5.0__compatible__MSIE_8.0__Windows_NT_5.2__Trident_4.0__Media_Center_PC_4.0__SLCC1__.NET_CLR_3.0.04320_
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f2ee
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f37a
cmp dword [ebp - 4], 0x3c
jl 0x40f312
cmp dword [ebp - 4], 0x4d
jg 0x40f312
mov eax, 1
jmp 0x40f314
xor eax, eax
test eax, eax
je 0x40f33b
mov eax, str.Mozilla_5.0__Windows__U__Windows_NT_5.1__AppleWebKit_534.3__KHTML__like_Gecko__Chrome_6.0.472.33_Safari_534.3_SE_2.X_MetaSr_1.0
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f332
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f37a
cmp dword [ebp - 4], 0x4e
jl 0x40f356
cmp dword [ebp - 4], 0x64
jg 0x40f356
mov eax, 1
jmp 0x40f358
xor eax, eax
test eax, eax
je 0x40f37a
mov eax, str.Mozilla_4.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_4.0__Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_6.1__SV1____360SE_
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f376
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 0
jl 0x40f39a
cmp dword [ebp - 4], 2
jg 0x40f39a
mov eax, 1
jmp 0x40f39c
xor eax, eax
test eax, eax
je 0x40f3c3
mov eax, str.Opera_9.80__Android__Linux__Opera_Mobi_ADR_1012211514__U__cn__Presto_2.6.35_Version_10.1
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f3ba
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 3
jl 0x40f3de
cmp dword [ebp - 4], 4
jg 0x40f3de
mov eax, 1
jmp 0x40f3e0
xor eax, eax
test eax, eax
je 0x40f407
mov eax, str.Mozilla_4.0__compatible__Windows_Mobile__WCE__Opera_Mobi_WMD_50433__U__cn__Presto_2.4.13_Version_10.00
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f3fe
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 5
jl 0x40f422
cmp dword [ebp - 4], 7
jg 0x40f422
mov eax, 1
jmp 0x40f424
xor eax, eax
test eax, eax
je 0x40f44b
mov eax, str.Mozilla_5.0__Linux_U_Android_2.2.1_zh_cn_I7500_Build_FRG83__AppleWebKit_533.1__KHTML__like_Gecko_Version_4.0_Mobile_Safari_533.1
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f442
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 8
jl 0x40f466
cmp dword [ebp - 4], 0xa
jg 0x40f466
mov eax, 1
jmp 0x40f468
xor eax, eax
test eax, eax
je 0x40f48f
mov eax, str.Mozilla_5.0__iPhone__U__CPU_iPhone_OS_4_0_like_Mac_OS_X__zh_cn__AppleWebKit_532.9__KHTML__like_Gecko__Version_4.0.5_Mobile_8A293_Safari_6531.22.7
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f486
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 0xb
jl 0x40f4aa
cmp dword [ebp - 4], 0x10
jg 0x40f4aa
mov eax, 1
jmp 0x40f4ac
xor eax, eax
test eax, eax
je 0x40f4d3
mov eax, str.Mozilla_5.0__iPad__U__CPU_OS_3_2_like_Mac_OS_X__zh_cn__AppleWebKit_531.21.10__KHTML__like_Gecko__Version_4.0.4_Mobile_7B334b_Safari_531.21.10
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f4ca
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 0x11
jl 0x40f4ee
cmp dword [ebp - 4], 0x1c
jg 0x40f4ee
mov eax, 1
jmp 0x40f4f0
xor eax, eax
test eax, eax
je 0x40f517
mov eax, str.Mozilla_5.0__Android_2.3.3__zh_cn__HTC_DesireS_S510e_Build_GRI40__AppleWebKit_533.1__KHTML__like_Gecko__Version_4.0_Mobile_Safari_533.1
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f50e
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 0x1d
jl 0x40f532
cmp dword [ebp - 4], 0x2c
jg 0x40f532
mov eax, 1
jmp 0x40f534
xor eax, eax
test eax, eax
je 0x40f55b
mov eax, str.Mozilla_5.0__Android_2.2__zh_cn__HTC_Desire__GoBrowser
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f552
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 0x2d
jl 0x40f576
cmp dword [ebp - 4], 0x3b
jg 0x40f576
mov eax, 1
jmp 0x40f578
xor eax, eax
test eax, eax
je 0x40f59f
mov eax, str.Opera_9.80__Android__Linux__Opera_Mobi_ADR_1012221546__U__cn__Presto_2.7.60_Version_10.5
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f596
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 0x3c
jl 0x40f5ba
cmp dword [ebp - 4], 0x4d
jg 0x40f5ba
mov eax, 1
jmp 0x40f5bc
xor eax, eax
test eax, eax
je 0x40f5e3
mov eax, str.Opera_9.80__Android__Opera_Mini_7.6.32764_28.3234__U__zh__Presto_2.8.119_Version_11.10
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f5da
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 0x4e
jl 0x40f5fe
cmp dword [ebp - 4], 0x52
jg 0x40f5fe
mov eax, 1
jmp 0x40f600
xor eax, eax
test eax, eax
je 0x40f627
mov eax, str.Mozilla_5.0__Linux__U__Android_2.3.7__zh_cn__Nexus_One_Build_FRF91__AppleWebKit_533.1__KHTML__like_Gecko__Version_4.0_Mobile_Safari_533.1
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f61e
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 0x53
jl 0x40f642
cmp dword [ebp - 4], 0x56
jg 0x40f642
mov eax, 1
jmp 0x40f644
xor eax, eax
test eax, eax
je 0x40f66b
mov eax, str.Mozilla_5.0__Linux__U__Android_2.3.7__zh_cn__SCH_I699_Build_FRF91__AppleWebKit_533.1__KHTML__like_Gecko__Version_4.0_Mobile_Safari_533.1
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f662
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 0x57
jl 0x40f686
cmp dword [ebp - 4], 0x5c
jg 0x40f686
mov eax, 1
jmp 0x40f688
xor eax, eax
test eax, eax
je 0x40f6af
mov eax, str.Mozilla_5.0__Android_2.3.7__zh_cn__Build_FRF91__AppleWebKit_533.1__KHTML__like_Gecko__Version_4.0_Mobile_Safari_533.1
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f6a6
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 0x5d
jl 0x40f6ca
cmp dword [ebp - 4], 0x5f
jg 0x40f6ca
mov eax, 1
jmp 0x40f6cc
xor eax, eax
test eax, eax
je 0x40f6f3
mov eax, str.Mozilla_5.0__Linux__U__Android_2.3.6__zh_cn__MI_ONE_Plus_Build_GINGERBREAD__UC_AppleWebKit_534.31__KHTML__like_Gecko__Mobile_Safari_534.31
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f6ea
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40f732
cmp dword [ebp - 4], 0x60
jl 0x40f70e
cmp dword [ebp - 4], 0x64
jg 0x40f70e
mov eax, 1
jmp 0x40f710
xor eax, eax
test eax, eax
je 0x40f732
mov eax, str.Mozilla_5.0__Linux__U__Android_2.3.3__zh_cn__HTC_WildfireS_A510e_Build_GRI40__AppleWebKit_533.1__KHTML__like_Gecko__Version_4.0_Mobile_Safari_533.1
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f72e
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40f745
mov eax, 0x4c8ceb
push eax
push 1
mov ebx, 0x415370
call fcn.00414e17
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0x10000001
mov eax, 0x2d
call fcn.00414e2f
cmp dword [ebp - 0x10], esp
je 0x40f78a
push 6
call fcn.00414e29
add esp, 4
jmp 0x40f78f
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f7a0
push ebx
call fcn.00414e23
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4