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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0040ae70
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x487f49
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.0040ae70
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x487f49
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push str.g_f0cmd24page0
push dword [0x4ada28]
push str.petid
push dword [0x4ada24]
push str.http:__qqpet.wapsns.3g.qq.com_qqpet_fcgi_bin_phone_pet_sid
mov ecx, 5
call fcn.0040107b
add esp, 0x14
mov dword [ebp - 0x1c], 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
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 - 0x28], eax
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
lea eax, [ebp - 0x1c]
push eax
call fcn.004013b6
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x403f88
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x403f98
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403fa8
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x403fb8
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x403fc8
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x403fd8
push ebx
call fcn.0040ae52
add esp, 4
lea eax, [ebp - 0x34]
push eax
call fcn.00402893
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x403ff4
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404008
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, str._br___n
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str._br_
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403156
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404040
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404050
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x404064
push ebx
call fcn.0040ae52
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 dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 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
push dword [ebp - 0x30]
push 1
lea eax, [ebp - 0xc]
push eax
mov eax, 0x488026
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, 0x48a8dc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004043b3
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4040e9
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4040f9
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x404109
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x404119
push ebx
call fcn.0040ae52
add esp, 4
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
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 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
push dword [ebp - 0x30]
push 1
lea eax, [ebp - 0x10]
push eax
mov eax, 0x48a8de
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, 0x488026
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004043b3
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40419a
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4041aa
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4041ba
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4041ca
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0xc]
call fcn.00403e6b
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x404302
mov ebx, dword [ebp - 0xc]
call fcn.00403e84
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x404206
push 4
call fcn.0040ae7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404219
push 1
call fcn.0040ae7c
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, 0xc
call fcn.00403591
push getpeername
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x404240
mov eax, 0x487dfd
push eax
push 0
push 0
push 0
push 0x50004
push 0x1601177f
push 0x52010001
push 7
mov eax, 4
mov ebx, 0x45ecd0
call fcn.0040ae6a
add esp, 0x58
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
call fcn.00403e84
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x40428d
push 4
call fcn.0040ae7c
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4042a0
push 1
call fcn.0040ae7c
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push getpeername
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x4042bd
mov eax, 0x487dfd
push eax
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 0x18]
push 0x50004
push 0x1601177f
push 0x52010001
push 4
mov eax, 4
mov ebx, 0x45ecb0
call fcn.0040ae6a
add esp, 0x34
pop eax
pop ebx
pop ecx
jmp 0x4041db
add esp, 0xc
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404315
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x404325
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x404343
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40433f
imul eax, dword [ebx]
jmp 0x404334
mov ecx, eax
test ecx, ecx
je 0x404362
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40435b
push ebx
push eax
call fcn.0040ae52
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x404349
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x404388
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x404384
imul eax, dword [ebx]
jmp 0x404379
mov ecx, eax
test ecx, ecx
je 0x4043a7
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4043a0
push ebx
push eax
call fcn.0040ae52
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40438e
call fcn.0040ae52
add esp, 4
mov esp, ebp
pop ebp
ret