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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 1
push 1
push dword [0x5c184c]
push 0x5c1804
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x284]
mov ebx, dword [0x5c188c]
call fcn.00401010
mov dword [ebp - 0x10], eax
mov ebx, dword [0x5c188c]
call fcn.00401010
mov dword [ebp - 0x14], eax
push 1
push 1
push 1
push 0xb
push 0
mov eax, 0x54fbe3
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 8
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0
push 0x96
push 0x5a
push 0xa
push 0x5c1804
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x268]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d7cf
push ebx
call fcn.004dd656
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [0x5c184c], eax
mov ebx, dword [0x5c188c]
call fcn.00401010
xor ecx, ecx
push eax
lea eax, [ebp - 4]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40deb5
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x4df0e0
call fcn.004dd65c
add esp, 0x10
mov dword [ebp - 0x10], eax
push 1
push 1
push 1
push dword [ebp - 4]
push 1
push 1
push 1
lea eax, [ebp - 0x10]
push eax
push 1
push 1
push dword [0x5c184c]
push 0x5c1804
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2d0]
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d860
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [0x5c188c]
call fcn.00401029
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x40d880
push 4
call fcn.004dd64a
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40d893
push 1
call fcn.004dd64a
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push str.http:__wapp.baidu.com_f_kw
mov ecx, 2
call fcn.00403938
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
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
lea eax, [ebp - 0x28]
push eax
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
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push eax
call fcn.00409c23
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40d951
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40d961
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40d971
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40d981
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40d991
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d9a1
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d9b1
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d9c1
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d9d1
push ebx
call fcn.004dd656
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x40d9e4
mov eax, 0x55f9b5
push eax
push 1
mov ebx, 0x4df0e0
call fcn.004dd65c
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40da0a
push ebx
call fcn.004dd656
add esp, 4
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40da1e
push ebx
call fcn.004dd656
add esp, 4
pop eax
mov dword [ebp - 8], eax
push getpeername
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x59e671
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40da53
mov eax, 0x54fbe3
push eax
push 4
mov ebx, 0x4de040
call fcn.004dd65c
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40dead
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, 0x59e2c5
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, str.n:right____a_href_
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040b119
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40dabf
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40dacf
push ebx
call fcn.004dd656
add esp, 4
push getpeername
push 0
push 0
mov ebx, 6
call fcn.0040b111
push getpeername
push 0
push 0x54fbe3
push getpeername
push 0
push str.amp_
push getpeername
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40db10
mov eax, 0x54fbe3
push eax
push 6
mov ebx, 0x4de670
call fcn.004dd65c
add esp, 0x4c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40db36
push ebx
call fcn.004dd656
add esp, 4
push dword [ebp - 0x24]
push str.http:__wapp.baidu.com
mov ecx, 2
call fcn.00403938
add esp, 8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40db5e
push ebx
call fcn.004dd656
add esp, 4
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
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__Linux__U__Android_2.3.4__zh_cn__W806_Build_GRJ22__AppleWebKit_530.17__KHTML__like_Gecko__FlyFlow_2.4_Version_4.0_Mobile_Safari_530.17_baidubrowser_042_1.8.4.2_diordna_008_084_AIDIVN_01_4.3.2_608W_1000591a_9B673AC85965A58761CF435A48076629_7C880249110567268_1
mov dword [ebp - 0x40], eax
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
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
lea eax, [ebp - 0x28]
push eax
call fcn.00409c23
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40dbfb
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40dc0b
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40dc1b
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40dc2b
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40dc3b
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40dc4b
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40dc5b
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40dc6b
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40dc7b
push ebx
call fcn.004dd656
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x40dc8e
mov eax, 0x55f9b5
push eax
push 1
mov ebx, 0x4df0e0
call fcn.004dd65c
add esp, 0x10
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40dcb4
push ebx
call fcn.004dd656
add esp, 4
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov eax, 0x59e7c2
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040e05c
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40dcf4
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x40dd04
push ebx
call fcn.004dd656
add esp, 4
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40dd18
push ebx
call fcn.004dd656
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x12c
push 1
mov ebx, 0x4dfae0
call fcn.004dd65c
add esp, 0x10
push getpeername
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x59e7c7
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40dd6b
mov eax, 0x54fbe3
push eax
push 4
mov ebx, 0x4de040
call fcn.004dd65c
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40dead
push 0x54fbe3
push dword [ebp - 8]
call fcn.004041a7
add esp, 8
cmp eax, 0
je 0x40dead
mov ebx, dword [0x5c188c]
call fcn.00401029
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x40ddc4
push 4
call fcn.004dd64a
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40ddd7
push 1
call fcn.004dd64a
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0040e18b
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.__span_
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str._span_class_light___span_class_light__
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040b119
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40de42
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40de52
push ebx
call fcn.004dd656
add esp, 4
push 0x54f931
push dword [ebp - 0x2c]
push 0x59e602
push dword [ebp - 0x18]
push dword [ebp - 0xc]
mov ecx, 5
call fcn.00403938
add esp, 0x14
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40de85
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40de95
push ebx
call fcn.004dd656
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40dea9
push ebx
call fcn.004dd656
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
pop eax
pop ebx
pop ecx
jmp 0x40d7eb
add esp, 0xc
mov ebx, dword [0x5c188c]
call fcn.00401010
mov dword [ebp - 0x10], eax
push 0x5c188c
push 4
mov eax, 2
call fcn.004dd63e
add esp, 8
mov eax, dword [ebp - 0x10]
cmp eax, 0
jle 0x40df8a
mov dword [ebp - 0x18], eax
mov ebx, dword [0x5c188c]
mov dword [ebp - 0x1c], ebx
call fcn.00401029
mov dword [ebp - 0x20], ecx
sub ecx, 0
jle 0x40df8a
cmp ecx, dword [ebp - 0x18]
jge 0x40df0b
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jle 0x40df8a
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [edi], 1
add edi, 4
mov eax, ecx
sub eax, dword [ebp - 0x18]
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x40df36
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1c]
add edi, 8
mov ecx, dword [ebp - 0x18]
mov ebx, edi
push edi
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40df53
push ebx
call fcn.004dd656
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x40df42
pop edi
mov eax, dword [ebp - 0x18]
shl eax, 2
mov esi, edi
add esi, eax
mov ecx, dword [ebp - 0x20]
sub ecx, 0
sub ecx, dword [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
sub edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x1c]
call fcn.004dd662
add esp, 8
mov dword [0x5c188c], eax
mov eax, dword [ebp - 0x18]
jmp 0x40df8c
xor eax, eax
push getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40df9f
mov eax, 0x54fbe3
push eax
push 1
mov ebx, 0x4dda40
call fcn.004dd65c
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jle 0x40e02d
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push 7
mov eax, 0x59e7f9
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x5c1804
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x34]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40e009
push ebx
call fcn.004dd656
add esp, 4
cmp dword [ebp - 0x18], 5
jne 0x40e01d
call fcn.0040cf7c
jmp 0x40e028
push dword [0x5c1888]
call fcn.0040e659
jmp 0x40e02d
push dword [0x5c1888]
call fcn.0040e659
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40e048
push ebx
call fcn.004dd656
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40e058
push ebx
call fcn.004dd656
add esp, 4
mov esp, ebp
pop ebp
ret