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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 4
call fcn.00460023
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
push 0x70017
push 0
push ebx
push 1
mov eax, 6
mov ebx, 0x4e1e00
call fcn.00460035
add esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 4
call fcn.00460023
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
push 0x70004
push 0
push ebx
push 1
mov eax, 6
mov ebx, 0x4e17e0
call fcn.00460035
add esp, 0x10
cmp dword [ebp + 0x58], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x412887
push getpeername
push 0
mov ebx, dword [ebp + 0x64]
mov eax, dword [ebx]
test eax, eax
jne 0x41282d
mov eax, 0x5372a5
push eax
push getpeername
push 0
mov ebx, dword [ebp + 0x5c]
mov eax, dword [ebx]
test eax, eax
jne 0x412843
mov eax, 0x5372a5
push eax
push getpeername
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x412859
mov eax, 0x5372a5
push eax
push getpeername
push 0
push str.direct
push 0x70017
push 0
push dword [ebp - 4]
push 5
mov eax, 6
mov ebx, 0x4e1e60
call fcn.00460035
add esp, 0x40
cmp dword [ebp + 0x44], 1
jge 0x412898
mov dword [ebp + 0x44], 0xa
push getpeername
push 0
push 0x5374ea
push 0x70017
push 0
push dword [ebp - 4]
push 2
mov eax, 6
mov ebx, 0x4e1ea0
call fcn.00460035
add esp, 0x1c
push 0x80000301
push 0
push dword [ebp + 0x44]
push 0x80000301
push 0
push dword [ebp + 0x44]
push 0x70017
push 0
push dword [ebp - 4]
push 3
mov eax, 6
mov ebx, 0x4e1e40
call fcn.00460035
add esp, 0x28
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0x70017
push 0
push dword [ebp - 4]
push 2
mov eax, 6
mov ebx, 0x4e1f80
call fcn.00460035
add esp, 0x1c
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0x80000301
push 0
push 0
push 0x70017
push 0
push dword [ebp - 4]
push 3
mov eax, 6
mov ebx, 0x4e1fc0
call fcn.00460035
add esp, 0x28
cmp dword [ebp + 0x34], 0
je 0x4129a3
push 0x80000301
push 0
push 0xa
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0x70017
push 0
push dword [ebp - 4]
push 3
mov eax, 6
mov ebx, 0x4e1e80
call fcn.00460035
add esp, 0x28
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
je 0x4129c1
push eax
mov ebx, eax
call fcn.00402053
inc eax
push eax
call fcn.00460023
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4129d2
push ebx
call fcn.00460029
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push getpeername
push 0
push 0x5374f0
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412a07
mov eax, 0x5372a5
push eax
push 4
mov ebx, 0x460dc0
call fcn.0046002f
add esp, 0x34
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x412a9b
push getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x412a3c
mov eax, 0x5372a5
push eax
push getpeername
push 0
push str.Referer:
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412a5c
mov eax, 0x5372a5
push eax
push getpeername
push 0
push str.1_r_n23
push 4
mov eax, 6
mov ebx, 0x4e1d20
call fcn.00460035
add esp, 0x34
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412a97
push ebx
call fcn.00460029
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push getpeername
push 0
push str.Accept_Language:
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412acc
mov eax, 0x5372a5
push eax
push 4
mov ebx, 0x460dc0
call fcn.0046002f
add esp, 0x34
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x412b4a
push getpeername
push 0
push str.Accept_Language:_zh_cn
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412b0b
mov eax, 0x5372a5
push eax
push getpeername
push 0
push str.1_r_n2
push 3
mov eax, 6
mov ebx, 0x4e1d20
call fcn.00460035
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412b46
push ebx
call fcn.00460029
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push getpeername
push 0
push str.User_Agent:
push getpeername
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x412b7d
mov eax, 0x5372a5
push eax
push 4
mov ebx, 0x460dc0
call fcn.0046002f
add esp, 0x34
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x412bfb
push getpeername
push 0
push str.User_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_50.0.2661.87_Safari_537.36
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412bbc
mov eax, 0x5372a5
push eax
push getpeername
push 0
push str.1_r_n2
push 3
mov eax, 6
mov ebx, 0x4e1d20
call fcn.00460035
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412bf7
push ebx
call fcn.00460029
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push getpeername
push 0
push str.Content_Type:
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412c2c
mov eax, 0x5372a5
push eax
push 4
mov ebx, 0x460dc0
call fcn.0046002f
add esp, 0x34
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x412caa
push getpeername
push 0
push str.Content_Type:_application_x_www_form_urlencoded
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412c6b
mov eax, 0x5372a5
push eax
push getpeername
push 0
push str.1_r_n2
push 3
mov eax, 6
mov ebx, 0x4e1d20
call fcn.00460035
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412ca6
push ebx
call fcn.00460029
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push getpeername
push 0
push str.X_Requested_With:
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412cdb
mov eax, 0x5372a5
push eax
push 4
mov ebx, 0x460dc0
call fcn.0046002f
add esp, 0x34
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x412d59
push getpeername
push 0
push str.X_Requested_With:_XMLHttpRequest
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412d1a
mov eax, 0x5372a5
push eax
push getpeername
push 0
push str.1_r_n2
push 3
mov eax, 6
mov ebx, 0x4e1d20
call fcn.00460035
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412d55
push ebx
call fcn.00460029
add esp, 4
pop eax
mov dword [ebp - 8], eax
push getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x412d6e
mov eax, 0x5372a5
push eax
push 1
mov ebx, 0x4605c0
call fcn.0046002f
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x7ff
jle 0x412def
push getpeername
push 0
push str.Expect:
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412db0
mov eax, 0x5372a5
push eax
push getpeername
push 0
push str.1_r_n2
push 3
mov eax, 6
mov ebx, 0x4e1d20
call fcn.00460035
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412deb
push ebx
call fcn.00460029
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x5372a5
mov ebx, dword [ebp + 0x14]
push dword [ebx]
call fcn.00401db1
add esp, 8
cmp eax, 0
je 0x412e41
push getpeername
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x412e1f
mov eax, 0x5372a5
push eax
push 0x70017
push 0
push dword [ebp - 4]
push 2
mov eax, 6
mov ebx, 0x4e1f60
call fcn.00460035
add esp, 0x1c
cmp dword [ebp + 0x10], 0
mov eax, 0
sete al
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x412edd
push 0
push 0
push 0
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412e73
mov eax, 0x5372a5
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push reloc.WS2_32.dll_getpeername
push 0
lea eax, [ebp - 0xc]
push eax
push getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x412ea0
mov eax, 0x5372a5
push eax
push getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x412eb6
mov eax, 0x5372a5
push eax
push 0x70017
push 0
push dword [ebp - 4]
push 7
mov eax, 6
mov ebx, 0x4e1f20
call fcn.00460035
add esp, 0x58
jmp 0x412fdc
cmp dword [ebp + 0x20], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x412f7a
push 0
push 0
push 0
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412f10
mov eax, 0x5372a5
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push reloc.WS2_32.dll_getpeername
push 0
lea eax, [ebp - 0xc]
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x412f3d
mov eax, 0x5372e0
push eax
push getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x412f53
mov eax, 0x5372a5
push eax
push 0x70017
push 0
push dword [ebp - 4]
push 7
mov eax, 6
mov ebx, 0x4e1f20
call fcn.00460035
add esp, 0x58
jmp 0x412fdc
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412f8d
mov eax, 0x5372a5
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push reloc.WS2_32.dll_getpeername
push 0
lea eax, [ebp - 0xc]
push eax
push getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x412fba
mov eax, 0x5372a5
push eax
push 0x70017
push 0
push dword [ebp - 4]
push 5
mov eax, 6
mov ebx, 0x4e1f00
call fcn.00460035
add esp, 0x40
push 0x70017
push 0
push dword [ebp - 4]
push 1
mov eax, 6
mov ebx, 0x4e1fa0
call fcn.00460035
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x413016
push ebx
call fcn.00460029
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x2c]
call fcn.00405203
push 0x70017
push 0
push dword [ebp - 4]
push 1
mov eax, 6
mov ebx, 0x4e1ec0
call fcn.00460035
add esp, 0x10
mov ebx, dword [ebp + 0x4c]
mov dword [ebx], eax
cmp dword [ebp + 0x40], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x413147
push 0x70004
push 0
push dword [ebp - 0x10]
push 0x70017
push 0
push dword [ebp - 4]
push 2
mov eax, 6
mov ebx, 0x4e1ee0
call fcn.00460035
add esp, 0x1c
push getpeername
push 0
push str.Location
push 0x70004
push 0
push dword [ebp - 0x10]
push 2
mov eax, 6
mov ebx, 0x4e1860
call fcn.00460035
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp + 0x3c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4130da
push ebx
call fcn.00460029
add esp, 4
pop eax
mov ebx, dword [ebp + 0x3c]
mov dword [ebx], eax
push 0x5372a5
mov ebx, dword [ebp + 0x3c]
push dword [ebx]
call fcn.00401db1
add esp, 8
cmp eax, 0
jne 0x413147
push getpeername
push 0
push str.location
push 0x70004
push 0
push dword [ebp - 0x10]
push 2
mov eax, 6
mov ebx, 0x4e1860
call fcn.00460035
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp + 0x3c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x413141
push ebx
call fcn.00460029
add esp, 4
pop eax
mov ebx, dword [ebp + 0x3c]
mov dword [ebx], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x41315a
mov eax, 0x5372e0
push eax
push 1
mov ebx, 0x462650
call fcn.0046002f
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x413178
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x70017
push 0
push ebx
push 1
mov eax, 6
mov ebx, 0x4e1e20
call fcn.00460035
add esp, 0x10
call fcn.00460029
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4131b1
push ebx
call fcn.00460029
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4131c1
push ebx
call fcn.00460029
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
push 0x70004
push 0
push ebx
push 1
mov eax, 6
mov ebx, 0x4e1800
call fcn.00460035
add esp, 0x10
call fcn.00460029
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x6c