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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4207d3
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x431010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_111.0.0.0_Safari_537.36
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x60], esi
call fcn.004024e0
mov esi, eax
mov dword [ebp - 0x28], 0x7f
xor edi, edi
lea eax, [esi + 0x70]
mov dword [ebp - 0x2c], eax
nop dword [eax]
mov ecx, dword [eax]
sub ecx, 0x32
mov eax, ecx
shl eax, 4
add eax, ecx
mov ecx, 0x7f
add eax, eax
cdq
idiv ecx
lea eax, [edx + 0x7f]
cdq
idiv ecx
mov eax, dword [ebp - 0x2c]
mov byte [edi + esi], dl
add eax, 4
inc edi
mov dword [ebp - 0x2c], eax
cmp edi, 0x6f
jb 0x4015e0
mov ecx, esi
mov byte [esi + 0x6f], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401630
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.00402d00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1e8]
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:61.0__Gecko_20100101_Firefox_61.0
call fcn.00402490
mov esi, eax
xor ecx, ecx
mov dword [ebp - 0x20], esi
lea edi, [esi + 0x50]
mov eax, dword [edi]
lea edi, [edi + 4]
sub eax, 0x49
imul eax, eax, 0x29
cdq
idiv dword [ebp - 0x28]
lea eax, [edx + 0x7f]
cdq
idiv dword [ebp - 0x28]
mov byte [ecx + esi], dl
inc ecx
cmp ecx, 0x4e
jb 0x401664
mov ecx, esi
mov byte [esi + 0x4e], 0
mov esi, dword [ebp - 0x24]
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4016a4
sub ecx, edx
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x44]
call fcn.00402d00
mov dword [ebp - 4], 1
lea edi, [ebp - 0x5c]
lea eax, [ebp - 0x2c]
mov dword [esi], 0
sub eax, edi
mov dword [esi + 4], 0
sar eax, 3
imul eax, eax, 0xaaaaaaab
mov dword [esi + 8], 0
test eax, eax
je 0x4017a6
cmp eax, 0xaaaaaaa
ja 0x40180d
lea eax, [eax + eax*2]
shl eax, 3
mov dword [ebp - 0x28], eax
cmp eax, 0x1000
jb 0x401718
push eax
call fcn.00402ee0
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x28]
jmp 0x40172e
test eax, eax
je 0x40172c
push eax
call fcn.0040970a
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x28]
jmp 0x40172e
xor ecx, ecx
mov dword [esi], ecx
add eax, ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov esi, dword [esi]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x40177f
push edi
mov ecx, esi
call fcn.00402840
add esi, 0x18
lea eax, [ebp - 0x2c]
add edi, 0x18
mov dword [ebp - 0x18], esi
cmp edi, eax
jne 0x401767
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
mov edx, esi
push ecx
mov ecx, esi
call fcn.00402dd0
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [eax + 4], esi
mov byte [ebp - 4], 1
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x5c]
push fcn.004027c0
push 2
push 0x18
push eax
call fcn.0040973a
xorps xmm0, xmm0
movups xmmword [esi + 0xc], xmm0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xf
mov byte [esi + 0xc], 0
mov byte [ebp - 4], 6
push 0
call fcn.0040e7ee
push eax
call fcn.0040df14
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004096fc
mov esp, ebp
pop ebp
ret
call fcn.00402e90
int3