Function at 0x4047a5
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 0x4048ad
push getpeername
push 0
mov ebx, dword [ebp + 0x64]
mov eax, dword [ebx]
test eax, eax
jne 0x404853
mov eax, 0x5372a5
push eax
push getpeername
push 0
mov ebx, dword [ebp + 0x5c]
mov eax, dword [ebx]
test eax, eax
jne 0x404869
mov eax, 0x5372a5
push eax
push getpeername
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x40487f
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 0x4048be
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 0x4049c9
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 0x4049e7
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 0x4049f8
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 0x404a2d
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 0x404ac1
push getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x404a62
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 0x404a82
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 0x404abd
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 0x404af2
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 0x404b70
push getpeername
push 0
push str.Accept_Language:_zh_cn
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x404b31
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 0x404b6c
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 0x404ba3
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 0x404c21
push getpeername
push 0
push str.User_Agent:_Mozilla_5.0__iPhone__CPU_iPhone_OS_13_2_3_like_Mac_OS_X__AppleWebKit_605.1.15__KHTML__like_Gecko__Version_13.0.3_Mobile_15E148_Safari_604.1
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x404be2
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 0x404c1d
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 0x404c52
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 0x404cd0
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 0x404c91
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 0x404ccc
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 0x404d01
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 0x404d7f
push getpeername
push 0
push str.X_Requested_With:_XMLHttpRequest
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x404d40
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 0x404d7b
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 0x404d94
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 0x404e15
push getpeername
push 0
push str.Expect:
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x404dd6
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 0x404e11
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 0x404e67
push getpeername
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x404e45
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 0x404f03
push 0
push 0
push 0
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x404e99
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 0x404ec6
mov eax, 0x5372a5
push eax
push getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x404edc
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 0x405001
cmp dword [ebp + 0x20], 0
mov eax, 0
sete al
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x404f9f
push 0
push 0
push 0
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x404f35
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 0x404f62
mov eax, 0x5372e0
push eax
push getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x404f78
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 0x405001
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x404fb2
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 0x404fdf
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 0x40503b
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 0x40516c
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 0x4050ff
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 0x40516c
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 0x405166
push ebx
call fcn.00460029
add esp, 4
pop eax
mov ebx, dword [ebp + 0x3c]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405186
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00460023
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40518b
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 0x4051c4
push ebx
call fcn.00460029
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4051d4
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