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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0040507f
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x46ed19
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
push 0
mov ebx, 0x405410
call fcn.00405085
add esp, 4
mov dword [ebp - 0x2c], eax
push str.ck.txt
push dword [ebp - 0x2c]
mov ecx, 2
call fcn.004010d9
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401215
push ebx
call fcn.00405079
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x401228
mov eax, 0x46ed18
push eax
push 1
mov ebx, 0x4069a0
call fcn.00405085
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40124e
push ebx
call fcn.00405079
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x401261
mov eax, 0x46ed19
push eax
push 1
mov ebx, 0x406560
call fcn.00405085
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401287
push ebx
call fcn.00405079
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40129b
push ebx
call fcn.00405079
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push getpeername
push 0
push 0x46ed21
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4012c4
mov eax, 0x46ed18
push eax
push 3
mov ebx, 0x405f20
call fcn.00405085
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4012fc
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4012f8
imul eax, dword [ebx]
jmp 0x4012ed
mov ecx, eax
test ecx, ecx
je 0x40131b
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x401314
push ebx
push eax
call fcn.00405079
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x401302
call fcn.00405079
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
push 8
push 0x16010002
push 0x52010001
call fcn.0040509d
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov eax, str._22_2C_22a_ghid
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov eax, str.openid_22_3A_22
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401bd9
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40138c
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40139c
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4013ac
push ebx
call fcn.00405079
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4013c0
push ebx
call fcn.00405079
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
call fcn.00401135
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x406560
call fcn.00405085
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x46ed44
push dword [ebp - 0x30]
push 0x46ed4b
mov ecx, 3
call fcn.004010d9
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401416
push ebx
call fcn.00405079
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x401429
mov eax, 0x46ed18
push eax
push 0x10005
push 0x16010004
push 0x52010001
push 2
mov ebx, 0x406b90
call fcn.00405085
add esp, 0x1c
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40145b
push ebx
call fcn.00405079
add esp, 4
cmp dword [ebp - 4], 0
jne 0x401af9
push 0
push 0
push 0
push 1
mov ebx, 0x405430
call fcn.00405085
add esp, 0x10
mov ebx, dword [ebp - 0xc]
call fcn.00401135
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push 1
push 2
mov ebx, 0x4054d0
call fcn.00405085
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
call fcn.0040114e
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x4014cb
push 4
call fcn.0040508b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4014de
push 1
call fcn.0040508b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov eax, str.addon_rgDaGyCWFq0YmFCs
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
call fcn.00401e9a
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401525
push ebx
call fcn.00405079
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401539
push ebx
call fcn.00405079
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push str.fromgroupmessageisappinstalled0
push dword [ebp - 0x10]
push str.http:__whd.i_lz.cn_LLmDt9PO2ilgtHta_game_index__fromwx
mov ecx, 3
call fcn.004010d9
add esp, 0xc
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x18]
push str.addon_LLmDt9PO2ilgtHta
mov ecx, 2
call fcn.004010d9
add esp, 8
mov dword [ebp - 0x30], 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
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__iPhone__CPU_iPhone_OS_7_0_4_like_Mac_OS_X__AppleWebKit_537.51.1__KHTML__like_Gecko__Mobile_11B554a_MicroMessenger_6.1.1_NetType_WIFI
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040205d
mov ebx, eax
test ebx, ebx
je 0x401604
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401614
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x401624
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401634
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x401644
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x401654
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x401664
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x401674
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401684
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401694
push ebx
call fcn.00405079
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x14]
push 1
mov ebx, 0x406560
call fcn.00405085
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x46ed44
push dword [ebp - 0x2c]
push 0x46ee7b
mov ecx, 3
call fcn.004010d9
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4016e0
push ebx
call fcn.00405079
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4016f3
mov eax, 0x46ed18
push eax
push 0x10005
push 0x16010004
push 0x52010001
push 2
mov ebx, 0x406b90
call fcn.00405085
add esp, 0x1c
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401725
push ebx
call fcn.00405079
add esp, 4
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
call fcn.00404c30
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
call fcn.00404c30
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push str.start1limit8_
push dword [ebp - 0x30]
push str.jsoncallbackjQuery1830665818769717589_
push dword [ebp - 0x10]
push str.http:__whd.i_lz.cn_LLmDt9PO2ilgtHta_admin_interface_rankingLists_openid
mov ecx, 6
call fcn.004010d9
add esp, 0x18
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401785
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401795
push ebx
call fcn.00405079
add esp, 4
push 0xffffffffffffffff
push 8
push 0x16010002
push 0x52010001
call fcn.0040509d
add esp, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
push 1
mov eax, str.Host:_whd.i_lz.cn_r_nReferer:_http:__www.kkapp.com_plugin.php_idactivity:connectopwxrankopenido98Kpt1naolfP21WngQf5dyErkvIhdbzrgDaGyCWFq0YmFCsmobile2mobileno_r_nAccept_Language:_zh_cn_r_nConnection:_keep_alive_r_nUser_Agent:_Mozilla_5.0__iPhone__CPU_iPhone_OS_7_0_4_like_Mac_OS_X__AppleWebKit_537.51.1__KHTML__like_Gecko__Mobile_11B554a_MicroMessenger_5.3.1
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x60], 0
push 0
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040205d
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x401844
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x401854
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x401864
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x401874
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x401884
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x401894
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4018a4
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4018b4
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4018c4
push ebx
call fcn.00405079
add esp, 4
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4018d8
push ebx
call fcn.00405079
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov eax, str._user_:
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401e9a
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40191c
push ebx
call fcn.00405079
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401930
push ebx
call fcn.00405079
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov eax, 0x46f075
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, str.ranking_:
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401bd9
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x401980
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401990
push ebx
call fcn.00405079
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4019a4
push ebx
call fcn.00405079
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov eax, 0x46f082
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, str.___invite_num_:_
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401bd9
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4019f4
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401a04
push ebx
call fcn.00405079
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401a18
push ebx
call fcn.00405079
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
push 0x46ed21
push dword [ebp - 0x28]
push 0x46f096
push dword [ebp - 0x24]
push 0x46f09d
mov ecx, 5
call fcn.004010d9
add esp, 0x14
mov dword [ebp - 0x2c], eax
push getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x401a54
mov eax, 0x46ed18
push eax
push 0x10005
push 0x16010004
push 0x52010001
push 2
mov ebx, 0x406b90
call fcn.00405085
add esp, 0x1c
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401a86
push ebx
call fcn.00405079
add esp, 4
push 0xffffffffffffffff
push 8
push 0x16015df6
push 0x52010001
call fcn.0040509d
add esp, 0x10
mov dword [ebp - 0x2c], eax
push getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x401ab2
mov eax, 0x46ed18
push eax
push 1
mov ebx, 0x4059f0
call fcn.00405085
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401ad8
push ebx
call fcn.00405079
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x30]
push 1
mov ebx, 0x406c20
call fcn.00405085
add esp, 0x10
jmp 0x40145b
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401b09
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x401b27
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x401b23
imul eax, dword [ebx]
jmp 0x401b18
mov ecx, eax
test ecx, ecx
je 0x401b46
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x401b3f
push ebx
push eax
call fcn.00405079
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x401b2d
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x401b5e
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401b6e
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401b7e
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401b8e
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x401b9e
push ebx
call fcn.00405079
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401bae
push ebx
call fcn.00405079
add esp, 4
mov esp, ebp
pop ebp
ret