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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
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 0x40a34b
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__req_type_:8__pub_type_:2__active_info_:_req_type_:13__active_id_:100001270__active_type_:3__task_id_:3000__request_name_:_getSignAward___need_log_:true__user_:_openid_trans_:true__token_:_12023554850657_
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a36c
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 0x40a38e
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 0x40a39f
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__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_50.0.2661.87_Safari_537.36
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 0x40a3e5
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40a3f5
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 0x40a426
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]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
push 1
push dword [ebp - 0x1c]
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
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.0040a735
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40a4cd
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40a4dd
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40a4ed
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40a4fd
push ebx
call fcn.004268d9
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a511
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 0x40a557
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40a567
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 0x40a57a
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 0x40a5a0
push ebx
call fcn.004268d9
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a5b4
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 0x40a610
push ebx
call fcn.004268d9
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a624
push ebx
call fcn.004268d9
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a638
push ebx
call fcn.004268d9
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a64c
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 0x40a684
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 0x40a6ad
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a6be
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a6ce
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40a6de
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 0x40a6fe
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a70e
push ebx
call fcn.004268d9
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a71e
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