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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x40004
push 0x16011186
push 0x52011185
push 1
mov eax, 3
mov ebx, 0x454850
call fcn.00408381
add esp, 0x10
push 0xffffffffffffffff
push 8
push 0x160111d5
push 0x52011185
call fcn.0040838d
add esp, 0x10
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push 0x47d967
push dword [0x566604]
push str.http:__dld.qzapp.z.qq.com_qpet_cgi_bin_phonepk_zapp_uin937158168zapp_sid
mov ecx, 4
call fcn.0040127d
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x404876
push ebx
call fcn.00408369
add esp, 4
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__iPhone__U__CPU_OS_4_2_1_like_Mac_OS_X__AppleWebKit_532.9__KHTML__like_Gecko__Version_5.0.3_Mobile_8B5097d_Safari_6531.22.7
mov dword [ebp - 0x1c], eax
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
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401548
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4048d4
push ebx
call fcn.00408369
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4048e4
push ebx
call fcn.00408369
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4048f4
push ebx
call fcn.00408369
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404904
push ebx
call fcn.00408369
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404914
push ebx
call fcn.00408369
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404924
push ebx
call fcn.00408369
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00402a25
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x404940
push ebx
call fcn.00408369
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [0x566608]
test ebx, ebx
je 0x404957
push ebx
call fcn.00408369
add esp, 4
pop eax
mov dword [0x566608], eax
mov eax, str.__a__br____P___P__a_href
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, 0x47daf2
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x566608
call fcn.00404593
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404992
push ebx
call fcn.00408369
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4049a2
push ebx
call fcn.00408369
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4049b6
push ebx
call fcn.00408369
add esp, 4
pop eax
mov dword [ebp - 4], eax
push getpeername
push 0
push 1
mov ebx, 6
call fcn.004047e5
push getpeername
push 0
push 0x47d7b8
push getpeername
push 0
push str.nbsp_
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4049fb
mov eax, 0x47d7b8
push eax
push 6
mov ebx, 0x408dd0
call fcn.0040836f
add esp, 0x4c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404a25
push ebx
call fcn.00408369
add esp, 4
pop eax
mov dword [ebp - 4], eax
push getpeername
push 0
push 1
mov ebx, 6
call fcn.004047e5
push getpeername
push 0
push 0x47d7b8
push getpeername
push 0
push str.amp_
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x404a6a
mov eax, 0x47d7b8
push eax
push 6
mov ebx, 0x408dd0
call fcn.0040836f
add esp, 0x4c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404a94
push ebx
call fcn.00408369
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 0x566624
mov eax, 0x47db06
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, 0x47d97d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040351f
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x404b1d
push ebx
call fcn.00408369
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x404b2d
push ebx
call fcn.00408369
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404b3d
push ebx
call fcn.00408369
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404b4d
push ebx
call fcn.00408369
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [0x566620], eax
mov eax, dword [0x566620]
xor ecx, ecx
push eax
mov eax, 0x566628
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x404d83
mov ebx, 0x12
call fcn.004047e5
push 0x40004
push 0x16011186
push 0x52011185
push 7
mov eax, 3
mov ebx, 0x454760
call fcn.00408381
add esp, 0x58
mov dword [ebp - 8], eax
mov ebx, dword [0x566624]
call fcn.004034e6
push ebx
push ecx
mov eax, dword [0x566628]
dec eax
jns 0x404bc8
push 4
call fcn.00408375
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404bdb
push 1
call fcn.00408375
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
push 0x47db06
mov ebx, dword [ebp - 0xc]
push dword [ebx]
mov ecx, 2
call fcn.0040127d
add esp, 8
mov dword [ebp - 0x10], eax
push getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x404c10
mov eax, 0x47d7b8
push eax
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 8]
push 0x40004
push 0x16011186
push 0x52011185
push 4
mov eax, 3
mov ebx, 0x454740
call fcn.00408381
add esp, 0x34
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404c5d
push ebx
call fcn.00408369
add esp, 4
mov ebx, dword [0x566610]
call fcn.004034e6
push ebx
push ecx
mov eax, dword [0x566628]
dec eax
jns 0x404c7f
push 4
call fcn.00408375
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404c92
push 1
call fcn.00408375
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
push getpeername
push 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x404caf
mov eax, 0x47d7b8
push eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 8]
push 0x40004
push 0x16011186
push 0x52011185
push 4
mov eax, 3
mov ebx, 0x454740
call fcn.00408381
add esp, 0x34
mov ebx, dword [0x56661c]
call fcn.004034e6
push ebx
push ecx
mov eax, dword [0x566628]
dec eax
jns 0x404d0e
push 4
call fcn.00408375
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404d21
push 1
call fcn.00408375
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
push getpeername
push 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x404d3e
mov eax, 0x47d7b8
push eax
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 8]
push 0x40004
push 0x16011186
push 0x52011185
push 4
mov eax, 3
mov ebx, 0x454740
call fcn.00408381
add esp, 0x34
pop eax
pop ebx
pop ecx
jmp 0x404b65
add esp, 0xc
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404d96
push ebx
call fcn.00408369
add esp, 4
mov esp, ebp
pop ebp
ret