Function at 0x59a690
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]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x59acb5
sub esp, 0x84
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x94]
cmp ecx, eax
jle 0x59a986
jbe 0x59acaf
mov edx, dword [esp + 0x88]
movzx ebx, byte [eax + edx]
mov ebp, ebx
shr bl, 6
mov esi, ebp
and ebp, 0x1f
lea edi, [eax + 1]
movzx ebx, bl
mov dword [esp + 0x3c], ebx
xchg esi, eax
test al, 0x20
xchg esi, eax
xchg esi, ebx
setne bl
xchg esi, ebx
xchg esi, eax
mov byte [esp + 0x23], al
xchg esi, eax
cmp ebp, 0x1f
je 0x59a70c
xor eax, eax
xor eax, eax
mov dword [esp + 0x48], eax
xor eax, eax
jmp 0x59a767
mov dword [esp], edx
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x90]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
call fcn.00599c80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x59a93d
cmp ecx, 0x1f
jl 0x59a8b5
movzx esi, byte [esp + 0x23]
mov edi, edx
mov ebp, ecx
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x38], ebp
cmp ecx, edi
jle 0x59a834
jbe 0x59aca8
mov dword [esp + 0x34], eax
movzx eax, byte [edi + edx]
inc edi
test al, 0x80
je 0x59a82c
and eax, 0x7f
test eax, eax
je 0x59a7ab
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
jmp 0x59aa54
mov dword [esp + 0x30], edi
lea eax, [0x7475f2]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0x21
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00409d40
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa4], cl
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa8], ecx
lea ecx, [0x7b13bc]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
and eax, 0x7f
jmp 0x59a9fa
mov dword [esp + 0x30], edi
lea eax, [0x742079]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0x17
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.00409d40
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa4], cl
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa8], ecx
lea ecx, [0x7b13bc]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
lea eax, [0x73e083]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0xf
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.00409d40
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa4], cl
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa8], ecx
lea ecx, [0x7b13bc]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa4], cl
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ebx
add esp, 0x84
ret
nop
lea eax, [0x701240]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x29
lea ecx, [0x74b26c]
mov dword [eax], ecx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov byte [esp + 0xa4], 0
mov ecx, dword [esp + 0x94]
mov dword [esp + 0xa8], ecx
lea ecx, [0x7b0bb8]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], eax
xchg esi, eax
mov byte [esp + 0xa4], al
xchg esi, eax
mov dword [esp + 0xa8], edi
mov eax, dword [esp + 0x34]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
lea ebp, [esi + 1]
movzx esi, byte [esp + 0x23]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x2c], edi
mov esi, dword [esp + 0x24]
cmp esi, eax
jge 0x59ac0f
cmp ecx, edi
jle 0x59ab92
jbe 0x59aca1
movzx ebp, byte [edx + edi]
inc edi
mov dword [esp + 0x2c], edi
mov ebx, dword [esp + 0x30]
cmp ebx, 0x800000
jge 0x59ab15
shl ebx, 8
or ebx, ebp
test ebx, ebx
jne 0x59aa3c
mov dword [esp + 0x28], ebx
lea eax, [0x748429]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x23
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 0x23
call fcn.00409d40
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xa0], ecx
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa4], cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa8], ecx
lea ecx, [0x7b145c]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
lea eax, [0x73e72c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00409d40
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa0], ecx
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa4], cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa8], ecx
lea ecx, [0x7b145c]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
lea eax, [0x742079]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0x17
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.00409d40
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa0], ecx
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa4], cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa8], ecx
lea ecx, [0x7b13bc]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
mov eax, dword [esp + 0x30]
cmp eax, 0x80
jl 0x59ac24
movzx esi, byte [esp + 0x23]
jmp 0x59a9fa
lea eax, [0x73f406]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x12
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call fcn.00409d40
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa0], ecx
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa4], cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa8], ecx
lea ecx, [0x7b145c]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
mov eax, edi
call fcn.00468ed0
mov eax, edi
call fcn.00468ed0
call fcn.00468ed0
nop
call fcn.00467a60
jmp fcn.0059a690