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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0xc
call fcn.004268d3
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x4d3241
push ebx
add ebx, 4
push ebx
push 8
call fcn.004268d3
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4d2ed5
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
add ebx, 4
push ebx
push 8
call fcn.004268d3
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4d2ed5
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
pop ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 0xc
call fcn.004268d3
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x4d327d
push ebx
add ebx, 8
push ebx
push 8
call fcn.004268d3
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.00409fe1
pop ebx
mov eax, 0x4d30b7
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d204
push ebx
call fcn.004268d9
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov eax, str.__needToken_:true__pub_type_:2__req_type_:8__active_info_:_req_type_:7__active_type_:1__active_id_:100001271__request_name_:_taskLottery___need_log_:true__user_:_openid_trans_:true__token_:_12023530627878_
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d225
push ebx
call fcn.004268d9
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x40d247
push eax
mov ebx, eax
call fcn.00401088
inc eax
push eax
call fcn.004268d3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d258
push ebx
call fcn.004268d9
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str.Mozilla_5.0__iPhone__CPU_iPhone_OS_11_0_like_Mac_OS_X__AppleWebKit_604.1.38__KHTML__like_Gecko__Version_11.0_Mobile_15A372_Safari_604.1
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov eax, str.User_Agent
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40d29e
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40d2ae
push ebx
call fcn.004268d9
add esp, 4
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d2df
push ebx
call fcn.004268d9
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push 8
call fcn.004268d3
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
push 1
push dword [ebp - 0x1c]
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00404f6a
mov dword [ebp - 0x60], eax
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x40d3de
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40d3ee
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40d3fe
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40d40e
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40d41e
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40d42e
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x38]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x42a4b0
call fcn.004268cd
add esp, 0x10
call fcn.004268d9
add esp, 4
mov eax, dword [ebp - 0x60]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d465
push ebx
call fcn.004268d9
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
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00409935
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40d4ab
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40d4bb
push ebx
call fcn.004268d9
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40d4ce
mov eax, 0x4d2ed5
push eax
push 1
mov ebx, 0x428080
call fcn.004268cd
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40d4f4
push ebx
call fcn.004268d9
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d508
push ebx
call fcn.004268d9
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
push 0x20
call fcn.004268d3
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x2c]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d564
push ebx
call fcn.004268d9
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d578
push ebx
call fcn.004268d9
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d58c
push ebx
call fcn.004268d9
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40d5a0
push ebx
call fcn.004268d9
add esp, 4
pop ebx
call fcn.004268d9
add esp, 4
push 1
mov eax, str._ret_code_
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x38]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40d5d8
push ebx
call fcn.004268d9
add esp, 4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004268d9
add esp, 4
mov eax, dword [ebp - 0x34]
jmp 0x40d601
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d612
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d622
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d632
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d652
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40d662
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d672
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004268d9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4