Function at 0x5d3500
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 0x5d3b58
sub esp, 0x68
lea eax, [0x7187c0]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
lea ebp, [0x6e8a80]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0059dc00
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
test eax, eax
jne 0x5d3833
mov eax, dword [esp + 0x5c]
cmp dword [eax], 1
jne 0x5d37b7
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x5d35ae
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.005d9600
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x5d35cf
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.005d9600
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x5d3776
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ecx
lea eax, [0x70b520]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov ecx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
call fcn.004f6480
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov eax, dword [0x995310]
test eax, eax
je 0x5d3654
call fcn.00468e70
mov dword [edi], edx
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov dword [ebx + 4], edx
mov byte [ebx], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x54]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004ec260
mov eax, dword [esp + 8]
test eax, eax
jge 0x5d3735
lea eax, [0x726680]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov edx, dword [0x995310]
test edx, edx
jne 0x5d36bd
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x40]
jmp 0x5d36cf
call fcn.00468e70
mov edx, dword [esp + 0x54]
mov dword [edi], edx
mov ebx, dword [esp + 0x40]
mov dword [edi + 4], ebx
mov dword [esp + 0x4c], eax
mov dword [eax + 4], edx
mov dword [eax + 0x10], ebx
mov ecx, dword [esp + 0x44]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
call fcn.004f2d80
mov eax, dword [esp + 0xc]
lea ecx, [0x6f4820]
mov dword [esp], ecx
lea ecx, [eax + 7]
sar ecx, 0x1f
shr ecx, 0x1d
lea eax, [ecx + eax + 7]
sar eax, 3
mov dword [esp + 0x34], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044e560
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
jmp 0x5d3a14
lea eax, [0x701240]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2e
lea ecx, [0x74cf1b]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x7b0bb8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
lea eax, [0x701240]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x744b3e]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x7b0bb8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00409c30
mov eax, dword [esp + 4]
lea ecx, [0x6f4660]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
lea eax, [0x74a34f]
mov dword [esp], eax
mov dword [esp + 4], 0x27
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c1f50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x68
ret
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], ecx
lea eax, [0x713de0]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
lea ebp, [0x6e8b40]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0059dc00
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5d39d0
lea eax, [0x726740]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 8], ecx
lea ecx, [0x6e8b00]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0059dc00
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5d398f
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x749be2]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x26
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.00452120
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], ecx
lea edx, [0x701240]
mov dword [esp], edx
call fcn.0040c500
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x5d3962
mov ecx, dword [esp + 0x48]
jmp 0x5d396d
call fcn.00468e60
mov ecx, dword [esp + 0x48]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x7b0bb8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
lea eax, [0x701240]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x58
lea ecx, [0x752583]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x7b0bb8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
lea eax, [0x701240]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x58
lea ecx, [0x75252b]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x7b0bb8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov dword [ecx + 4], ebp
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
cmp ebx, edx
jle 0x5d3a9d
movzx esi, byte [ebp]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x5d3a5c
mov esi, dword [ecx + 0xc]
dec esi
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, 1
dec ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov ebx, dword [0x995310]
add ebp, esi
test ebx, ebx
je 0x5d3a11
call fcn.00468e70
mov dword [edi], ebp
mov ebx, dword [ecx + 4]
mov dword [edi + 4], ebx
jmp 0x5d3a11
lea eax, [0x701240]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
lea ecx, [0x746c52]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x7b0bb8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov ecx, edx
sub edx, ebx
cmp ecx, edx
jb 0x5d3b50
mov esi, ecx
sub ecx, edx
mov edi, ecx
neg ecx
sar ecx, 0x1f
and ecx, edx
add ecx, eax
cmp ebx, edi
jl 0x5d3abe
mov ebx, edi
cmp ebp, ecx
je 0x5d3ade
mov dword [esp + 0x58], eax
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.004697f0
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x20]
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
call ecx
mov eax, dword [0x995310]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x5d3b12
mov eax, dword [esp + 0x4c]
jmp 0x5d3b2c
call fcn.00468e90
mov dword [edi], ecx
mov eax, dword [esp + 0x4c]
mov ebx, dword [eax + 8]
mov dword [edi + 4], ebx
mov dword [edi + 8], edx
mov ebx, dword [eax + 0xc]
mov dword [edi + 0xc], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x68
ret
mov eax, edx
call fcn.00468f30
nop
call fcn.00467a60
jmp fcn.005d3500