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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x1601410a
push 0x52010001
push 3
mov eax, 2
mov ebx, 0x475810
call fcn.0040fd01
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4014da
push ebx
call fcn.0040fce9
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x1601410a
push 0x52010001
push 3
mov eax, 2
mov ebx, 0x475810
call fcn.0040fd01
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401531
push ebx
call fcn.0040fce9
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 1
mov ebx, 0x410160
call fcn.0040fcdd
add esp, 0x10
push 0xffffffffffffffff
push 8
push 0x16017279
push 0x52010001
call fcn.0040fd0d
add esp, 0x10
mov dword [ebp - 0x14], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x401580
mov eax, 0x4cf904
push eax
push 1
mov ebx, 0x410750
call fcn.0040fcdd
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4015a6
push ebx
call fcn.0040fce9
add esp, 4
mov eax, dword [ebp - 0x18]
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x4017bd
push str._1430460006427callbackcallback
push dword [ebp - 4]
push str.http:__121.43.79.248_index.php_HPGJ_Index_getRedPack_openid
mov ecx, 3
call fcn.00401406
add esp, 0xc
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
push 1
mov eax, str.X_Requested_With:_XMLHttpRequest_r_nUser_Agent:_Mozilla_5.0__iPhone__CPU_iPhone_OS_7_1_2_like_Mac_OS_X__AppleWebKit_537.51.2__KHTML__like_Gecko__Mobile_11D257_MicroMessenger_6.0.1_NetType_WIFI
mov dword [ebp - 0x2c], eax
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
push 1
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004019cf
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40166b
push ebx
call fcn.0040fce9
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40167b
push ebx
call fcn.0040fce9
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40168b
push ebx
call fcn.0040fce9
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40169b
push ebx
call fcn.0040fce9
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4016ab
push ebx
call fcn.0040fce9
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4016bb
push ebx
call fcn.0040fce9
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4016cb
push ebx
call fcn.0040fce9
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4016db
push ebx
call fcn.0040fce9
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4016eb
push ebx
call fcn.0040fce9
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4016fe
mov eax, 0x4cfa25
push eax
push 1
mov ebx, 0x411270
call fcn.0040fcdd
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x401724
push ebx
call fcn.0040fce9
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x401738
push ebx
call fcn.0040fce9
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0
mov ebx, 0x411b20
call fcn.0040fcdd
add esp, 4
push dword [ebp - 0x10]
push 0x4cfa2d
push dword [ebp - 8]
push 0x4cfa30
mov ecx, 4
call fcn.00401406
add esp, 0x10
mov dword [ebp - 0x14], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x401781
mov eax, 0x4cf904
push eax
push 0x10005
push 0x1601727c
push 0x52010001
push 2
mov ebx, 0x412190
call fcn.0040fcdd
add esp, 0x1c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4017b3
push ebx
call fcn.0040fce9
add esp, 4
inc dword [ebp - 0xc]
pop eax
pop ecx
jmp 0x4015ab
add esp, 8
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4017d0
push ebx
call fcn.0040fce9
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4017e0
push ebx
call fcn.0040fce9
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4017f0
push ebx
call fcn.0040fce9
add esp, 4
mov esp, ebp
pop ebp
ret 4