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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
push dword [0x4ada24]
push str.http:__qqpet.wapsns.3g.qq.com_qqpet_fcgi_bin_phone_pet_sid
mov ecx, 2
call fcn.0040107b
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
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 - 0x14], eax
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
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004013b6
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403622
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x403632
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x403642
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x403652
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403662
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403672
push ebx
call fcn.0040ae52
add esp, 4
lea eax, [ebp - 0x20]
push eax
call fcn.00402893
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40368e
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x4ada20]
test ebx, ebx
je 0x4036a5
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [0x4ada20], eax
mov eax, str._img
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x487ff2
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4036e0
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4036f0
push ebx
call fcn.0040ae52
add esp, 4
push 0
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 8
push 0x16011532
push 0x52010001
call fcn.0040ae64
add esp, 0x18
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40371b
push ebx
call fcn.0040ae52
add esp, 4
mov eax, str._br__
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x487fff
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403750
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403760
push ebx
call fcn.0040ae52
add esp, 4
push 0
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 8
push 0x16011535
push 0x52010001
call fcn.0040ae64
add esp, 0x18
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40378b
push ebx
call fcn.0040ae52
add esp, 4
mov eax, str.__br__
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x48800d
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4037c0
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4037d0
push ebx
call fcn.0040ae52
add esp, 4
push 0
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 8
push 0x16011533
push 0x52010001
call fcn.0040ae64
add esp, 0x18
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4037fb
push ebx
call fcn.0040ae52
add esp, 4
mov eax, 0x487dbc
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x487dbe
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403830
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403840
push ebx
call fcn.0040ae52
add esp, 4
push 0
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 8
push 0x16011536
push 0x52010001
call fcn.0040ae64
add esp, 0x18
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40386b
push ebx
call fcn.0040ae52
add esp, 4
mov eax, str._br__
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x488014
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4038a0
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4038b0
push ebx
call fcn.0040ae52
add esp, 4
push 0
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 8
push 0x16011537
push 0x52010001
call fcn.0040ae64
add esp, 0x18
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4038db
push ebx
call fcn.0040ae52
add esp, 4
mov eax, 0x487dbc
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x48801d
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403910
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403920
push ebx
call fcn.0040ae52
add esp, 4
push 0
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 8
push 0x16011538
push 0x52010001
call fcn.0040ae64
add esp, 0x18
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40394b
push ebx
call fcn.0040ae52
add esp, 4
mov eax, 0x488026
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x488029
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403980
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403990
push ebx
call fcn.0040ae52
add esp, 4
push 0
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 8
push 0x1601153b
push 0x52010001
call fcn.0040ae64
add esp, 0x18
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4039bb
push ebx
call fcn.0040ae52
add esp, 4
mov eax, str.___a
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x488037
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4039f0
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403a00
push ebx
call fcn.0040ae52
add esp, 4
push 0
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 8
push 0x1601153e
push 0x52010001
call fcn.0040ae64
add esp, 0x18
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403a2b
push ebx
call fcn.0040ae52
add esp, 4
mov eax, 0x488042
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x488048
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403a60
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403a70
push ebx
call fcn.0040ae52
add esp, 4
push 0
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 8
push 0x1601153c
push 0x52010001
call fcn.0040ae64
add esp, 0x18
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403a9b
push ebx
call fcn.0040ae52
add esp, 4
mov eax, 0x488051
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x488053
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403ad0
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403ae0
push ebx
call fcn.0040ae52
add esp, 4
push 0
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 8
push 0x1601153d
push 0x52010001
call fcn.0040ae64
add esp, 0x18
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403b0b
push ebx
call fcn.0040ae52
add esp, 4
mov eax, str.amp_g_f
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, str.amp_petid
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403b40
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403b50
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x4ada28]
test ebx, ebx
je 0x403b67
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [0x4ada28], eax
mov eax, 0x488070
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x488077
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4ada20
call fcn.00403156
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403ba2
push ebx
call fcn.0040ae52
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403bb2
push ebx
call fcn.0040ae52
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403bc6
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [ebp - 4], eax
push closesocket
push 0
push 1
mov ebx, 6
call fcn.00403591
push getpeername
push 0
push 0x488086
push getpeername
push 0
push str.amp_
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x403c0b
mov eax, 0x487dfd
push eax
push 6
mov ebx, 0x40b960
call fcn.0040ae58
add esp, 0x4c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [0x4ada2c]
test ebx, ebx
je 0x403c38
push ebx
call fcn.0040ae52
add esp, 4
pop eax
mov dword [0x4ada2c], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403c4e
push ebx
call fcn.0040ae52
add esp, 4
mov esp, ebp
pop ebp
ret