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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x745694]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
call fcn.00613000
mov ebx, eax
test ebx, ebx
jne 0x5ba873
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065cc3a
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x5ba87d
mov eax, dword [esi]
push eax
push 0x2712
push ebx
call fcn.00616640
add esp, 0xc
cmp dword [edi + 0x10], 0
je 0x5ba8a9
cmp dword [edi + 0x14], 0x10
jb 0x5ba89a
mov edi, dword [edi]
push edi
push 0x271f
push ebx
call fcn.00616640
add esp, 0xc
push 1
push 0x63
push ebx
call fcn.00616640
push 1
push 0x34
push ebx
call fcn.00616640
push 0x32
push 0x44
push ebx
call fcn.00616640
push 1
push 0xd5
push ebx
call fcn.00616640
add esp, 0x30
call fcn.005c4540
mov dword [ebp - 0x20], eax
cmp dword [eax + 0x14], 0x10
jb 0x5ba8ea
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
cmp dword [esi + 0x14], 0x10
mov edx, esi
mov dword [ebp - 0x24], esi
jb 0x5ba8fa
mov edx, dword [esi]
mov dword [ebp - 0x24], edx
mov ecx, dword [eax + 0x10]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], ecx
cmp ecx, eax
ja 0x5ba9bc
test ecx, ecx
jne 0x5ba916
xor edi, edi
jmp 0x5ba9bf
mov esi, dword [ebp - 0x20]
sub eax, ecx
inc eax
add eax, edx
mov dword [ebp - 0x2c], eax
sub eax, edx
movsx ecx, byte [esi]
push eax
push ecx
push edx
mov dword [ebp - 0x30], ecx
call fcn.00660410
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5ba9bc
nop
mov ecx, dword [ebp - 0x28]
mov edx, edi
sub ecx, 4
jb 0x5ba961
nop word [eax + eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x5ba966
add edx, 4
add esi, 4
sub ecx, 4
jae 0x5ba950
cmp ecx, 0xfffffffc
je 0x5ba99a
mov al, byte [edx]
cmp al, byte [esi]
jne 0x5ba993
cmp ecx, 0xfffffffd
je 0x5ba99a
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x5ba993
cmp ecx, 0xfffffffe
je 0x5ba99a
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x5ba993
cmp ecx, 0xffffffff
je 0x5ba99a
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x5ba99a
sbb eax, eax
or eax, 1
jmp 0x5ba99c
xor eax, eax
test eax, eax
je 0x5baa04
mov eax, dword [ebp - 0x2c]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x30]
push edi
call fcn.00660410
mov esi, dword [ebp - 0x20]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5ba940
or edi, 0xffffffff
mov ecx, str.p_installer
cmp edi, 0xffffffff
mov eax, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_114.0.0.0_Safari_537.36
cmovne eax, ecx
push eax
push 0x2722
push ebx
call fcn.00616640
mov esi, dword [ebp - 0x34]
add esp, 0xc
mov ecx, esi
call fcn.005baac0
cmp dword [eax + 0x10], 0
je 0x5baa09
mov ecx, esi
call fcn.005baac0
cmp dword [eax + 0x14], 0x10
jb 0x5ba9fd
mov eax, dword [eax]
mov ecx, 0x2751
jmp 0x5baa10
sub edi, dword [ebp - 0x24]
jmp 0x5ba9bf
mov ecx, 0x40
xor eax, eax
push eax
push ecx
push ebx
call fcn.00616640
push 0x5badb0
push 0x4e2b
push ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.00616640
push dword [ebp - 0x38]
push 0x2711
push ebx
call fcn.00616640
lea eax, [ebp - 0x1c]
push eax
push 0x272d
push ebx
call fcn.00616640
push ebx
call fcn.00613060
push ebx
mov esi, eax
call fcn.00612fe0
mov edx, dword [ebp - 8]
add esp, 0x38
cmp edx, 0x10
jb 0x5baa9b
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5baa91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5baab0
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0065cc3a
mov esp, ebp
pop ebp
ret 0xc
call fcn.0066375b
int3