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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push str.g_f0cmd30gift0
push dword [0x4c5574]
push str.petid
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
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 - 0x18], eax
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
lea eax, [ebp - 0xc]
push eax
call fcn.00401a5b
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40aaf8
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ab08
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ab18
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40ab28
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40ab38
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40ab48
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402f38
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ab64
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ab78
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x49d53b
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, 0x49d540
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004037fb
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40abb0
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40abc0
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40abd4
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x49d551
push dword [ebp - 8]
call fcn.00401967
add esp, 8
cmp eax, 0
jne 0x40ad04
push str.g_f0cmd30day1gift0gift_get1
push dword [0x4c5574]
push str.petid
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, 0x49d57a
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
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 - 0x18], eax
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
lea eax, [ebp - 0xc]
push eax
call fcn.00401a5b
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40ac7b
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ac8b
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ac9b
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40acab
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40acbb
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40accb
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402f38
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ace7
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40acfb
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b407
push 0x49d57e
push dword [ebp - 8]
call fcn.00401967
add esp, 8
cmp eax, 0
jne 0x40ae30
push str.g_f0cmd30day2gift0gift_get1
push dword [0x4c5574]
push str.petid
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, 0x49d57a
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
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 - 0x18], eax
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
lea eax, [ebp - 0xc]
push eax
call fcn.00401a5b
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40ada7
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40adb7
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40adc7
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40add7
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40ade7
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40adf7
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402f38
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ae13
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ae27
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b407
push 0x49d5a7
push dword [ebp - 8]
call fcn.00401967
add esp, 8
cmp eax, 0
jne 0x40af5c
push str.g_f0cmd30day3gift0gift_get1
push dword [0x4c5574]
push str.petid
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, 0x49d57a
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
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 - 0x18], eax
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
lea eax, [ebp - 0xc]
push eax
call fcn.00401a5b
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40aed3
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40aee3
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40aef3
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40af03
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40af13
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40af23
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402f38
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40af3f
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40af53
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b407
push 0x49d5d0
push dword [ebp - 8]
call fcn.00401967
add esp, 8
cmp eax, 0
jne 0x40b088
push str.g_f0cmd30day4gift0gift_get1
push dword [0x4c5574]
push str.petid
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, 0x49d57a
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
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 - 0x18], eax
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
lea eax, [ebp - 0xc]
push eax
call fcn.00401a5b
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40afff
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b00f
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b01f
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b02f
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b03f
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40b04f
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402f38
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b06b
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b07f
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b407
push 0x49d5f9
push dword [ebp - 8]
call fcn.00401967
add esp, 8
cmp eax, 0
jne 0x40b1b4
push str.g_f0cmd30day5gift0gift_get1
push dword [0x4c5574]
push str.petid
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, 0x49d57a
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
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 - 0x18], eax
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
lea eax, [ebp - 0xc]
push eax
call fcn.00401a5b
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b12b
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b13b
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b14b
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b15b
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b16b
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40b17b
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402f38
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b197
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b1ab
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b407
push 0x49d622
push dword [ebp - 8]
call fcn.00401967
add esp, 8
cmp eax, 0
jne 0x40b2e0
push str.g_f0cmd30day6gift0gift_get1
push dword [0x4c5574]
push str.petid
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, 0x49d57a
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
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 - 0x18], eax
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
lea eax, [ebp - 0xc]
push eax
call fcn.00401a5b
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b257
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b267
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b277
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b287
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b297
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40b2a7
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402f38
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b2c3
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b2d7
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b407
push 0x49d64b
push dword [ebp - 8]
call fcn.00401967
add esp, 8
cmp eax, 0
jne 0x40b407
push str.g_f0cmd30day7gift0gift_get1
push dword [0x4c5574]
push str.petid
push dword [0x4c5568]
push 0x49a8e1
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, 0x49d57a
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
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 - 0x18], eax
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
lea eax, [ebp - 0xc]
push eax
call fcn.00401a5b
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b383
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b393
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b3a3
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b3b3
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b3c3
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40b3d3
push ebx
call fcn.0040b6d2
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00402f38
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b3ef
push ebx
call fcn.0040b6d2
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b403
push ebx
call fcn.0040b6d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x49d674
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b438
mov eax, 0x49a557
push eax
push 4
mov ebx, 0x40bcd0
call fcn.0040b6e4
add esp, 0x34
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40b4aa
push 0
push 0
push 0xffffffffffffffff
push 0x12
push 0x16011564
push 0x52010001
call fcn.0040b6de
add esp, 0x18
push 0
push 0
push 0
push 0x80000301
push 0
push 0x30
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x49d689
push 3
mov ebx, 0x40cab0
call fcn.0040b6e4
add esp, 0x28
jmp 0x40b4f7
push 0
push 0
push 0
push 0x80000301
push 0
push 0x40
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x49d694
push 3
mov ebx, 0x40cab0
call fcn.0040b6e4
add esp, 0x28
push 0
push 0
push 0xffffffffffffffff
push 0x12
push 0x16011564
push 0x52010001
call fcn.0040b6de
add esp, 0x18
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b507
push ebx
call fcn.0040b6d2
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b517
push ebx
call fcn.0040b6d2
add esp, 4
mov esp, ebp
pop ebp
ret