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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xb4]
cmp eax, dword [ecx + 8]
jbe 0x68610c
sub esp, 0x134
mov eax, 0
mov dword [esp + 0x130], eax
mov byte [esp + 0x2f], 0
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov eax, dword [esp + 0x13c]
mov ecx, dword [eax]
mov ebx, dword [ecx + 0x78]
mov ebp, dword [eax + 8]
test ebx, ebx
je 0x68588e
mov ebx, dword [ecx + 0x78]
mov esi, dword [ecx + 0x7c]
jmp 0x68589a
lea esi, [0x994f00]
lea ebx, [0x7b23f0]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x5c], esi
mov dword [esp + 0x30], ebx
test ebp, ebp
je 0x6858f4
mov edi, dword [ebp]
test edi, edi
je 0x6858f4
mov edi, dword [esp + 0x140]
test edi, edi
jne 0x6858d0
mov edi, dword [esp + 0x150]
mov edx, dword [esp + 0x14c]
jmp 0x6858e4
mov dword [esp], edi
call fcn.0068d510
mov edx, dword [esp + 4]
mov edi, dword [esp + 8]
mov ebp, dword [esp + 0x64]
mov eax, dword [ebp]
mov ecx, dword [eax]
mov dword [esp], edx
mov dword [esp + 4], edi
mov edx, eax
call ecx
lea eax, [esp + 0x140]
mov dword [esp], eax
call fcn.006894d0
lea edi, [esp + 0xf4]
lea esi, [esp + 4]
call fcn.004695ca
lea eax, [0x6ee120]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00405010
mov eax, dword [esp + 8]
mov dword [esp + 0x90], eax
lea ecx, [0x725540]
mov dword [esp], ecx
call fcn.0040c500
mov eax, dword [0x995310]
mov edi, dword [esp + 4]
mov dword [esp + 0x60], edi
test eax, eax
je 0x685975
lea eax, [0x71cd40]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x140]
mov dword [esp + 8], eax
call fcn.00411b70
mov edi, dword [esp + 0x60]
lea esi, [esp + 0x140]
call fcn.004695d4
mov eax, dword [0x995310]
mov ecx, dword [esp + 0x60]
lea edi, [ecx + 0x18]
test eax, eax
je 0x6859c1
mov dword [esp + 0x8c], edi
lea eax, [0x71d740]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0xf4]
mov dword [esp + 8], eax
call fcn.00411b70
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x8c]
lea esi, [esp + 0xf4]
call fcn.004695ca
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x60]
mov dword [ecx + 0x34], eax
mov eax, dword [0x995310]
test eax, eax
jne 0x6859ef
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x90]
jmp 0x685a10
call fcn.00468e90
mov eax, dword [esp + 0x5c]
mov dword [edi], eax
mov edx, dword [ecx + 0x38]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x90]
mov dword [edi + 8], edx
mov ebx, dword [ecx + 0x3c]
mov dword [edi + 0xc], ebx
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov eax, dword [0x995310]
mov edx, dword [0x966a50]
test eax, eax
je 0x685a33
call fcn.00468e70
mov dword [edi], edx
mov eax, dword [ecx + 0x40]
mov dword [edi + 4], eax
mov dword [ecx + 0x40], edx
mov eax, dword [0x995310]
mov edx, dword [0x966a54]
test eax, eax
je 0x685a53
call fcn.00468e70
mov dword [edi], edx
mov eax, dword [ecx + 0x44]
mov dword [edi + 4], eax
mov dword [ecx + 0x44], edx
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
lea eax, [0x686160]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x15c]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov eax, dword [esp + 0x138]
mov dword [esp + 0xb0], eax
lea edx, [esp + 0xa4]
mov dword [esp + 0x130], edx
mov byte [esp + 0x2f], 1
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00684390
movzx eax, byte [esp + 8]
test al, al
je 0x685bae
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x6c], eax
mov ecx, dword [eax]
test ecx, ecx
jne 0x685b4f
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x685b4f
mov edx, dword [ecx + 4]
test edx, edx
je 0x685b4f
lea esi, [eax + 0x64]
lea edi, [esp + 0xb4]
call fcn.004695de
mov dword [esp], eax
lea edi, [esp + 4]
lea esi, [esp + 0xb4]
call fcn.004695de
call fcn.00689b70
lea edi, [esp + 0xc8]
lea esi, [esp + 0x18]
call fcn.004695de
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 4]
mov eax, dword [edx]
lea edi, [esp]
lea esi, [esp + 0xc8]
call fcn.004695de
call eax
mov eax, dword [esp + 0x13c]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x138]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x758ac0]
mov dword [esp + 8], eax
call fcn.00684e70
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov byte [esp + 0x2f], 0
mov edx, dword [esp + 0x130]
mov eax, dword [edx]
call eax
add esp, 0x134
ret
lea eax, [0x6ee3c0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00405010
mov eax, dword [esp + 8]
mov dword [esp + 0x78], eax
lea ecx, [0x700940]
mov dword [esp], ecx
call fcn.0040c500
mov eax, dword [esp + 4]
lea ecx, [0x686120]
mov dword [eax], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x685bf6
mov ecx, dword [esp + 0x78]
jmp 0x685c01
call fcn.00468e60
mov ecx, dword [esp + 0x78]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x13c]
mov edx, dword [edx + 0xc]
mov ebx, dword [esp + 0x138]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00684e70
mov eax, dword [esp + 0x138]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.006861b0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x685c4c
mov edx, dword [eax + 0x7c]
jmp 0x685c58
lea ecx, [0x7b23f0]
lea edx, [0x994f00]
mov ebx, dword [esp + 0x60]
mov ebp, dword [ebx + 0x3c]
mov dword [esp + 0x88], ebp
mov esi, dword [eax + 0x70]
mov dword [esp + 0x84], esi
mov ecx, dword [ecx + 0x14]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x80], eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
lea edi, [esp + 0x110]
xor eax, eax
call fcn.004690f8
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x128], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x120], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x118], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x110], ecx
lea edx, [esp + 0x9c]
mov dword [esp + 0x114], edx
lea edx, [esp + 0x110]
mov dword [esp], edx
lea edx, [esp + 0x4c]
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 4
mov byte [esp + 0x14], 1
call fcn.0044b120
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x685dad
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
cmp dword [0x96eb10], eax
jne 0x685d7d
mov dword [esp + 0x74], ecx
mov dword [esp + 0x38], eax
mov edx, dword [0x96eb14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404290
movzx eax, byte [esp + 0xc]
test al, al
je 0x685d75
mov eax, dword [0x967590]
mov ecx, dword [0x967594]
jmp 0x685d7d
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], ecx
mov byte [esp + 0x2f], 0
mov edx, dword [esp + 0x130]
mov eax, dword [edx]
call eax
add esp, 0x134
ret
cmp eax, 1
jne 0x685e1c
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x685dc2
mov eax, dword [eax + 0x7c]
jmp 0x685dce
lea ecx, [0x7b23f0]
lea eax, [0x994f00]
mov ecx, dword [ecx + 0x18]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], ecx
mov byte [esp + 0x2f], 0
mov edx, dword [esp + 0x130]
mov eax, dword [edx]
call eax
add esp, 0x134
ret
cmp eax, 2
je 0x6860c4
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x685e8d
mov ebx, dword [ecx]
test ebx, ebx
jne 0x685e8d
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x685e8d
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x685e8d
mov dword [esp], ecx
call fcn.00689b10
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 4]
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x60]
mov ebx, dword [ecx + 0x50]
mov ebp, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x2c]
movzx esi, byte [esp + 4]
lea edi, [esp]
xor eax, eax
call fcn.004690fb
mov dword [esp], ebp
mov dword [esp + 4], ebx
xchg esi, eax
mov byte [esp + 8], al
xchg esi, eax
mov ecx, dword [esp + 0x3c]
call ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x68608f
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x685ea8
mov ebx, dword [ecx + 0x7c]
jmp 0x685eb4
lea edx, [0x7b23f0]
lea ebx, [0x994f00]
mov eax, dword [ecx + 0x70]
mov dword [esp + 0x84], eax
mov edx, dword [edx + 0x14]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
lea edi, [esp + 0xdc]
xor eax, eax
call fcn.004690fa
mov eax, dword [esp + 0x84]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xdc], eax
lea eax, [esp + 0x94]
mov dword [esp + 0xe0], eax
lea eax, [esp + 0xdc]
mov dword [esp], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
mov byte [esp + 0x14], 0
call fcn.0044b120
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x685f69
mov eax, dword [esp + 0x60]
jmp 0x68608f
jne 0x685ff2
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
cmp dword [0x96eb10], eax
jne 0x685fc2
mov dword [esp + 0x70], ecx
mov dword [esp + 0x34], eax
mov edx, dword [0x96eb14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404290
movzx eax, byte [esp + 0xc]
test al, al
je 0x685fba
mov eax, dword [0x967590]
mov ecx, dword [0x967594]
jmp 0x685fc2
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], ecx
mov byte [esp + 0x2f], 0
mov edx, dword [esp + 0x130]
mov eax, dword [edx]
call eax
add esp, 0x134
ret
cmp eax, 1
jne 0x686053
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x686007
mov eax, dword [eax + 0x7c]
jmp 0x686013
lea ecx, [0x7b23f0]
lea eax, [0x994f00]
mov ecx, dword [ecx + 0x18]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], ecx
mov byte [esp + 0x2f], 0
mov edx, dword [esp + 0x130]
mov eax, dword [edx]
call eax
add esp, 0x134
ret
mov eax, dword [0x967590]
mov ecx, dword [0x967594]
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], ecx
mov byte [esp + 0x2f], 0
mov edx, dword [esp + 0x130]
mov eax, dword [edx]
call eax
add esp, 0x134
ret
mov ecx, dword [eax + 0x50]
mov ebx, dword [eax + 0x54]
mov eax, dword [eax + 0x58]
mov dword [esp + 0x158], ecx
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x160], eax
mov byte [esp + 0x2f], 0
mov edx, dword [esp + 0x130]
mov eax, dword [edx]
call eax
add esp, 0x134
ret
mov eax, dword [0x967590]
mov ecx, dword [0x967594]
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], ecx
mov byte [esp + 0x2f], 0
mov edx, dword [esp + 0x130]
mov eax, dword [edx]
call eax
add esp, 0x134
ret
call fcn.00467a60
jmp fcn.00685820