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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c50f
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 0x10
mov ebx, dword [ebp + 8]
mov dword [edi + 0x10], 0
jb 0x404a91
mov eax, dword [edi]
jmp 0x404a93
mov eax, edi
mov byte [eax], 0
lea eax, [edi + 0x18]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x404aa8
mov eax, dword [eax]
mov byte [eax], 0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov dword [ebp - 4], 0
cmp byte [ebx], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x404adf
xor ecx, ecx
jmp 0x404aed
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404ae4
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00406080
push 1
sub esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00405e30
push eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.004057d0
push 1
sub esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00405dc0
lea ecx, [eax + 1]
cmp dword [ebp - 0x1c], ecx
jae 0x404b33
push str.invalid_string_position
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 3
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
push 0
push 0x4b1044
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x2c]
call fcn.00405ec0
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
je 0x404c18
lea esi, [eax + 3]
mov byte [ebp - 0x14], 0x2f
push 1
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405ec0
sub eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
sub eax, 3
push eax
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.00405780
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00406a70
add esp, 4
mov esi, eax
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x404bd6
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x404bbb
mov ecx, dword [ebp - 0x44]
inc edx
push 1
call fcn.004044e0
add esp, 4
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00406390
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x404bec
mov ecx, dword [ebp - 0x60]
inc edx
push 1
call fcn.004044e0
add esp, 4
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
cmp edx, 0x10
jb 0x404c18
mov ecx, dword [ebp - 0x78]
inc edx
push 1
call fcn.004044e0
add esp, 4
push 0x4b1050
push 0
call fcn.00463030
push 0x4b105c
push eax
call fcn.00463030
push str.Mozilla_5.0__Windows_NT_10.0__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_70.0.3538.25_Safari_537.36_Core_1.70.3878.400_QQBrowser_10.8.4518.400
push eax
call fcn.00463030
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
push ecx
push eax
call fcn.00463030
push 0x4b1114
push eax
call fcn.00463030
push eax
push 0x2727
push dword [edi + 0x30]
mov dword [ebp - 0x48], eax
call fcn.00466640
push 1
push 0x50
push dword [edi + 0x30]
call fcn.00466640
add esp, 0x40
push ebx
push 0x2712
push dword [edi + 0x30]
call fcn.00466640
push dword [edi + 0x30]
call fcn.00462cb0
mov esi, eax
add esp, 0x10
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x404cb0
push eax
call fcn.00463380
add esp, 4
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
test esi, esi
je 0x404cf2
push esi
call fcn.00463560
mov edx, eax
add esp, 4
cmp byte [edx], 0
jne 0x404cc8
xor ecx, ecx
jmp 0x404cd9
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404cd0
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0x34]
call fcn.00406080
push dword [ebp - 0x48]
call fcn.00463070
add esp, 4
xor bl, bl
jmp 0x404cff
push dword [ebp - 0x48]
call fcn.00463070
add esp, 4
mov bl, 1
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x404d15
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.004044e0
add esp, 4
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x404d3d
mov ecx, dword [ebp - 0x44]
inc edx
push 1
call fcn.004044e0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049abdf
mov esp, ebp
pop ebp
ret 0xc