Function at 0x5b8620
Capabilities:
Reference http user-agent string
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5b8a5f
sub esp, 0x68
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x5b8650
xor eax, eax
mov ecx, dword [esp + 0x78]
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x5b871a
nop
cmp eax, 0x14
jae 0x5b8a46
mov ecx, dword [0x967d34]
cmp eax, ecx
jae 0x5b8a41
mov ecx, dword [0x967d30]
movzx ecx, byte [ecx + eax]
mov edx, dword [esp + 0x78]
cmp edx, ecx
je 0x5b86ac
nop
lea eax, [0x701240]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x28
lea ecx, [0x74aa9f]
mov dword [eax], ecx
xor ecx, ecx
xor edx, edx
mov ebx, eax
xor ebp, ebp
lea eax, [0x7b0bb8]
jmp 0x5b871a
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x96e968]
lea edx, [0x6f86a0]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040f010
movzx eax, byte [esp + 0x10]
test al, al
je 0x5b86ea
mov edx, dword [esp + 0xc]
mov ebx, dword [edx]
mov edx, dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov ebp, ebx
xor ebx, ebx
jmp 0x5b871a
nop
lea eax, [0x701240]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x25
lea ecx, [0x749378]
mov dword [eax], ecx
xor ecx, ecx
xor edx, edx
mov ebx, eax
xor ebp, ebp
lea eax, [0x7b0bb8]
test eax, eax
jne 0x5b88bc
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x60], ebp
lea eax, [ecx + edx + 0xb]
mov dword [esp + 0x4c], eax
mov ebx, dword [esp + 0x6c]
mov ebp, dword [ebx]
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 8]
mov ebp, dword [ebp + 0xc]
add edx, ecx
mov dword [esp + 0x30], edx
nop
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
call fcn.004f2d80
mov eax, dword [esp + 0xc]
lea ecx, [eax + 7]
sar ecx, 0x1f
shr ecx, 0x1d
lea eax, [ecx + eax + 7]
sar eax, 3
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
jg 0x5b889e
mov ecx, dword [esp + 0x84]
cmp ecx, eax
jne 0x5b8880
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x88]
mov dword [esp + 0xc], eax
call fcn.005ba6a0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x5b8862
mov ecx, dword [esp + 0x14]
test ecx, ecx
jbe 0x5b8a38
cmp ecx, 1
jbe 0x5b8a2c
mov ebx, dword [esp + 0x10]
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
mov edx, dword [esp + 0x18]
dec ebp
shr ebp, 0x1f
xor esi, 1
xchg esi, eax
movzx eax, al
xchg esi, eax
dec esi
shr esi, 0x1f
and ebp, esi
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
mov edi, eax
sub edi, esi
cmp edx, eax
jb 0x5b8a25
cmp eax, edi
jb 0x5b8a1c
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x48], edx
mov esi, eax
sub esi, edi
sub edx, edi
neg edx
sar edx, 0x1f
and edx, edi
add edx, ebx
mov ebx, dword [esp + 0x78]
cmp ebx, esi
je 0x5b883d
xor edx, edx
jmp 0x5b8910
mov dword [esp + 0x34], ebp
mov dword [esp + 0x4c], edi
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x3c], eax
xor eax, eax
mov byte [esp + 0x27], al
mov eax, dword [esp + 0x58]
jmp 0x5b88f8
mov eax, dword [0x9677a0]
mov ecx, dword [0x9677a4]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x68
ret
mov eax, dword [0x9677a0]
mov ecx, dword [0x9677a4]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x68
ret
mov eax, dword [0x9677a0]
mov ecx, dword [0x9677a4]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x68
ret
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
add esp, 0x68
ret
movzx ecx, byte [edi + edx]
movzx ebp, byte [edi + ebx]
xor ebp, ecx
lea ecx, [edi + 1]
movzx edi, byte [esp + 0x27]
or edi, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x3c], ecx
xchg edi, eax
mov byte [esp + 0x27], al
xchg edi, eax
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
mov edi, dword [esp + 0x3c]
cmp edi, esi
jl 0x5b88ce
movzx edx, byte [esp + 0x27]
movzx edx, dl
dec edx
shr edx, 0x1f
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x30]
sub eax, ebx
and edx, ebp
cmp eax, edi
ja 0x5b8a15
sub edi, eax
mov ebx, dword [esp + 0x48]
sub ebx, eax
neg ebx
sar ebx, 0x1f
and ebx, eax
mov ebp, dword [esp + 0x64]
add ebx, ebp
mov esi, dword [esp + 0x2c]
cmp esi, edi
je 0x5b8941
xor ebx, ebx
jmp 0x5b89a2
mov dword [esp + 0x34], edx
mov esi, dword [esp + 0x60]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x38], eax
xor eax, eax
mov byte [esp + 0x26], al
mov eax, dword [esp + 0x50]
jmp 0x5b898a
movzx ecx, byte [ebp + ebx]
movzx edx, byte [esi + ebp]
xor edx, ecx
lea ecx, [ebp + 1]
movzx ebp, byte [esp + 0x26]
or ebp, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
xchg ebp, eax
mov byte [esp + 0x26], al
xchg ebp, eax
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x64]
mov ebp, dword [esp + 0x38]
cmp ebp, edi
jl 0x5b895f
movzx ebx, byte [esp + 0x26]
movzx ebx, bl
dec ebx
shr ebx, 0x1f
mov ebp, dword [esp + 0x64]
lea esi, [eax - 1]
and ebx, edx
cmp ecx, esi
jbe 0x5b8a0e
movzx eax, byte [eax + ebp - 1]
dec eax
shr eax, 0x1f
and ebx, eax
mov eax, 2
jmp 0x5b89cd
movzx ecx, byte [eax + ebp]
not ecx
movzx ecx, cl
dec ecx
shr ecx, 0x1f
inc eax
and ebx, ecx
cmp eax, esi
jl 0x5b89bd
cmp ebx, 1
je 0x5b89f4
mov eax, dword [0x9677a0]
mov ecx, dword [0x9677a4]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x68
ret
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x68
ret
mov eax, esi
call fcn.00468ed0
mov ecx, edi
call fcn.00468f30
mov ecx, eax
mov eax, edi
call fcn.00468f30
mov ecx, eax
call fcn.00468f10
mov eax, 1
mov ecx, eax
call fcn.00468ed0
xor eax, eax
mov ecx, eax
call fcn.00468ed0
call fcn.00468ee0
lea eax, [0x6f44e0]
mov dword [esp], eax
lea eax, [0x7b06e8]
mov dword [esp + 4], eax
call fcn.00438b10
nop
call fcn.00467a60
jmp fcn.005b8620