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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], 0
push 0xc
call fcn.004188fc
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x4ec478
push ebx
add ebx, 4
push ebx
push 8
call fcn.004188fc
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4ec120
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.004188fc
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4ec120
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
pop ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0xc
call fcn.004188fc
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], 0x4ec18b
push ebx
add ebx, 8
push ebx
push 8
call fcn.004188fc
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.004058a8
pop ebx
mov dword [ebp - 0x18], 0
push dword [ebp + 8]
call fcn.0040f4f0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ee6e
push ebx
call fcn.00418902
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x4ec04f
push dword [ebp - 4]
call fcn.0040115b
add esp, 8
cmp eax, 0
jne 0x40ee90
jmp 0x40f48a
mov eax, 0x4ec04f
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40eea8
push ebx
call fcn.00418902
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40eeca
push eax
mov ebx, eax
call fcn.00401094
inc eax
push eax
call fcn.004188fc
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40eedd
push ebx
call fcn.00418902
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, str.cap_ctu.changyou.com
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Host
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ef19
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ef29
push ebx
call fcn.00418902
add esp, 4
mov eax, str.Mozilla_5.0__Windows_NT_6.2__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_49.0.2623.87_Safari_537.36
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.User_Agent
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ef5f
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ef6f
push ebx
call fcn.00418902
add esp, 4
push dword [ebp + 8]
mov eax, str.Referer
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ef9c
push ebx
call fcn.00418902
add esp, 4
mov eax, str.en_US_en_q0.8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Accept_Language
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40efd2
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40efe2
push ebx
call fcn.00418902
add esp, 4
mov eax, str.gzip__deflate
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Accept_Encoding
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f018
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40f028
push ebx
call fcn.00418902
add esp, 4
lea eax, [ebp - 4]
push eax
mov eax, str.Cookie
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40f056
push ebx
call fcn.00418902
add esp, 4
mov eax, str.application_json_charsetUTF_8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Content_Type
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f08c
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40f09c
push ebx
call fcn.00418902
add esp, 4
mov eax, str.http:__cap_ctu.changyou.com
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Origin
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f0d2
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40f0e2
push ebx
call fcn.00418902
add esp, 4
mov eax, str.application_json__text_javascript_____q0.01
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Accept
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f118
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40f128
push ebx
call fcn.00418902
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f159
push ebx
call fcn.00418902
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 1
push 8
call fcn.004188fc
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
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
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
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
push 1
lea eax, [ebp - 4]
push eax
push 1
mov eax, str._custom_:_pmSUsUNJWcIkdDbjbpBJMmZPyc8YxCcZ6Cwprhs1bdz8I2wCs1BHniS15WaNLo9Br_FyF8upNsw8cHcUWKkn8lHioPo___ki_:_tQxbCAk0uSsWzfpVjj7SujnQmZ0bj95pPQSwaY93UukxSygJ1dYr_yFDOYbLQhWnG4ik0ByPToE7HdzP6oNBOPvCpKtfPqJL1jIVN1820KxOcRANUI0JAlShLcJARaedwpssPn0dp3GMOCL7lLBXNgUcnuJZROAUDI_
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push 1
push 1
mov eax, str.http:__cap_ctu.changyou.com_gen_random
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
call fcn.004070cb
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40f265
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40f275
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x40f285
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40f295
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40f2a5
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40f2b5
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40f2c5
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40f2d5
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x41c460
call fcn.00418908
add esp, 0x10
call fcn.00418902
add esp, 4
lea eax, [ebp - 0x58]
push eax
call fcn.0040b84f
mov dword [ebp - 0x5c], eax
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40f314
push ebx
call fcn.00418902
add esp, 4
mov eax, dword [ebp - 0x5c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40f328
push ebx
call fcn.00418902
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40f33f
mov eax, 0x4ec04f
push eax
push 1
mov ebx, 0x41a850
call fcn.00418908
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x20
call fcn.004188fc
add esp, 4
mov dword [ebp - 0x20], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40f3a6
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x20]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f3bd
push ebx
call fcn.00418902
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f3d1
push ebx
call fcn.00418902
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f3e5
push ebx
call fcn.00418902
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f3f9
push ebx
call fcn.00418902
add esp, 4
pop ebx
call fcn.00418902
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push 1
mov eax, str.captcha.type
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40f43d
push ebx
call fcn.00418902
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f451
push ebx
call fcn.00418902
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40f471
push eax
mov ebx, eax
call fcn.00401094
inc eax
push eax
call fcn.004188fc
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f484
push ebx
call fcn.00418902
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40f49a
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f4ba
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40f4ca
push ebx
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.00418902
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f4ea
push ebx
call fcn.00418902
add esp, 4
mov esp, ebp
pop ebp
ret 0xc