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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0xc
call fcn.0041b861
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x4e9e6c
push ebx
add ebx, 8
push ebx
push 8
call fcn.0041b861
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.0040c6f7
pop ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.00403f74
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403a83
push 1
push 1
push 1
push 1
push 1
push 0x16
push 1
push 0x2c7
push 1
push dword [ebp - 4]
call fcn.004046df
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.tencent:__ContactInfo__subcmdViewInfopuin0uin
mov ecx, 2
call fcn.0040368f
add esp, 8
mov dword [ebp - 0x28], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x403a56
mov eax, 0x4e9c2f
push eax
push 1
mov eax, 4
mov ebx, 0x4834c0
call fcn.0041b87f
add esp, 0x10
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x403a7e
push ebx
call fcn.0041b86d
add esp, 4
jmp 0x403ad8
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.tencent:__ContactInfo__subcmdViewInfopuin0uin
mov ecx, 2
call fcn.0040368f
add esp, 8
mov dword [ebp - 0x28], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x403ab0
mov eax, 0x4e9c2f
push eax
push 1
mov eax, 4
mov ebx, 0x4834c0
call fcn.0041b87f
add esp, 0x10
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x403ad8
push ebx
call fcn.0041b86d
add esp, 4
call fcn.00403f74
mov dword [ebp - 0x28], eax
push 0x23
push 0x11d
push 0x41
push 0x19a
push dword [ebp - 0x28]
call fcn.00404b41
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403b13
push ebx
call fcn.0041b86d
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00406690
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403b37
push ebx
call fcn.0041b86d
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, str.http:__ai.baidu.com_aidemo
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403b51
push ebx
call fcn.0041b86d
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 1
push 1
push 1
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.004072e8
mov dword [ebp - 0x28], eax
push str.image_url
push dword [ebp - 0x28]
push str.typecommontextimagedata_3Aimage_2Fpng_3Bbase64_2C
mov ecx, 3
call fcn.0040368f
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x403b9c
push ebx
call fcn.0041b86d
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x403bb0
push ebx
call fcn.0041b86d
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
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
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__Windows_NT_6.1__Win64__x64__rv:57.0__Gecko_20100101_Firefox_57.0_r_nAccept:___r_nAccept_Language:_zh_CN_zh_q0.8_zh_TW_q0.7_zh_HK_q0.5_en_US_q0.3_en_q0.2_r_nReferer:_http:__ai.baidu.com_tech_ocr_general_r_nContent_Type:_application_x_www_form_urlencoded__charsetUTF_8_r_nX_Requested_With:_XMLHttpRequest
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
mov eax, str.BAIDUIDC00C8B27BB1AE1F55E39D79DFFB48A3B:FG1_
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push 1
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.004080ff
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x403c69
push ebx
call fcn.0041b86d
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x403c79
push ebx
call fcn.0041b86d
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x403c89
push ebx
call fcn.0041b86d
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x403c99
push ebx
call fcn.0041b86d
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x403ca9
push ebx
call fcn.0041b86d
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x403cb9
push ebx
call fcn.0041b86d
add esp, 4
lea eax, [ebp - 0x54]
push eax
call fcn.0040c6b4
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x403cd5
push ebx
call fcn.0041b86d
add esp, 4
mov eax, dword [ebp - 0x58]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x403ce9
push ebx
call fcn.0041b86d
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x20
call fcn.0041b861
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x28]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x403d45
push ebx
call fcn.0041b86d
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x403d59
push ebx
call fcn.0041b86d
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x403d6d
push ebx
call fcn.0041b86d
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x403d81
push ebx
call fcn.0041b86d
add esp, 4
pop ebx
call fcn.0041b86d
add esp, 4
mov eax, 0x4e9c2f
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x403da0
push ebx
call fcn.0041b86d
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push 1
mov eax, str.data.words_result
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x34]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x403dd3
push ebx
call fcn.0041b86d
add esp, 4
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
push eax
lea eax, [ebp - 0x24]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x403eca
fild dword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x4e9e46]
fstp qword [ebp - 0x34]
push 0x80000601
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 1
mov ebx, 0x41d080
call fcn.0041b867
add esp, 0x10
mov dword [ebp - 0x38], eax
push 0x4e9e4e
push dword [ebp - 0x38]
push str.data.words_result_
mov ecx, 3
call fcn.0040368f
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x403e4c
push ebx
call fcn.0041b86d
add esp, 4
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
push 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x403e7f
push ebx
call fcn.0041b86d
add esp, 4
push 0x4e9e69
push dword [ebp - 0x44]
push dword [ebp - 0x20]
mov ecx, 3
call fcn.0040368f
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x403eaa
push ebx
call fcn.0041b86d
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x403ebe
push ebx
call fcn.0041b86d
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
pop eax
pop ebx
pop ecx
jmp 0x403ddf
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x403ef7
push eax
mov ebx, eax
call fcn.00403624
inc eax
push eax
call fcn.0041b861
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403efc
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403f0d
push ebx
call fcn.0041b86d
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403f1d
push ebx
call fcn.0041b86d
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403f2d
push ebx
call fcn.0041b86d
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x403f3d
push ebx
call fcn.0041b86d
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x403f4d
push ebx
call fcn.0041b86d
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0041b86d
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x403f6d
push ebx
call fcn.0041b86d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4